Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
MSWS edited this page Jun 15, 2020 · 3 revisions

The NOPE plugin is modular, you can get a reference of the NOPE plugin as follows:

You can access the Javadocs here.

NOPE nope = (NOPE) Bukkit.getPluginManager().getPlugin("NOPE");

You can get a specific module using nope.getModule(Module). A basic usage of the API would could be:

NOPE nope = (NOPE) Bukkit.getPluginManager().getPlugin("NOPE");

ActionGroup group = new ActionGroup();
group.add(new VLActionCheck(nope, "vl>500"));
group.add(new BanAction(nope, -1, "Custom Ban Reason"));

nope.getModule(ActionManager.class).addAction("Default", group);
Clone this wiki locally