Search in sources :

Example 1 with JsonFileSessionStore

use of com.sk89q.worldedit.session.storage.JsonFileSessionStore in project FastAsyncWorldEdit by IntellectualSites.

the class SessionManager method onConfigurationLoad.

@Subscribe
public void onConfigurationLoad(ConfigurationLoadEvent event) {
    LocalConfiguration config = event.getConfiguration();
    File dir = new File(config.getWorkingDirectoryPath().toFile(), "sessions");
    store = new JsonFileSessionStore(dir);
}
Also used : JsonFileSessionStore(com.sk89q.worldedit.session.storage.JsonFileSessionStore) LocalConfiguration(com.sk89q.worldedit.LocalConfiguration) File(java.io.File) Subscribe(com.sk89q.worldedit.util.eventbus.Subscribe)

Aggregations

LocalConfiguration (com.sk89q.worldedit.LocalConfiguration)1 JsonFileSessionStore (com.sk89q.worldedit.session.storage.JsonFileSessionStore)1 Subscribe (com.sk89q.worldedit.util.eventbus.Subscribe)1 File (java.io.File)1