NPC hider based on name

This commit is contained in:
James Munson
2019-06-15 16:00:36 -07:00
parent 4d3b7b2510
commit 844089ae2e
5 changed files with 44 additions and 1 deletions

View File

@@ -132,7 +132,18 @@ public interface EntityHiderConfig extends Config
}
@ConfigItem(
position = 10,
position = 10,
keyName = "hideNPCsNames",
name = "Hide NPCs Names",
description = "Configures which NPCs to hide"
)
default String hideNPCsNames()
{
return "";
}
@ConfigItem(
position = 11,
keyName = "hideProjectiles",
name = "Hide Projectiles",
description = "Configures whether or not projectiles are hidden"
@@ -141,4 +152,5 @@ public interface EntityHiderConfig extends Config
{
return false;
}
}

View File

@@ -94,6 +94,7 @@ public class EntityHiderPlugin extends Plugin
client.setNPCsHidden(config.hideNPCs());
client.setNPCsHidden2D(config.hideNPCs2D());
client.setNPCsNames(config.hideNPCsNames());
client.setAttackersHidden(config.hideAttackers());