https://github.com/NukkitX/ExamplePlugin/blob/master/src/main/resources/plugin.yml#L29
to assign a permission use https://github.com/NukkitX/Nukkit/blob/master/src/main/java/cn/nukkit/Player.java#L511
the easiest way to process the command is probably the onCommand() method inherited from Plugin. like this
and you will need to register your commands in plugin.yml (example here)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.