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

Two different broadcast

Comments in 'Plugin Development' started by KingDeadKnight, Mar 30, 2016.

  1. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    Hi, I would like to make two broadcaster in my plugin, one where Guest can see (example) "VIP can have.." and in the second, VIP can see with a permission (example) "Thanks to have bought VIP.."
    VIP can't see Guest's broadcast and so on.
    I can make the two broadcaster, it shows both to everybody, but I can't make the permission and the fact of guest can't see Vip's broadcast and so on.
    I'm a beginner and nobody want to teach me to become better in this domain so I try by myself with a lot of mistake
    Thanks for helping..
  2. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    PHP:
    if(playerIsVIP) {
      
    $msg "YOu are VIP";
    }

    if(
    playerIsGuest) {
      
    $msg "You are a Guest";
    }

    $player->sendMessage($msg);
  3. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    Is it possible in a task?
  4. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Yes it would work the same way
  5. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    OK, I wanna try
  6. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    And what about the permission? I can't make it anymore

Share This Page

Advertisement