mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Fixed mcrank and/or mctop
This commit is contained in:
parent
ebd02dc30e
commit
3d7b6e13c9
@ -37,6 +37,9 @@ public class McrankCommandDisplayTask extends BukkitRunnable {
|
|||||||
if (useChat) {
|
if (useChat) {
|
||||||
displayChat();
|
displayChat();
|
||||||
}
|
}
|
||||||
|
if(sender instanceof Player) {
|
||||||
|
mcMMO.p.getServer().getPlayerExact(playerName).removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayChat() {
|
private void displayChat() {
|
||||||
@ -57,7 +60,6 @@ public class McrankCommandDisplayTask extends BukkitRunnable {
|
|||||||
|
|
||||||
rank = skills.get(null);
|
rank = skills.get(null);
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Overall", (rank == null ? LocaleLoader.getString("Commands.mcrank.Unranked") : rank)));
|
sender.sendMessage(LocaleLoader.getString("Commands.mcrank.Overall", (rank == null ? LocaleLoader.getString("Commands.mcrank.Unranked") : rank)));
|
||||||
player.removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void displayBoard() {
|
public void displayBoard() {
|
||||||
|
Loading…
Reference in New Issue
Block a user