Remove "spikes avoid banish" feature

This commit is contained in:
P0nk
2024-07-16 20:17:21 +02:00
parent 205e263255
commit 3356e42e71
3 changed files with 0 additions and 10 deletions

View File

@@ -1377,14 +1377,6 @@ public class Character extends AbstractCharacterObject {
}
public void changeMapBanish(int mapid, String portal, String msg) {
if (YamlConfig.config.server.USE_SPIKES_AVOID_BANISH) {
for (Item it : this.getInventory(InventoryType.EQUIPPED).list()) {
if ((it.getFlag() & ItemConstants.SPIKES) == ItemConstants.SPIKES) {
return;
}
}
}
int banMap = this.getMapId();
int banSp = this.getMap().findClosestPlayerSpawnpoint(this.getPosition()).getId();
long banTime = System.currentTimeMillis();