Hello. I have a problem. I want to remove that player who send command. But if someone send this command: "/udvozlo torol" then remove all users and and it remains: Code: udvozlo: [] Config: Code: udvozlo: davidkormos2003: szoveg: §ahelloooo DavidGamer5: szoveg: §ahi everyone Code: Code: if (args[0].equalsIgnoreCase("torol")) { List<String> udvtorol = getConfig().getStringList("udvozlo"); udvtorol.remove(args[0]); getConfig().set("udvozlo", udvtorol); saveConfig(); p.sendMessage(ChatColor.GOLD + "Sikeres üdvözlő üzenet törlés!"); }
@DavidGamer5 It is not a string list, it is a ConfigurationSection. getConfig().set("udvozlo"+<playername>, null) does what you need