Fixed things
This commit is contained in:
parent
6889f8ed87
commit
b312f2358e
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue