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

Solved Command: Player can't use own command

Comments in 'Plugin Development' started by AppPhil, Oct 5, 2015.

  1. AppPhil
    Offline

    AppPhil Active Member

    Joined:
    Oct 3, 2015
    Posts:
    54
    Hey there,

    I've created a new command and registered it at the $commandMap. In the __construct function of the command (I created a new Class for the command and that extends Command) I set the permission like this:
    PHP:
    $this->setPermission("bw.command.setjoinsign");
    Now I want to know how I can allow players to use this command.
  2. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    that is a node, you will need to set that node (bw.command.setjoinsign) through the configs
    AppPhil likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Use PurePerms.
    AppPhil likes this.
  4. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Did you add the permission?
    Legoboy0215 and AppPhil like this.
  5. AppPhil
    Offline

    AppPhil Active Member

    Joined:
    Oct 3, 2015
    Posts:
    54
    Yes and it works now! Thanks!
    Legoboy0215 likes this.

Share This Page

Advertisement