Minecraft Modding: Tips For Server Commands

Invoking A Command For A Player

Thanks to diesieben07 for this tip.

You can cause a command to be executed for a player with:

MinecraftServer.getServer().getCommandManager().executeCommand(player, command);

Note that this should be executed only on the server side.

Create A Custom Command

Check out Jabelar's Custom Command Tutorial.

No comments:

Post a Comment