entityhider: add wildcard support (#1202)
* Add wildcard support to entity hider * standardize npc name
This commit is contained in:
@@ -132,10 +132,10 @@ public interface EntityHiderConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 10,
|
||||
keyName = "hideNPCsNames",
|
||||
name = "Hide NPCs Names",
|
||||
description = "Configures which NPCs to hide"
|
||||
position = 10,
|
||||
keyName = "hideNPCsNames",
|
||||
name = "Hide NPCs Names",
|
||||
description = "Configures which NPCs to hide"
|
||||
)
|
||||
default String hideNPCsNames()
|
||||
{
|
||||
@@ -143,7 +143,18 @@ public interface EntityHiderConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 10,
|
||||
position = 11,
|
||||
keyName = "hideDeadNPCs",
|
||||
name = "Hide Dead NPCs",
|
||||
description = "Configures whether or not NPCs that just died are hidden"
|
||||
)
|
||||
default boolean hideDeadNPCs()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 12,
|
||||
keyName = "hideNPCsOnDeath",
|
||||
name = "Hide NPCs On Death",
|
||||
description = "Configures which NPCs to hide when they die"
|
||||
@@ -154,7 +165,7 @@ public interface EntityHiderConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 11,
|
||||
position = 13,
|
||||
keyName = "hideProjectiles",
|
||||
name = "Hide Projectiles",
|
||||
description = "Configures whether or not projectiles are hidden"
|
||||
@@ -163,16 +174,4 @@ public interface EntityHiderConfig extends Config
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 12,
|
||||
keyName = "hideDeadNPCs",
|
||||
name = "Hide Dead NPCs",
|
||||
description = "Configures whether or not NPCs that just died are hidden"
|
||||
)
|
||||
default boolean hideDeadNPCs()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.EventBus;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
import net.runelite.client.util.Text;
|
||||
|
||||
@PluginDescriptor(
|
||||
name = "Entity Hider",
|
||||
@@ -107,8 +108,8 @@ public class EntityHiderPlugin extends Plugin
|
||||
|
||||
client.setNPCsHidden(config.hideNPCs());
|
||||
client.setNPCsHidden2D(config.hideNPCs2D());
|
||||
client.setNPCsNames(config.hideNPCsNames());
|
||||
client.setNPCsHiddenOnDeath(config.hideNPCsOnDeath());
|
||||
client.setNPCsNames(Text.fromCSV(config.hideNPCsNames()));
|
||||
client.setNPCsHiddenOnDeath(Text.fromCSV(config.hideNPCsOnDeath()));
|
||||
|
||||
client.setAttackersHidden(config.hideAttackers());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user