9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

Fix bot name check issue (#200)

This commit is contained in:
Lumine1909
2024-04-05 04:19:42 -04:00
committed by GitHub
parent 4fbac4548c
commit 82fc9e3c2f

View File

@@ -632,7 +632,7 @@ index 0000000000000000000000000000000000000000..fd8a1306f3179d0729a4a543405ac210
+ return false;
+ }
+
+ if (Bukkit.getPlayer(name) != null || ServerBot.getBot(name) != null) {
+ if (Bukkit.getPlayerExact(name) != null || ServerBot.getBot(name) != null) {
+ sender.sendMessage(ChatColor.RED + "This player is in server");
+ return false;
+ }