Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Fix /me and /broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed May 16, 2015
1 parent 22a6c00 commit 7455ae0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -52,11 +52,11 @@ public void onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent event) {
if (event.getPlayer().hasPermission("irc.message.gamechat")) {
if (msg.toLowerCase().startsWith("/me ")) {
for (PurpleBot ircBot : plugin.ircBots.values()) {
ircBot.gameAction(event.getPlayer(), msg.replace("/me", ""));
ircBot.gameAction(event.getPlayer(), msg.split(" ", 2)[1]);
}
} else if (msg.toLowerCase().startsWith("/broadcast ")) {
for (PurpleBot ircBot : plugin.ircBots.values()) {
ircBot.gameBroadcast(event.getPlayer(), msg.replace("/broadcast", ""));
ircBot.gameBroadcast(event.getPlayer(), msg.split(" ", 2)[1]);
}
}
}
Expand Down

0 comments on commit 7455ae0

Please sign in to comment.