Sueta

Deletino for Lobby - Automatically delete "/playerdata" and

1.1

It allows you to delete automatically the /playerdata directory when your server is stopping

·Plugin

It allows you to automatically delete the "/playerdata" directory when your server is stopping. Easy but powerful! :p

If you have a lobby or a login server and you don't want to store useless data you can use my plugin and this settings in "spigot.yml"

stats:
  disable-saving: true
  forced-stats:
    achievement:
      openInventory: 1

If you don't need my plugin don't download it. In my case it helped me to fix a bug that generated slowdowns during login.
Thanks for reading!

Source code:

package Deletino;

import java.io.File;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin{
   
    public void onDisable()
    {
        final File index = new File(Bukkit.getWorlds().get(0).getWorldFolder()+"/playerdata");
        for(String s: index.list())
            new File(index.getPath(),s).delete();
        index.delete();
    }
}

Similar projects

Plugin →