Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by iMedia, Jun 1, 2017.
How do I set "player" in a plugin and how do I make it op me?
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)
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);
SomethingPlayzMC is a string so like this
Player p = Bukkit.getPlayer("SomethingPlayzMC");