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[§cTON PREFIX§7] ";
- if(label.equalsIgnoreCase("insulte")) {
- if(sender instanceof Player) {
- Player p = (Player) sender;
- if(a.length == 0) {
- System.out.print(prefixlog + "Usage: /listop add|remove <Pseudo>");
- }else if(a.length == 1) {
- if(a[1].equalsIgnoreCase("add")) {
- if(a[1].length() == 0) {
- System.out.print(prefixlog + "Usage: /insulte add <insulte>");
- }else if(a[1].length() < 0) {
- p.sendMessage(prefix +"§7L'insulte a été ajoutée à la §8BLACKLIST §7!")
- plugin.getConfig().getConfigurationSection("").set("", a[1]);
- plugin.saveConfig();
- }
- }else {
- //Code Here (Pour la console)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement