Change the priority of the discount handler

This commit is contained in:
Andrzej Pomirski 2015-03-11 18:02:41 +01:00
parent 28f9f08987
commit 1bd0e9f8ef
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import com.Acrobot.ChestShop.Permission;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import java.io.IOException;
@ -42,7 +43,7 @@ public class DiscountModule implements Listener {
groupList = config.getKeys(false);
}
@EventHandler
@EventHandler(priority = EventPriority.LOW)
public void onPreTransaction(PreTransactionEvent event) {
if (event.isCancelled() || event.getTransactionType() != BUY || !(event.getOwnerInventory() instanceof AdminInventory)) {
return;