Bukkit Dispatch Command Problem

Discussion in 'Plugin Development' started by Jag.1000, Aug 6, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Jag.1000

    Code:
    Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), "Permissions player setperm "+king+" heir.use");
    I have king set as a global variable, and the console says
    Player craftplayer{namejag_10} now has heir.use = true

    But, it still says I do not have permission when I try the command.
    Anyone know why?
     
  2. Offline

    Sagacious_Zed Bukkit Docs

    That is the normal behavior of a toString call on any object both implicitly and explicitly.
     
  3. Offline

    Jag.1000

    What?
     
  4. Offline

    ZeusAllMighty11

    You have to get player.getName() or else you get the craftplayer stuff
     
  5. Offline

    Jag.1000

    Ok, thanks! Sagacious_Zed confused me, lol.
     
Thread Status:
Not open for further replies.

Share This Page