|
@@ -539,16 +539,18 @@ public class BigScreenBot extends Bot
|
|
message = Colors.removeFormattingAndColors(message);
|
|
message = Colors.removeFormattingAndColors(message);
|
|
|
|
|
|
String[] arguments = StringUtils.split(message, null, 2);
|
|
String[] arguments = StringUtils.split(message, null, 2);
|
|
|
|
+ String argument = "";
|
|
|
|
+ Command command = null;
|
|
|
|
|
|
- if (arguments.length == 0)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
- String argument = arguments[0].toLowerCase();
|
|
|
|
|
|
+ if (arguments.length != 0)
|
|
|
|
+ {
|
|
|
|
+ argument = arguments[0].toLowerCase();
|
|
|
|
|
|
- if (argument.startsWith("!"))
|
|
|
|
- argument = argument.substring(1);
|
|
|
|
|
|
+ if (argument.startsWith("!"))
|
|
|
|
+ argument = argument.substring(1);
|
|
|
|
|
|
- Command command = commands.get(argument);
|
|
|
|
|
|
+ command = commands.get(argument);
|
|
|
|
+ }
|
|
|
|
|
|
if (channel != null)
|
|
if (channel != null)
|
|
{
|
|
{
|