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

PvP Team

Comments in 'Plugin Development' started by DevWars, Nov 27, 2015.

  1. DevWars
    Offline

    DevWars Banned

    Joined:
    Nov 7, 2015
    Posts:
    28
    Minecraft User:
    PmServer
    Hello Gusy !
    Is it possible to give me the plugin Team PvP Team PvP or give me the code and thank you :)
    Example :
    Red Team , Blue Team
    commands :
    /join red
    /join blue
    Red > $player->setNameTag("$name\nRed");
    Blue > $player->setNameTag("$name\nBlue");
  2. TutoGamerWalid
    Offline

    TutoGamerWalid Active Member

    Joined:
    Jun 11, 2015
    Posts:
    69
    Minecraft User:
    TutoGamerWalid
    Taha_The_Hacker likes this.
  3. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    That plugin has bad practice.

    BTW, I am new to this forum. I have looked around to see how everything rolls in this forum. I am a programmer.
    Taha_The_Hacker likes this.
  4. TutoGamerWalid
    Offline

    TutoGamerWalid Active Member

    Joined:
    Jun 11, 2015
    Posts:
    69
    Minecraft User:
    TutoGamerWalid
    please help if you are not left :D:p
  5. DevWars
    Offline

    DevWars Banned

    Joined:
    Nov 7, 2015
    Posts:
    28
    Minecraft User:
    PmServer
    Plugin Not Working
  6. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    .
  7. TheMaks
    Offline

    TheMaks Active Member

    Joined:
    Jul 19, 2015
    Posts:
    58
    Minecraft User:
    TheMaks
    PHP:
    if($command->getName() == "join")
    {
     if(isset(
    $args[0]))
     {
       if(
    $args[0] == "red")
       {
         
    $sender->setNameTag("§4".$sender->getName());
       }elseif(
    $args[0] == "blue")
       {
         
    $sender->setNameTag("§1".$sender->getName());
       }
     }
    }
  8. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    PHP:
    $player->setNameTag(TextFormat::RED.$player->getName());
  9. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    yep, you're right.
    when i've time i'll fix and release.

Share This Page

Advertisement