Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (String tags : cnf.getConfigurationSection("Tags.GUI.Tags").getKeys(false)) {
- id = cnf.getInt("Tags.GUI.Tags." + tags + ".ID");
- for (String tag : m.getConfigurationSection("Tags").getKeys(false)) {
- List<String> jogadores = m.getStringList("Tags." + tag + ".Usuarios");
- if (click.getTypeId() == id) {
- if (!jogadores.contains(pp)) {
- jogadores.add(pp);
- m.set("Tags." + tag + ".Usuarios", jogadores);
- KwConfig.saveFile();
- p.sendMessage(KwMetodos.getReplaced("Selecionou").replace("{tag}", tags));
- p.closeInventory();
- e.setCancelled(true);
- } else {
- jogadores.remove(pp);
- m.set("Tags." + tag + ".Usuarios", jogadores);
- KwConfig.saveFile();
- p.sendMessage(KwMetodos.getReplaced("Removida").replace("{tag}", tags));
- p.closeInventory();
- e.setCancelled(true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment