Fixed things

This commit is contained in:
Norbi Peti 2016-06-24 01:38:17 +02:00
parent 6889f8ed87
commit b312f2358e
2 changed files with 9 additions and 3 deletions

View file

@ -54,8 +54,8 @@ public class ChatProcessing {
if (msg.contains(PlayerListener.LaughStrings[i])) {
UnlolCommand.Lastlol = sender;
UnlolCommand.Lastlolornot = false;
break;
}
break;
}
}
Channel currentchannel = (mp == null ? PlayerListener.ConsoleChannel

View file

@ -1,5 +1,7 @@
package io.github.norbipeti.thebuttonmcchat.commands.ucmds;
import io.github.norbipeti.thebuttonmcchat.commands.TBMCCommandBase;
import org.bukkit.command.CommandSender;
public final class UCommand extends UCommandBase {
@ -12,12 +14,16 @@ public final class UCommand extends UCommandBase {
@Override
public boolean OnUCommand(CommandSender sender, String alias, String[] args) {
return false; //TODO: Forward call to the correct handler
if (args.length == 0)
return false; // TODO: Forward call to the correct handler
if (!TBMCCommandBase.GetCommands().containsKey(args[0]))
return false;
TBMCCommandBase cmd = TBMCCommandBase.GetCommands().get(args[0]); //Subcommand
}
@Override
public String GetUCommandName() {
return "u"; //TODO: Same as at AdminCommand
return "u"; // TODO: Same as at AdminCommand
}
@Override