entity hider plugin: add support for hiding pets
This commit is contained in:
@@ -1493,6 +1493,13 @@ public interface Client extends GameEngine
|
||||
*/
|
||||
void setNPCsHidden2D(boolean state);
|
||||
|
||||
/**
|
||||
* Sets whether Pets from other players are hidden.
|
||||
*
|
||||
* @param state new pet hidden state
|
||||
*/
|
||||
void setPetsHidden(boolean state);
|
||||
|
||||
/**
|
||||
* Sets whether attacking players or NPCs are hidden.
|
||||
*
|
||||
|
||||
@@ -122,6 +122,17 @@ public interface EntityHiderConfig extends Config
|
||||
|
||||
@ConfigItem(
|
||||
position = 9,
|
||||
keyName = "hidePets",
|
||||
name = "Hide Pets",
|
||||
description = "Configures whether or not other player pets are hidden"
|
||||
)
|
||||
default boolean hidePets()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 10,
|
||||
keyName = "hideAttackers",
|
||||
name = "Hide Attackers",
|
||||
description = "Configures whether or not NPCs/players attacking you are hidden"
|
||||
@@ -132,7 +143,7 @@ public interface EntityHiderConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
position = 10,
|
||||
position = 11,
|
||||
keyName = "hideProjectiles",
|
||||
name = "Hide Projectiles",
|
||||
description = "Configures whether or not projectiles are hidden"
|
||||
|
||||
@@ -95,6 +95,8 @@ public class EntityHiderPlugin extends Plugin
|
||||
client.setNPCsHidden(config.hideNPCs());
|
||||
client.setNPCsHidden2D(config.hideNPCs2D());
|
||||
|
||||
client.setPetsHidden(config.hidePets());
|
||||
|
||||
client.setAttackersHidden(config.hideAttackers());
|
||||
|
||||
client.setProjectilesHidden(config.hideProjectiles());
|
||||
@@ -117,6 +119,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