Create a SelectionTool with the given item @param item The item to use
(ItemStack item)
| 37 | * @param item The item to use |
| 38 | */ |
| 39 | public SelectionTool(ItemStack item) { |
| 40 | this.item = item; |
| 41 | Bukkit.getPluginManager().registerEvents(this, RedLib.getInstance()); |
| 42 | try { |
| 43 | plugin = JavaPlugin.getProvidingPlugin(Class.forName(new Exception().getStackTrace()[1].getClassName())); |
| 44 | } catch (ClassNotFoundException e) { |
| 45 | e.printStackTrace(); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | @EventHandler |
| 50 | public void onPluginDisable(PluginDisableEvent e) { |
nothing calls this directly
no test coverage detected