mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Change priority of sheep shearing
Cleanup
This commit is contained in:
parent
8f3dce4ee9
commit
d0d9868b5f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user