mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-22 21:20:04 +00:00
Fixed TickHandler Fixed other things Added a all param to the getnent Bumped version
49 lines
1.1 KiB
Java
49 lines
1.1 KiB
Java
package mcp.mobius.opis.commands.server;
|
|
|
|
import mcp.mobius.opis.commands.IOpisCommand;
|
|
import mcp.mobius.opis.network.server.Packet_TPS;
|
|
import net.minecraft.command.CommandBase;
|
|
import net.minecraft.command.ICommandSender;
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
|
|
public class CommandTPS extends CommandBase implements IOpisCommand {
|
|
|
|
@Override
|
|
public String getCommandName() {
|
|
return "opis_tps";
|
|
}
|
|
|
|
@Override
|
|
public String getCommandNameOpis() {
|
|
return this.getCommandName();
|
|
}
|
|
|
|
@Override
|
|
public String getCommandUsage(ICommandSender icommandsender) {
|
|
return "";
|
|
}
|
|
|
|
@Override
|
|
public void processCommand(ICommandSender icommandsender, String[] astring) {
|
|
((EntityPlayerMP)icommandsender).playerNetServerHandler.sendPacketToPlayer(Packet_TPS.create() );
|
|
}
|
|
|
|
@Override
|
|
public int getRequiredPermissionLevel()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean canCommandSenderUseCommand(ICommandSender par1ICommandSender)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String getDescription() {
|
|
return "Unused";
|
|
}
|
|
|
|
}
|