mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-19 15:09:23 +00:00
try fix pet names
This commit is contained in:
@@ -34,13 +34,13 @@ import java.util.UUID;
|
||||
* CustomNameplatesAPI
|
||||
*/
|
||||
public record CustomNameplatesAPI(CustomNameplates plugin) {
|
||||
private static CustomNameplatesAPI instance;
|
||||
|
||||
public CustomNameplatesAPI(CustomNameplates plugin) {
|
||||
this.plugin = plugin;
|
||||
instance = this;
|
||||
}
|
||||
|
||||
private static CustomNameplatesAPI instance;
|
||||
|
||||
/**
|
||||
* Gets the CustomNameplates plugin instance.
|
||||
*
|
||||
|
||||
@@ -424,6 +424,10 @@ public class BukkitPlatform implements Platform {
|
||||
if (p == null) {
|
||||
return;
|
||||
}
|
||||
// do not hide team name for the viewer
|
||||
if (player.name().equals(entity)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -451,6 +455,9 @@ public class BukkitPlatform implements Platform {
|
||||
if (p == null) {
|
||||
return;
|
||||
}
|
||||
if (player.name().equals(entity)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user