entityhider: Pets entity hider & isFollower (#2094)
This commit is contained in:
@@ -234,11 +234,22 @@ public interface EntityHiderConfig extends Config
|
||||
return "";
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 18,
|
||||
keyName = "hidePets",
|
||||
name = "Hide Pets",
|
||||
description = "Configures whether or not other player pets are hidden"
|
||||
)
|
||||
default boolean hidePets()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigTitleSection(
|
||||
keyName = "miscTitle",
|
||||
name = "Miscellaneous",
|
||||
description = "",
|
||||
position = 18
|
||||
position = 19
|
||||
)
|
||||
default Title miscTitle()
|
||||
{
|
||||
@@ -246,7 +257,7 @@ public interface EntityHiderConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 19,
|
||||
position = 20,
|
||||
keyName = "hideProjectiles",
|
||||
name = "Hide Projectiles",
|
||||
description = "Configures whether or not projectiles are hidden",
|
||||
|
||||
@@ -140,6 +140,8 @@ public class EntityHiderPlugin extends Plugin
|
||||
//client.setNPCsNames(Text.fromCSV(config.hideNPCsNames()));
|
||||
//client.setNPCsHiddenOnDeath(Text.fromCSV(config.hideNPCsOnDeath()));
|
||||
|
||||
client.setPetsHidden(config.hidePets());
|
||||
|
||||
client.setAttackersHidden(config.hideAttackers());
|
||||
|
||||
client.setProjectilesHidden(config.hideProjectiles());
|
||||
@@ -164,6 +166,8 @@ public class EntityHiderPlugin extends Plugin
|
||||
client.setNPCsHidden(false);
|
||||
client.setNPCsHidden2D(false);
|
||||
|
||||
client.setPetsHidden(false);
|
||||
|
||||
client.setAttackersHidden(false);
|
||||
|
||||
client.setProjectilesHidden(false);
|
||||
|
||||
Reference in New Issue
Block a user