Skip to content
This repository was archived by the owner on Jun 19, 2018. It is now read-only.
Noah edited this page Nov 9, 2017 · 2 revisions

If you are a developer and want to use the API methods, you first must create a PerWorldInventoryAPI object. You can do that like this:

PerWorldInventory pwi = (PerWorldInventory) Bukkit.getServer().getPluginManager().getPlugin("PerWorldInventory");
PerWorldInventoryAPI api = pwi.getAPI();
From there, just call what method you want from the API, for example:
Code (Text):
boolean canShare = api.canWorldsShare("world", "anotherWorld");

You can view the full API class here.

Clone this wiki locally