mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 12:38:40 +01:00
Add prefixes to commands
This commit is contained in:
parent
a1a688c110
commit
bdecaa1727
@ -36,9 +36,9 @@ public class Toggle implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (setIgnoring(player, !toggledPlayers.contains(player.getName()))) {
|
if (setIgnoring(player, !toggledPlayers.contains(player.getName()))) {
|
||||||
player.sendMessage(Messages.TOGGLE_MESSAGES_OFF);
|
player.sendMessage(Messages.prefix(Messages.TOGGLE_MESSAGES_OFF));
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(Messages.TOGGLE_MESSAGES_ON);
|
player.sendMessage(Messages.prefix(Messages.TOGGLE_MESSAGES_ON));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user