Renamed hey0's plugin to SMWorldEdit. Made WorldEdit somewhat a singleton to hold the ServerInterface instance.

This commit is contained in:
sk89q
2010-10-14 11:59:45 -07:00
parent 5f1a014bfb
commit 92dc88562c
5 changed files with 73 additions and 26 deletions

View File

@ -41,7 +41,7 @@ public class EditSession {
/**
* Server interface.
*/
public static ServerInterface server;
protected ServerInterface server;
/**
* Stores the original blocks before modification.
@ -88,6 +88,7 @@ public class EditSession {
* Default constructor. There is no maximum blocks limit.
*/
public EditSession() {
server = WorldEdit.getServer();
}
/**
@ -98,6 +99,8 @@ public class EditSession {
throw new IllegalArgumentException("Max blocks must be >= -1");
}
this.maxBlocks = maxBlocks;
server = WorldEdit.getServer();
}
/**