Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] a)
- {
- String prefix = "§7[§cAnti-Insulte§7] ";
- if(label.equalsIgnoreCase("insulte"))
- {
- if(sender instanceof Player)
- {
- Player p = (Player) sender;
- if(a[1].equalsIgnoreCase("add"))
- {
- if(a.length > 0)
- {
- p.sendMessage(prefix +"§7L'insulte a été ajoutée à la §8BLACKLIST §7!");
- getConfig().getConfigurationSection("").set("", a[1]);
- saveConfig();
- }else{
- if(a.length == 0)
- {
- p.sendMessage(prefix + "Usage: /insulte add <insulte>");
- }
- }
- }
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement