me.armar.plugins.autorank.validations
Class PermissionGroupValidation

java.lang.Object
  extended by me.armar.plugins.autorank.validations.PermissionGroupValidation

public class PermissionGroupValidation
extends java.lang.Object


Field Summary
private  Autorank autorank
           
 
Constructor Summary
PermissionGroupValidation(Autorank instance)
           
 
Method Summary
 boolean isValidChange(java.lang.String group)
          Checks whether the @group variable is the same as rankFrom group.
 boolean validateGroups(SimpleYamlConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

autorank

private Autorank autorank
Constructor Detail

PermissionGroupValidation

public PermissionGroupValidation(Autorank instance)
Method Detail

validateGroups

public boolean validateGroups(SimpleYamlConfiguration config)

isValidChange

public boolean isValidChange(java.lang.String group)
Checks whether the @group variable is the same as rankFrom group. It also checks whether the rankTo group is defined as a group in the permission plugin

Parameters:
group -
Returns:
true if (rankFrom.equals(group) && rankTo is defined in the config); false otherwise