mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Importing Bukkit.java is bad, always use getServer() instead
This commit is contained in:
parent
d8e86d0fc7
commit
3f56a8fbcf
@ -4,7 +4,6 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -175,7 +174,7 @@ public class McMMOPlayer {
|
|||||||
// If we've failed five times, give up
|
// If we've failed five times, give up
|
||||||
if (attempt >= MAX_TRIES) {
|
if (attempt >= MAX_TRIES) {
|
||||||
mcMMO.p.getLogger().severe("Giving up on attempting to load the PlayerProfile for " + playerName);
|
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"));
|
player.sendMessage(LocaleLoader.getString("Recovery.Failure").split("\n"));
|
||||||
this.cancel();
|
this.cancel();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user