mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-30 18:08:24 +01:00
Changed "#endercrystal" to now log as "#ender_crystal"
This commit is contained in:
parent
cfb53f766e
commit
ca59ff25df
@ -1,10 +1,10 @@
|
|||||||
package net.coreprotect.listener.block;
|
package net.coreprotect.listener.block;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -37,9 +37,7 @@ public final class BlockExplodeListener extends Queue implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Config.getConfig(world).NATURAL_BREAK) {
|
if (Config.getConfig(world).NATURAL_BREAK) {
|
||||||
Iterator<Map.Entry<Location, Block>> it = new HashMap<>(blockMap).entrySet().iterator();
|
for (Entry<Location, Block> data : new HashMap<>(blockMap).entrySet()) {
|
||||||
while (it.hasNext()) {
|
|
||||||
Map.Entry<Location, Block> data = it.next();
|
|
||||||
Block block = data.getValue();
|
Block block = data.getValue();
|
||||||
int x = block.getX();
|
int x = block.getX();
|
||||||
int y = block.getY();
|
int y = block.getY();
|
||||||
@ -158,7 +156,7 @@ public final class BlockExplodeListener extends Queue implements Listener {
|
|||||||
user = "#tnt";
|
user = "#tnt";
|
||||||
}
|
}
|
||||||
else if (user.contains("end_crystal")) {
|
else if (user.contains("end_crystal")) {
|
||||||
user = "#endercrystal";
|
user = "#ender_crystal";
|
||||||
}
|
}
|
||||||
if (!user.startsWith("#")) {
|
if (!user.startsWith("#")) {
|
||||||
user = "#explosion";
|
user = "#explosion";
|
||||||
|
@ -46,7 +46,7 @@ public final class EntityExplodeListener extends Queue implements Listener {
|
|||||||
user = "#wither";
|
user = "#wither";
|
||||||
}
|
}
|
||||||
else if (entity instanceof EnderCrystal) {
|
else if (entity instanceof EnderCrystal) {
|
||||||
user = "#endercrystal";
|
user = "#ender_crystal";
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean log = false;
|
boolean log = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user