public class Sanction extends Object
| Constructor and Description | 
|---|
Sanction(String key,
        Configuration config)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getCommand()
The command to run 
 | 
ItemStack | 
getItem(OfflinePlayer cible)
Get the item of this sanction 
 | 
String | 
getKey()  | 
List<String> | 
getLore()  | 
static int | 
getMaxSlot(List<Sanction> list)
Get max slot for the sanction list 
 | 
String | 
getMessage()  | 
String | 
getName()  | 
String | 
getPermission()  | 
int | 
getSlot()  | 
boolean | 
hasPermission(Player p)
Check if has permission 
 | 
public Sanction(String key, Configuration config)
public String getKey()
public String getName()
public String getMessage()
public int getSlot()
public String getPermission()
public boolean hasPermission(Player p)
p - the player that we are looking if has permissionpublic String getCommand()
public ItemStack getItem(OfflinePlayer cible)
cible - the player which is actually sanctionned