Browse Source

Importing Bukkit.java is bad, always use getServer() instead

GJ 11 years ago
parent
commit
3f56a8fbcf
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java

+ 1 - 2
src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java

@@ -4,7 +4,6 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
-import org.bukkit.Bukkit;
 import org.bukkit.GameMode;
 import org.bukkit.Location;
 import org.bukkit.Material;
@@ -175,7 +174,7 @@ public class McMMOPlayer {
             // If we've failed five times, give up
             if (attempt >= MAX_TRIES) {
                 mcMMO.p.getLogger().severe("Giving up on attempting to load the PlayerProfile for " + playerName);
-                Bukkit.broadcast(LocaleLoader.getString("Recovery.AdminFailureNotice", playerName), Server.BROADCAST_CHANNEL_ADMINISTRATIVE);
+                mcMMO.p.getServer().broadcast(LocaleLoader.getString("Recovery.AdminFailureNotice", playerName), Server.BROADCAST_CHANNEL_ADMINISTRATIVE);
                 player.sendMessage(LocaleLoader.getString("Recovery.Failure").split("\n"));
                 this.cancel();
                 return;