123456789101112131415161718192021222324252627282930313233343536 |
- package me.km.commands;
- import me.km.KajetansMod;
- import me.km.api.GlobalText;
- import me.km.api.Module;
- import me.km.api.ModuleCommand;
- import me.km.permissions.Permissions;
- import net.minecraft.command.ICommandSender;
- import net.minecraft.entity.player.EntityPlayer;
- public class CommandTest extends ModuleCommand
- {
- public CommandTest(Module m)
- {
- super("test", m);
- super.setDescription("Für Tests");
- super.setUsage("/test");
- super.setPermission(Permissions.TEST);
- }
- @Override
- public boolean execute(ICommandSender cs, String[] arg)
- {
- if(!(cs instanceof EntityPlayer))
- {
- this.getModule().send(cs, GlobalText.onlyPlayer());
- return true;
- }
- this.getModule().send(cs, "Das ist ein Test.");
- KajetansMod.scheduler.scheduleTask(() ->
- {
- this.getModule().send(cs, "TIMERTEST");
- }, 100);
- return true;
- }
- }
|