Solved "Player"

Discussion in 'Spigot Plugin Development' started by iMedia, Jun 1, 2017.

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


    How do I set "player" in a plugin and how do I make it op me?
  2. We need this in context of what you're doing. But, player.setOp(true); (I believe this is just off the top of my head)
  3. ScarabCoder

    ScarabCoder Retired Resource Staff

    You're not very clear on what you want. I'm assuming you're trying to set a Player variable. You can get a player with Bukkit#getPlayer(String username), and op with Player#setOp(true);
  4. iMedia


    upload_2017-6-1_16-55-45.png like that?
  5. SomethingPlayzMC is a string so like this

    Code (Java):

    Player p = Bukkit.getPlayer("SomethingPlayzMC");
Thread Status:
Not open for further replies.