From aa9f306586fd5a813fff5994c2bccb9aa1c8c073 Mon Sep 17 00:00:00 2001 From: ayunami2000 Date: Sun, 10 Apr 2022 17:56:15 -0400 Subject: [PATCH] fix entitywipe not actually wiping entities --- src/main/java/dev/plex/command/impl/EntityWipeCMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/plex/command/impl/EntityWipeCMD.java b/src/main/java/dev/plex/command/impl/EntityWipeCMD.java index d22179d..204b227 100644 --- a/src/main/java/dev/plex/command/impl/EntityWipeCMD.java +++ b/src/main/java/dev/plex/command/impl/EntityWipeCMD.java @@ -54,7 +54,7 @@ public class EntityWipeCMD extends PlexCommand { if (entity.getType() != EntityType.PLAYER) { - String type = entity.getName(); + String type = entity.getType().name(); if (useBlacklist ? entityBlacklist.stream().noneMatch(entityName -> entityName.equalsIgnoreCase(type)) : entityWhitelist.stream().anyMatch(entityName -> entityName.equalsIgnoreCase(type))) {