mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 10:56:42 +00:00
Merge remote-tracking branch 'remotes/pull_117/multiworld-snapshots'
This commit is contained in:
@ -86,10 +86,8 @@ public class BukkitConfiguration extends LocalConfiguration {
|
||||
LocalSession.EXPIRATION_GRACE = config.getInt("history.expiration", 10) * 60 * 1000;
|
||||
|
||||
String snapshotsDir = config.getString("snapshots.directory", "");
|
||||
if (!snapshotsDir.trim().equals("")) {
|
||||
if (!snapshotsDir.isEmpty()){
|
||||
snapshotRepo = new SnapshotRepository(snapshotsDir);
|
||||
} else {
|
||||
snapshotRepo = null;
|
||||
}
|
||||
|
||||
String type = config.getString("shell-save-type", "").trim();
|
||||
|
@ -69,6 +69,15 @@ public class BukkitWorld extends LocalWorld {
|
||||
public World getWorld() {
|
||||
return world;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the world
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getName() {
|
||||
return world.getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set block type.
|
||||
|
Reference in New Issue
Block a user