mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-22 13:09:53 +00:00
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.
39 lines
943 B
Java
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;
|
|
}
|
|
|
|
}
|