mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-28 11:19:26 +00:00
try fix pet names
This commit is contained in:
@@ -34,13 +34,13 @@ import java.util.UUID;
|
|||||||
* CustomNameplatesAPI
|
* CustomNameplatesAPI
|
||||||
*/
|
*/
|
||||||
public record CustomNameplatesAPI(CustomNameplates plugin) {
|
public record CustomNameplatesAPI(CustomNameplates plugin) {
|
||||||
|
private static CustomNameplatesAPI instance;
|
||||||
|
|
||||||
public CustomNameplatesAPI(CustomNameplates plugin) {
|
public CustomNameplatesAPI(CustomNameplates plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static CustomNameplatesAPI instance;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the CustomNameplates plugin instance.
|
* Gets the CustomNameplates plugin instance.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -424,6 +424,10 @@ public class BukkitPlatform implements Platform {
|
|||||||
if (p == null) {
|
if (p == null) {
|
||||||
return;
|
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) {
|
if (p == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (player.name().equals(entity)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user