Add handler
This commit is contained in:
parent
eb42f29d5b
commit
a855e61bcf
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package gent.zeus.mc13dtl.events.catalog;
|
||||
|
||||
import gent.zeus.mc13dtl.MC13DTL;
|
||||
import gent.zeus.mc13dtl.events.Difficulty;
|
||||
import gent.zeus.mc13dtl.events.Event;
|
||||
import org.bukkit.Material;
|
||||
|
@ -25,6 +26,9 @@ public class MineEvent extends Event {
|
|||
|
||||
@EventHandler
|
||||
public void onBlockBreak(BlockBreakEvent event) {
|
||||
if (MC13DTL.board.getPlayers(team).contains(event.getPlayer()) && event.getBlock().getType() == block) {
|
||||
eventSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue