Files
Opis/mcp/mobius/opis/commands/client/CommandClientStart.java
T
ProfMobius 87b8f3f787 Turned ClientCommand into an enum
Turned DataReq into an enum
Fixed clean up of Swing table (reverse index)
When /opis is used, the client requests a full set of data to populate the tables.
2014-03-18 15:47:35 +01:00

39 lines
943 B
Java

package mcp.mobius.opis.commands.client;
import mcp.mobius.opis.network.enums.ClientCommand;
import mcp.mobius.opis.network.server.Packet_ClientCommand;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
public class CommandClientStart extends CommandBase {
@Override
public String getCommandName() {
return "opis_cstart";
}
@Override
public String getCommandUsage(ICommandSender icommandsender) {
return "";
}
@Override
public void processCommand(ICommandSender icommandsender, String[] astring) {
((EntityPlayerMP)icommandsender).playerNetServerHandler.sendPacketToPlayer(Packet_ClientCommand.create(ClientCommand.START_PROFILING));
}
@Override
public int getRequiredPermissionLevel()
{
return 0;
}
@Override
public boolean canCommandSenderUseCommand(ICommandSender sender)
{
return true;
}
}