Why does this not work?

Discussion in 'Plugin Development' started by Mathias Eklund, Sep 25, 2013.

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

    Mathias Eklund

    Yo, why does this not work? Says player not found..

    Code:java
    1. Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "manuadd " + player + " Cop");


    Help would be appreciated.
     
  2. Offline

    Quantix

    What is not working with this code? Is it giving you any errors and if so please do post them here. Is the player variable a String or Player?
     
  3. Mathias Eklund
    Use player.getName() instead. Using just player will return CraftPlayer{name=someName}, which is not a proper name.
     
  4. Offline

    Mathias Eklund

    ok thanks :)
     
Thread Status:
Not open for further replies.

Share This Page