Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.model.players.commands;
- import org.model.players.client;
- public class CommandManager {
- /**
- * @author animeking1120
- */
- public client c;
- public static void playerCommand(final client c, String command) {
- PlayerCommands.playerCommands(c, command);
- }
- public static void modCommand(final client c, String command) {
- ModCommands.ModCommand(c, command);
- }
- public static void adminCommand(final client c, String command) {
- AdminCommands.adminCommand(c, command);
- }
- public static void ownerCommand(final client c, String command) {
- OwnerCommands.ownerCommand(c, command);
- }
- public final static void customCommand(client c, String command) {
- if (c.playerRights >= 0) {
- playerCommand(c, command);
- } else if (c.playerRights >= 1) {
- modCommand(c, command);
- } else if (c.playerRights >= 2) {
- adminCommand(c, command);
- } else if (c.playerRights >= 3) {
- ownerCommand(c, command);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement