Merge remote-tracking branch 'remotes/pull_117/multiworld-snapshots'

This commit is contained in:
hretsam
2011-08-05 12:29:49 +02:00
17 changed files with 391 additions and 279 deletions

View File

@ -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();

View File

@ -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.