Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Combination

Comments in 'Plugin Development' started by TheBison_, Dec 20, 2015.

  1. TheBison_
    Offline

    TheBison_ New Member

    Joined:
    Mar 31, 2014
    Posts:
    46
    Minecraft User:
    TheBisonXD_
    Hello guys...

    How can i make that if i type /game leave
    that i leave the game not the whole server.

    sorry for bad english... :eek:
    Bluplayz likes this.
  2. Bluplayz
    Offline

    Bluplayz Active Member

    Joined:
    Aug 20, 2015
    Posts:
    74
    Minecraft User:
    Bluplayz
    You'll need to tell us the full class or something that wie can reproduce how gametype you does and then wie can tell it you :D an example that ever goes is:

    PHP:
    If(strtolower($command->getName()) == "game") {
    If(!isset(
    $args[0]){
    //if no arguments are behind /game
    } else {
    $this->onArenaLeave($sender);
    }
    }

    public function 
    onArenaLeave(Player $player){
    $player->sendMessage("your code musst in this function xD");
    }
    TheBison_ likes this.
  3. TheBison_
    Offline

    TheBison_ New Member

    Joined:
    Mar 31, 2014
    Posts:
    46
    Minecraft User:
    TheBisonXD_
  4. Bluplayz
    Offline

    Bluplayz Active Member

    Joined:
    Aug 20, 2015
    Posts:
    74
    Minecraft User:
    Bluplayz
    Yes but next Time try to understand and dont Ask this in the forum :D

Share This Page

Advertisement