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:
@@ -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;
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user