mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Remove legacy ServerInterface
This commit is contained in:
@ -35,6 +35,7 @@ import com.sk89q.worldedit.extension.factory.ItemFactory;
|
||||
import com.sk89q.worldedit.extension.factory.MaskFactory;
|
||||
import com.sk89q.worldedit.extension.factory.PatternFactory;
|
||||
import com.sk89q.worldedit.extension.platform.Actor;
|
||||
import com.sk89q.worldedit.extension.platform.Capability;
|
||||
import com.sk89q.worldedit.extension.platform.Platform;
|
||||
import com.sk89q.worldedit.extension.platform.PlatformManager;
|
||||
import com.sk89q.worldedit.extent.inventory.BlockBag;
|
||||
@ -601,7 +602,8 @@ public class WorldEdit {
|
||||
}
|
||||
|
||||
LocalSession session = getSessionManager().get(player);
|
||||
CraftScriptContext scriptContext = new CraftScriptContext(this, getServer(), getConfiguration(), session, player, args);
|
||||
CraftScriptContext scriptContext = new CraftScriptContext(this, getPlatformManager().queryCapability(Capability.USER_COMMANDS),
|
||||
getConfiguration(), session, player, args);
|
||||
|
||||
CraftScriptEngine engine;
|
||||
|
||||
@ -649,15 +651,6 @@ public class WorldEdit {
|
||||
return getPlatformManager().getConfiguration();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the server interface.
|
||||
*
|
||||
* @return the server interface
|
||||
*/
|
||||
public ServerInterface getServer() {
|
||||
return getPlatformManager().getServerInterface();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a factory for {@link EditSession}s.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user