Update command /purgeall to not remove Itemframes & paintings

This commit is contained in:
Pharma 2023-01-18 12:11:10 -06:00 committed by GitHub
parent f507dbdfe6
commit ae31e02118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,8 @@ public class Command_purgeall extends FreedomCommand
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{ {
FUtil.adminAction(sender.getName(), "Purging all player data", true); FUtil.adminAction(sender.getName(), "Purging all player data", true);
//TODO Make Purgeall not include Item frames and Paintings.
// Purge entities // Purge entities
for (World world : Bukkit.getWorlds()) for (World world : Bukkit.getWorlds())
{ {