diff options
author | Adam Thomas <aet2505@gmail.com> | 2014-11-29 02:49:19 +0000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-18 21:24:14 +1100 |
commit | 23759bcb40c28e47cc5a96efd2e7990c56a924b3 (patch) | |
tree | 94cb3a62e1522e90082dd4b36795f0ab65567475 /src/main/java/org/bukkit/scoreboard/NameTagVisibility.java | |
parent | 935e6dd9397adf33261df6fcfb442357c7b2fa0e (diff) | |
download | bukkit-23759bcb40c28e47cc5a96efd2e7990c56a924b3.tar bukkit-23759bcb40c28e47cc5a96efd2e7990c56a924b3.tar.gz bukkit-23759bcb40c28e47cc5a96efd2e7990c56a924b3.tar.lz bukkit-23759bcb40c28e47cc5a96efd2e7990c56a924b3.tar.xz bukkit-23759bcb40c28e47cc5a96efd2e7990c56a924b3.zip |
Add NameTag visibility API to the Team interface.
Diffstat (limited to 'src/main/java/org/bukkit/scoreboard/NameTagVisibility.java')
-rw-r--r-- | src/main/java/org/bukkit/scoreboard/NameTagVisibility.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/scoreboard/NameTagVisibility.java b/src/main/java/org/bukkit/scoreboard/NameTagVisibility.java new file mode 100644 index 00000000..3137bf6e --- /dev/null +++ b/src/main/java/org/bukkit/scoreboard/NameTagVisibility.java @@ -0,0 +1,21 @@ +package org.bukkit.scoreboard; + +public enum NameTagVisibility { + + /** + * Always show the player's nametag. + */ + ALWAYS, + /** + * Never show the player's nametag. + */ + NEVER, + /** + * Show the player's nametag only to his own team members. + */ + HIDE_FOR_OTHER_TEAMS, + /** + * Show the player's nametag only to members of other teams. + */ + HIDE_FOR_OWN_TEAM; +} |