Package com.plotsquared.bukkit
Class BukkitPlatform
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.plotsquared.bukkit.BukkitPlatform
- All Implemented Interfaces:
com.plotsquared.core.configuration.caption.LocaleHolder,com.plotsquared.core.PlotPlatform<Player>,CommandExecutor,TabCompleter,TabExecutor,Listener,Plugin
public final class BukkitPlatform
extends JavaPlugin
implements Listener, com.plotsquared.core.PlotPlatform<Player>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal @Nullable ChunkGeneratorgetDefaultWorldGenerator(@NonNull String worldName, @Nullable String id) @Nullable com.plotsquared.core.generator.GeneratorWrapper<?>getGenerator(@NonNull String world, @Nullable String name) @NonNull com.plotsquared.core.location.World<?>getPlatformWorld(@NonNull String worldName) injector()booleanvoidvoidonEnable()@NonNull com.plotsquared.core.util.PlayerManager<? extends com.plotsquared.core.player.PlotPlayer<Player>,? extends Player> @NonNull com.plotsquared.core.plot.world.PlotAreaManagerint @NonNull []voidsetGenerator(@NonNull String worldName) voidvoidshutdown()voidtoLegacyPlatformString(@NonNull Component component) voidunregister(@NonNull com.plotsquared.core.player.PlotPlayer<?> player) @NonNull com.plotsquared.core.util.PlatformWorldManager<?>@NonNull com.plotsquared.core.generator.GeneratorWrapper<?>wrapPlotGenerator(@NonNull String world, @NonNull com.plotsquared.core.generator.IndependentPlotGenerator generator) Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.plotsquared.core.PlotPlatform
backupManager, chunkManager, defaultGenerator, econHandler, globalBlockQueue, hybridUtils, permissionHandler, placeholderRegistry, regionManager, servicePipeline, setupUtils, worldUtilMethods inherited from interface org.bukkit.plugin.Plugin
getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
BukkitPlatform
public BukkitPlatform()
-
-
Method Details
-
serverVersion
- Specified by:
serverVersionin interfacecom.plotsquared.core.PlotPlatform<Player>
-
serverImplementation
- Specified by:
serverImplementationin interfacecom.plotsquared.core.PlotPlatform<Player>
-
onEnable
public void onEnable()- Specified by:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein classJavaPlugin
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacecom.plotsquared.core.PlotPlatform<Player>
-
getDirectory
- Specified by:
getDirectoryin interfacecom.plotsquared.core.PlotPlatform<Player>
-
worldContainer
- Specified by:
worldContainerin interfacecom.plotsquared.core.PlotPlatform<Player>
-
getDefaultWorldGenerator
public final @Nullable ChunkGenerator getDefaultWorldGenerator(@NonNull String worldName, @Nullable String id) - Specified by:
getDefaultWorldGeneratorin interfacePlugin- Overrides:
getDefaultWorldGeneratorin classJavaPlugin
-
getGenerator
public @Nullable com.plotsquared.core.generator.GeneratorWrapper<?> getGenerator(@NonNull String world, @Nullable String name) - Specified by:
getGeneratorin interfacecom.plotsquared.core.PlotPlatform<Player>
-
startMetrics
public void startMetrics()- Specified by:
startMetricsin interfacecom.plotsquared.core.PlotPlatform<Player>
-
unregister
- Specified by:
unregisterin interfacecom.plotsquared.core.PlotPlatform<Player>
-
setGenerator
- Specified by:
setGeneratorin interfacecom.plotsquared.core.PlotPlatform<Player>
-
serverNativePackage
- Specified by:
serverNativePackagein interfacecom.plotsquared.core.PlotPlatform<Player>
-
wrapPlotGenerator
public @NonNull com.plotsquared.core.generator.GeneratorWrapper<?> wrapPlotGenerator(@NonNull String world, @NonNull com.plotsquared.core.generator.IndependentPlotGenerator generator) - Specified by:
wrapPlotGeneratorin interfacecom.plotsquared.core.PlotPlatform<Player>
-
pluginsFormatted
- Specified by:
pluginsFormattedin interfacecom.plotsquared.core.PlotPlatform<Player>
-
getPlatformWorld
- Specified by:
getPlatformWorldin interfacecom.plotsquared.core.PlotPlatform<Player>
-
consoleAudience
- Specified by:
consoleAudiencein interfacecom.plotsquared.core.PlotPlatform<Player>
-
pluginName
- Specified by:
pluginNamein interfacecom.plotsquared.core.PlotPlatform<Player>
-
getSingleWorldListener
-
injector
- Specified by:
injectorin interfacecom.plotsquared.core.PlotPlatform<Player>
-
plotAreaManager
- Specified by:
plotAreaManagerin interfacecom.plotsquared.core.PlotPlatform<Player>
-
getLocale
- Specified by:
getLocalein interfacecom.plotsquared.core.configuration.caption.LocaleHolder
-
setLocale
- Specified by:
setLocalein interfacecom.plotsquared.core.configuration.caption.LocaleHolder
-
worldManager
- Specified by:
worldManagerin interfacecom.plotsquared.core.PlotPlatform<Player>
-
playerManager
public @NonNull com.plotsquared.core.util.PlayerManager<? extends com.plotsquared.core.player.PlotPlayer<Player>,? extends Player> playerManager()- Specified by:
playerManagerin interfacecom.plotsquared.core.PlotPlatform<Player>
-
copyCaptionMaps
public void copyCaptionMaps()- Specified by:
copyCaptionMapsin interfacecom.plotsquared.core.PlotPlatform<Player>
-
toLegacyPlatformString
- Specified by:
toLegacyPlatformStringin interfacecom.plotsquared.core.PlotPlatform<Player>
-
isFaweHooking
public boolean isFaweHooking()- Specified by:
isFaweHookingin interfacecom.plotsquared.core.PlotPlatform<Player>
-