Added /we version and /we reload.

This commit is contained in:
sk89q
2011-02-19 01:22:28 -08:00
parent d5e8f037c9
commit 824e4c9381
7 changed files with 103 additions and 2 deletions

View File

@ -25,8 +25,10 @@ import com.sk89q.worldedit.ServerInterface;
public class BukkitServerInterface extends ServerInterface {
public Server server;
public WorldEditPlugin plugin;
public BukkitServerInterface(Server server) {
public BukkitServerInterface(WorldEditPlugin plugin, Server server) {
this.plugin = plugin;
this.server = server;
}
@ -41,4 +43,9 @@ public class BukkitServerInterface extends ServerInterface {
return CreatureType.fromName(type) != null;
}
@Override
public void reload() {
plugin.loadConfiguration();
}
}

View File

@ -76,7 +76,7 @@ public class WorldEditPlugin extends JavaPlugin {
permsListener = new PermissionsResolverServerListener(perms);
loadConfiguration();
server = new BukkitServerInterface(getServer());
server = new BukkitServerInterface(this, getServer());
controller = new WorldEdit(server, config);
api = new WorldEditAPI(this);