Fixed awkward command spy parsing.

This commit is contained in:
Brianna 2019-10-17 10:48:41 -04:00
parent f30fedeb90
commit b54280abf0

View File

@ -53,7 +53,7 @@ public class CommandListener implements Listener {
if (pl != player && pl.hasPermission("um.commandspy") && CommandCommandSpy.isSpying(pl)) if (pl != player && pl.hasPermission("um.commandspy") && CommandCommandSpy.isSpying(pl))
instance.getLocale().getMessage("command.commandspy.deny") instance.getLocale().getMessage("command.commandspy.deny")
.processPlaceholder("player", player.getName()) .processPlaceholder("player", player.getName())
.processPlaceholder("command", StringEscapeUtils.escapeJava(command)) .processPlaceholder("command", command)
.sendPrefixedMessage(pl); .sendPrefixedMessage(pl);
} }
} }