Merge branch 'master' of https://git.knarcraft.net/EpicKnarvik97/PermissionSigns
Conflicts: pom.xml
This commit is contained in:
commit
aaff5ea943
@ -21,6 +21,10 @@ public final class Translator {
|
||||
private static Map<TranslatableMessage, String> translatedMessages;
|
||||
private static Map<TranslatableMessage, String> backupTranslatedMessages;
|
||||
|
||||
private Translator() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the languages used by this translator
|
||||
*/
|
||||
|
@ -13,6 +13,7 @@ import org.bukkit.block.data.type.WallSign;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.event.block.BlockExplodeEvent;
|
||||
@ -30,27 +31,27 @@ import static net.knarcraft.permissionsigns.PermissionSigns.extensiveSignProtect
|
||||
*/
|
||||
public class BlockListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onPistonExtend(BlockPistonExtendEvent event) {
|
||||
preventDestruction(event.getBlocks(), event);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onPistonRetract(BlockPistonRetractEvent event) {
|
||||
preventDestruction(event.getBlocks(), event);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onBlockExplode(BlockExplodeEvent event) {
|
||||
preventDestruction(event.blockList(), event);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onEntityExplode(EntityExplodeEvent event) {
|
||||
preventDestruction(event.blockList(), event);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onBlockBreak(BlockBreakEvent event) {
|
||||
Block block = event.getBlock();
|
||||
Player player = event.getPlayer();
|
||||
|
Loading…
Reference in New Issue
Block a user