Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/cl/netgamer/clicksortlite/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,12 @@ public final class Main extends JavaPlugin implements Listener
public void onEnable()
{
getServer().getPluginManager().registerEvents(this, this);
getLogger().info("If you want to disable container sorting you have 2 ways:");
getLogger().info("- cancel InventoryClickEvent in your plugin");
getLogger().info("- set permission 'clicksortlite' to false");
getLogger().info("For these to work i had to set InventoryClickEvent priority to highest,");
getLogger().info("you should not do the same or results may be unpredictable.");
}


@EventHandler(priority = EventPriority.HIGHEST)
@EventHandler(priority = EventPriority.MONITOR)
void onInventoryClick(InventoryClickEvent e)
{
// if event was cancelled before do nothing, together with event priority highest
if ( e.isCancelled() )
return;

Expand Down