public class BukkitServerInterface extends ServerInterface implements MultiUserPlatform
| Modifier and Type | Field and Description |
|---|---|
WorldEditPlugin |
plugin |
org.bukkit.Server |
server |
| Constructor and Description |
|---|
BukkitServerInterface(WorldEditPlugin plugin,
org.bukkit.Server server) |
| Modifier and Type | Method and Description |
|---|---|
Map<Capability,Preference> |
getCapabilities()
Get a map of advertised capabilities of this platform, where each key
in the given map is a supported capability and the respective value
indicates the preference for this platform for that given capability.
|
LocalConfiguration |
getConfiguration()
Get the configuration from this platform.
|
Collection<Actor> |
getConnectedUsers()
Get a list of connected users.
|
String |
getPlatformName()
Get a friendly name of the platform.
|
String |
getPlatformVersion()
Get the version of the platform, which can be anything.
|
String |
getVersion()
Get the version of WorldEdit that this platform provides.
|
List<LocalWorld> |
getWorlds()
Get a list of available or loaded worlds.
|
boolean |
isValidMobType(String type)
Checks if a mob type is valid.
|
Player |
matchPlayer(Player player)
Create a duplicate of the given player.
|
BukkitWorld |
matchWorld(World world)
Create a duplicate of the given world.
|
void |
registerCommands(Dispatcher dispatcher)
Register the commands contained within the given command dispatcher.
|
void |
registerGameHooks()
Register game hooks.
|
void |
reload()
Reload WorldEdit configuration.
|
int |
resolveItem(String name)
Resolves an item name to its ID.
|
int |
schedule(long delay,
long period,
Runnable task)
Schedules the given
task to be invoked once every
period ticks after an initial delay of delay ticks. |
void |
unregisterCommands() |
public org.bukkit.Server server
public WorldEditPlugin plugin
public BukkitServerInterface(WorldEditPlugin plugin, org.bukkit.Server server)
public int resolveItem(String name)
PlatformresolveItem in interface Platformname - The name to look uppublic boolean isValidMobType(String type)
PlatformisValidMobType in interface Platformtype - The mob type name to checkpublic void reload()
Platformpublic int schedule(long delay,
long period,
Runnable task)
Platformtask to be invoked once every
period ticks after an initial delay of delay ticks.schedule in interface Platformschedule in class AbstractPlatformdelay - Delay in server ticks before executing first repeatperiod - Period in server ticks of the tasktask - Task to be executedpublic List<LocalWorld> getWorlds()
PlatformgetWorlds in interface PlatformgetWorlds in class AbstractPlatform@Nullable public Player matchPlayer(Player player)
PlatformThe given player may have been provided by a different platform.
matchPlayer in interface Platformplayer - the player to match@Nullable public BukkitWorld matchWorld(World world)
PlatformThe given world may have been provided by a different platform.
matchWorld in interface Platformworld - the world to matchpublic void registerCommands(Dispatcher dispatcher)
PlatformregisterCommands in interface Platformdispatcher - the dispatcherpublic void registerGameHooks()
PlatformregisterGameHooks in interface Platformpublic LocalConfiguration getConfiguration()
PlatformgetConfiguration in interface Platformpublic String getVersion()
PlatformThis version should match WorldEdit releases because it may be checked to match.
getVersion in interface Platformpublic String getPlatformName()
PlatformThe name can be anything (reasonable). An example name may be "Bukkit" or "Forge".
getPlatformName in interface Platformpublic String getPlatformVersion()
PlatformgetPlatformVersion in interface Platformpublic Map<Capability,Preference> getCapabilities()
PlatformgetCapabilities in interface Platformpublic void unregisterCommands()
public Collection<Actor> getConnectedUsers()
MultiUserPlatformgetConnectedUsers in interface MultiUserPlatformCopyright © 2010-2014. All Rights Reserved.