Merge pull request #27 from ayunami2000/master

fix entitywipe not actually wiping entities
This commit is contained in:
Telesphoreo 2022-04-10 17:00:18 -05:00 committed by GitHub
commit 16186bdfbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ public class EntityWipeCMD extends PlexCommand
{ {
if (entity.getType() != EntityType.PLAYER) 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))) if (useBlacklist ? entityBlacklist.stream().noneMatch(entityName -> entityName.equalsIgnoreCase(type)) : entityWhitelist.stream().anyMatch(entityName -> entityName.equalsIgnoreCase(type)))
{ {