Skip to content

Commit

Permalink
Fixed bug where running the /vrchat command would also try to switch …
Browse files Browse the repository at this point in the history
…your current channel to the one you're in
  • Loading branch information
Jmgiacone committed Jan 22, 2014
1 parent abde387 commit 8396b27
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/base/plugin/ChatHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
{
Player player = (Player) sender;
String name = player.getDisplayName();
Channel c = players.get(player.getName());
Channel c;

switch (command)
{
Expand All @@ -58,11 +58,13 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
{
player.sendMessage(ChatColor.DARK_GRAY + "[VRChat] " + ChatColor.WHITE + "Version " + getDescription().getVersion());
}
}else
}
else
{
player.sendMessage(ChatColor.RED + "Not a valid VRChat command! Type '/help vrchat' for commands.");
}
break;

return false;
case "ooc":
c = Channel.OOC;
break;
Expand Down

0 comments on commit 8396b27

Please sign in to comment.