Change priority of sheep shearing

Cleanup
This commit is contained in:
NuclearW 2012-02-21 00:35:09 -05:00
parent 8f3dce4ee9
commit d0d9868b5f
2 changed files with 1 additions and 4 deletions

View File

@ -3,13 +3,11 @@ package com.gmail.nossr50.datatypes.treasure;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
public class FishingTreasure extends Treasure { public class FishingTreasure extends Treasure {
private int maxLevel; private int maxLevel;
public FishingTreasure(ItemStack drop, int xp, Double dropChance, int dropLevel, int maxLevel) { public FishingTreasure(ItemStack drop, int xp, Double dropChance, int dropLevel, int maxLevel) {
super(drop, xp, dropChance, dropLevel); super(drop, xp, dropChance, dropLevel);
this.setMaxLevel(maxLevel); this.setMaxLevel(maxLevel);
// TODO Auto-generated constructor stub
} }
public int getMaxLevel() { public int getMaxLevel() {
@ -19,5 +17,4 @@ public class FishingTreasure extends Treasure {
public void setMaxLevel(int maxLevel) { public void setMaxLevel(int maxLevel) {
this.maxLevel = maxLevel; this.maxLevel = maxLevel;
} }
} }

View File

@ -78,7 +78,7 @@ public class mcPlayerListener implements Listener
plugin = instance; plugin = instance;
} }
@EventHandler(ignoreCancelled = true) @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onSheepUndressing(PlayerShearEntityEvent event) public void onSheepUndressing(PlayerShearEntityEvent event)
{ {
Player player = event.getPlayer(); Player player = event.getPlayer();