remove 2 useless cummands
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
package land.chipmunk.chayapak.chomens_bot.commands;
|
||||
|
||||
import land.chipmunk.chayapak.chomens_bot.Bot;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.Command;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.CommandContext;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.TrustLevel;
|
||||
import land.chipmunk.chayapak.chomens_bot.data.chat.MutablePlayerListEntry;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
// ayunsudo renamed.
|
||||
public class SudoAllCommand extends Command {
|
||||
public SudoAllCommand () {
|
||||
super(
|
||||
"sudoall",
|
||||
"Sudoes everyone",
|
||||
new String[] { "<hash> <{c:message|command}>" },
|
||||
new String[] { "ayunsudo" },
|
||||
TrustLevel.TRUSTED
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Component execute(CommandContext context, String[] args, String[] fullArgs) {
|
||||
final Bot bot = context.bot;
|
||||
|
||||
for (MutablePlayerListEntry entry : bot.players.list) {
|
||||
bot.core.run("essentials:sudo " + entry.profile.getName() + " " + String.join(" ", args));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package land.chipmunk.chayapak.chomens_bot.commands;
|
||||
|
||||
import land.chipmunk.chayapak.chomens_bot.command.Command;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.CommandContext;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.TrustLevel;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
public class ThrowCommand extends Command {
|
||||
public ThrowCommand () {
|
||||
super(
|
||||
"throw",
|
||||
"Throws a Java Exception, kinda useless",
|
||||
new String[] { "[{message}]" },
|
||||
new String[] { "throwerror" },
|
||||
TrustLevel.PUBLIC
|
||||
);
|
||||
}
|
||||
|
||||
public Component execute(CommandContext context, String[] args, String[] fullArgs) throws Exception {
|
||||
final String message = String.join(" ", args);
|
||||
|
||||
throw new Exception(message.equals("") ? "among us" : message);
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,6 @@ public class CommandHandlerPlugin {
|
||||
registerCommand(new DiscordCommand());
|
||||
registerCommand(new HelpCommand());
|
||||
registerCommand(new TestCommand());
|
||||
registerCommand(new ThrowCommand());
|
||||
registerCommand(new ValidateCommand());
|
||||
registerCommand(new MusicCommand());
|
||||
registerCommand(new RandomTeleportCommand());
|
||||
@@ -49,7 +48,6 @@ public class CommandHandlerPlugin {
|
||||
registerCommand(new UUIDCommand());
|
||||
registerCommand(new TimeCommand());
|
||||
registerCommand(new BruhifyCommand());
|
||||
registerCommand(new SudoAllCommand());
|
||||
registerCommand(new EndCommand());
|
||||
registerCommand(new CloopCommand());
|
||||
registerCommand(new WeatherCommand());
|
||||
|
||||
Reference in New Issue
Block a user