Merge pull request #627 from f0rmatme/hide_npcs_basedonname

Added NPC hider based on name
This commit is contained in:
Tyler Bochard
2019-06-17 18:27:36 -04:00
committed by GitHub
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());