mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 04:26:42 +00:00
Added /we version and /we reload.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user