Opping someone properly?

Discussion in 'Plugin Development' started by Datdenkikniet, Oct 12, 2013.

Thread Status:
Not open for further replies.
  1. I wondered, because this:
    Code:java
    1. p.setOp(true);

    doesn't work. Can anyone tell me how to do it?
    (and no, I am not implementing this into my plugins)
     
    Skyost likes this.
  2. Offline

    Mathias Eklund

    try this then :)
    Code:java
    1. Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(),
    2. "op " + player.getName() );
     
    Skyost likes this.
  3. Offline

    ThunderWaffeMC

    Code:java
    1.  
    2. Bukkit.getOfflinePlayer("playerName").setOp(true);
    3.  
     
    Skyost likes this.
Thread Status:
Not open for further replies.

Share This Page