mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-02 13:44:43 +02:00
Fixed bug where processing message would always get displayed
and the player could never execute /mctop or /mcrank if chat display was disabled.
This commit is contained in:
@ -42,6 +42,9 @@ public class MctopCommandDisplayTask extends BukkitRunnable {
|
||||
displayChat();
|
||||
}
|
||||
|
||||
if (sender instanceof Player) {
|
||||
((Player) sender).removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
|
||||
}
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.mctop.Tip"));
|
||||
}
|
||||
|
||||
@ -62,9 +65,6 @@ public class MctopCommandDisplayTask extends BukkitRunnable {
|
||||
sender.sendMessage(String.format("%2d. %s%s - %s%s", place, ChatColor.GREEN, stat.name, ChatColor.WHITE, stat.statVal));
|
||||
place++;
|
||||
}
|
||||
if (sender instanceof Player) {
|
||||
((Player) sender).removeMetadata(mcMMO.databaseCommandKey, mcMMO.p);
|
||||
}
|
||||
}
|
||||
|
||||
private void displayBoard() {
|
||||
|
Reference in New Issue
Block a user