1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Can I call Method?

Discussion in 'Development' started by Hoyee, Mar 5, 2020.

  1. Hoyee

    Hoyee Baby Zombie

    Messages:
    126
    public function call(PlayerInteractEvent $e){
    $e->getPlayer()->kill();
    }

    public function onJoin(PlayerJoinEvent $e){
    $e->call();
    }

    like this, can I? If I can use it anytime, tell me a case that can not use in another situations.
     
  2. Xenophilicy

    Xenophilicy Spider Jockey

    Messages:
    31
    GitHub:
    xenophilicy
    Why would you want to call a join event after it was just called lmao. By the way, the member function is call(), the event is PlayerJoinEvent.
     
    jasonwynn10 likes this.
  3. Diduhless

    Diduhless Baby Zombie

    Messages:
    199
    GitHub:
    Diduhless
    Invy55 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.