Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
7ad5a1dc22
Commit
61eb28f78e
@ -37,7 +37,6 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.block.BlockBreakEvent;
|
|
||||||
import org.bukkit.event.block.BlockDispenseEvent;
|
import org.bukkit.event.block.BlockDispenseEvent;
|
||||||
import org.bukkit.event.block.BlockFromToEvent;
|
import org.bukkit.event.block.BlockFromToEvent;
|
||||||
import org.bukkit.event.entity.EntityExplodeEvent;
|
import org.bukkit.event.entity.EntityExplodeEvent;
|
||||||
@ -153,14 +152,6 @@ public class Permanent implements Listener {
|
|||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
|
||||||
public void onBlockBreak(BlockBreakEvent e) {
|
|
||||||
Block block = e.getBlock();
|
|
||||||
for(ItemStack stack : block.getDrops(e.getPlayer().getItemInHand()))
|
|
||||||
Config.world.dropItemNaturally(block.getLocation(), stack);
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onDropPickup(PlayerPickupItemEvent e) {
|
public void onDropPickup(PlayerPickupItemEvent e) {
|
||||||
if(!(Config.ArenaRegion.inRegion(e.getItem().getLocation())))
|
if(!(Config.ArenaRegion.inRegion(e.getItem().getLocation())))
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren