Hide setCustomnameVisible for player

This commit is contained in:
libraryaddict 2024-06-25 11:27:30 +12:00
parent d2fa119613
commit a80d5852d0

View File

@ -40,7 +40,6 @@ import org.bukkit.inventory.EntityEquipment;
import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -725,6 +724,7 @@ public class FlagWatcher {
return getData(MetaIndex.ENTITY_CUSTOM_NAME_VISIBLE); return getData(MetaIndex.ENTITY_CUSTOM_NAME_VISIBLE);
} }
@MethodHiddenFor(DisguiseType.PLAYER)
public void setCustomNameVisible(boolean display) { public void setCustomNameVisible(boolean display) {
if (getDisguise().isPlayerDisguise()) { if (getDisguise().isPlayerDisguise()) {
((PlayerDisguise) getDisguise()).setNameVisible(display); ((PlayerDisguise) getDisguise()).setNameVisible(display);