With Javascript in Minecraft op / plug-in?

Le
- in Plugins
2

So, I have been coding Java for my Minecraft server for quite some time now. Now I wanted to try out, if I could also op with one of my plugin. Just because. Without command or otherwise. Plugin on it. Reloaded and I'm op. Is that possible? Also, that it does not appear in the console or in the chat?

This must work on a BungeeCord server, Bukkit is ok too.

Va

JavaScript and Java have nothing to do with each other.

If a plugin provides commands, there's usually an event behind it. (if user / op enters, then set user level to 'operator').

Only with appropriate Einagbe something happens, or is the input checked.

If you omit this event and just write a command to the main method of your Java program that states that the user should become an operator, this command will be executed when the plugin starts.

This must work on a BungeeCord server, Bukkit is ok too.

There's a corresponding API for both systems.

Kh

Just in one of your plugins in the onEnable () method:

Bukkit.getPlayer ( "name") SETOP (true).