CommandLightUpdate.java 919 B

123456789101112131415161718192021222324252627282930313233
  1. package me.km.commands;
  2. import me.km.api.GlobalText;
  3. import me.km.api.Module;
  4. import me.km.api.ModuleCommand;
  5. import me.km.permissions.Permissions;
  6. import net.minecraft.command.ICommandSender;
  7. import net.minecraft.entity.player.EntityPlayer;
  8. public class CommandLightUpdate extends ModuleCommand
  9. {
  10. public CommandLightUpdate(Module m)
  11. {
  12. super("lightupdate", m);
  13. super.setDescription("Entfernt Lichtbugs");
  14. super.setUsage("/lightupdate");
  15. super.setPermission(Permissions.LIGHTUPDATE);
  16. }
  17. @Override
  18. public boolean execute(ICommandSender cs, String[] arg)
  19. {
  20. if(!(cs instanceof EntityPlayer))
  21. {
  22. this.getModule().send(cs, GlobalText.onlyPlayer());
  23. return true;
  24. }
  25. EntityPlayer p = (EntityPlayer) cs;
  26. this.getModule().send(cs, "Dieser Command macht momentan nichts.");
  27. return true;
  28. }
  29. }