ru.tehkode.permissions.bukkit.commands
Class PermissionsCommand

java.lang.Object
  extended by ru.tehkode.permissions.bukkit.commands.PermissionsCommand
All Implemented Interfaces:
CommandListener
Direct Known Subclasses:
GroupCommands, PromotionCommands, UserCommands, UtilityCommands, WorldCommands

public abstract class PermissionsCommand
extends Object
implements CommandListener


Field Summary
protected static Logger logger
           
 
Constructor Summary
PermissionsCommand()
           
 
Method Summary
protected  String autoCompleteGroupName(String groupName)
           
protected  String autoCompleteGroupName(String groupName, String argName)
           
protected  String autoCompletePermission(PermissionEntity entity, String permission, String worldName)
           
protected  String autoCompletePermission(PermissionEntity entity, String permission, String worldName, String argName)
           
protected  String autoCompletePlayerName(String playerName)
           
protected  String autoCompletePlayerName(String playerName, String argName)
           
protected  String autoCompleteWorldName(String worldName)
           
protected  String autoCompleteWorldName(String worldName, String argName)
           
protected  List<String> getPermissionsTree(PermissionEntity entity, String world, int level)
           
protected  int getPosition(String permission, String[] permissions)
           
protected  String getSafeWorldName(String worldName, String userName)
           
protected  String getSenderName(org.bukkit.command.CommandSender sender)
           
protected  void informGroup(org.bukkit.plugin.Plugin plugin, PermissionGroup group, String message)
           
protected  void informPlayer(org.bukkit.plugin.Plugin plugin, String playerName, String message)
           
protected  String mapPermissions(String worldName, PermissionEntity entity, int level)
           
protected  Object parseValue(String value)
           
protected  void printEntityInheritance(org.bukkit.command.CommandSender sender, PermissionGroup[] groups)
           
protected  String printHierarchy(PermissionGroup parent, String worldName, int level)
           
protected  void sendMessage(org.bukkit.command.CommandSender sender, String message)
           
protected  List<String> sprintPermissions(String world, String[] permissions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
Constructor Detail

PermissionsCommand

public PermissionsCommand()
Method Detail

informGroup

protected void informGroup(org.bukkit.plugin.Plugin plugin,
                           PermissionGroup group,
                           String message)

informPlayer

protected void informPlayer(org.bukkit.plugin.Plugin plugin,
                            String playerName,
                            String message)

autoCompletePlayerName

protected String autoCompletePlayerName(String playerName)

printEntityInheritance

protected void printEntityInheritance(org.bukkit.command.CommandSender sender,
                                      PermissionGroup[] groups)

autoCompletePlayerName

protected String autoCompletePlayerName(String playerName,
                                        String argName)

getSenderName

protected String getSenderName(org.bukkit.command.CommandSender sender)

autoCompleteGroupName

protected String autoCompleteGroupName(String groupName)

autoCompleteGroupName

protected String autoCompleteGroupName(String groupName,
                                       String argName)

autoCompleteWorldName

protected String autoCompleteWorldName(String worldName)

autoCompleteWorldName

protected String autoCompleteWorldName(String worldName,
                                       String argName)

getSafeWorldName

protected String getSafeWorldName(String worldName,
                                  String userName)

autoCompletePermission

protected String autoCompletePermission(PermissionEntity entity,
                                        String permission,
                                        String worldName)

autoCompletePermission

protected String autoCompletePermission(PermissionEntity entity,
                                        String permission,
                                        String worldName,
                                        String argName)

getPosition

protected int getPosition(String permission,
                          String[] permissions)

printHierarchy

protected String printHierarchy(PermissionGroup parent,
                                String worldName,
                                int level)

mapPermissions

protected String mapPermissions(String worldName,
                                PermissionEntity entity,
                                int level)

getPermissionsTree

protected List<String> getPermissionsTree(PermissionEntity entity,
                                          String world,
                                          int level)

sprintPermissions

protected List<String> sprintPermissions(String world,
                                         String[] permissions)

parseValue

protected Object parseValue(String value)

sendMessage

protected void sendMessage(org.bukkit.command.CommandSender sender,
                           String message)


Copyright © 2011. All Rights Reserved.