mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-18 18:01:06 +02:00
a84c68d49d
- Added support for Deadbolt - By default, left clicking your own sign doesn't do anything - Restricted signs now check if you've got permission ChestShop.group.groupName - Added support for stacking unstackable things - Updated Register - Changed how plugins are loaded.
21 lines
591 B
Java
21 lines
591 B
Java
package com.Acrobot.ChestShop.Listeners;
|
|
|
|
import org.bukkit.block.Block;
|
|
import org.bukkit.event.entity.EntityExplodeEvent;
|
|
import org.bukkit.event.entity.EntityListener;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class entityExplode extends EntityListener {
|
|
public void onEntityExplode(EntityExplodeEvent event) {
|
|
if (event.isCancelled() || event.blockList() == null) return;
|
|
for (Block block : event.blockList()) {
|
|
if (blockBreak.cancellingBlockBreak(block, null)) {
|
|
event.setCancelled(true);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|