Class 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 Details

    • BukkitPlatform

      public BukkitPlatform()
  • Method Details

    • serverVersion

      public int @NonNull [] serverVersion()
      Specified by:
      serverVersion in interface com.plotsquared.core.PlotPlatform<Player>
    • serverImplementation

      public @NonNull String serverImplementation()
      Specified by:
      serverImplementation in interface com.plotsquared.core.PlotPlatform<Player>
    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface Plugin
      Overrides:
      onEnable in class JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface Plugin
      Overrides:
      onDisable in class JavaPlugin
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.plotsquared.core.PlotPlatform<Player>
    • getDirectory

      public @NonNull File getDirectory()
      Specified by:
      getDirectory in interface com.plotsquared.core.PlotPlatform<Player>
    • worldContainer

      public @NonNull File worldContainer()
      Specified by:
      worldContainer in interface com.plotsquared.core.PlotPlatform<Player>
    • getDefaultWorldGenerator

      public final @Nullable ChunkGenerator getDefaultWorldGenerator(@NonNull String worldName, @Nullable String id)
      Specified by:
      getDefaultWorldGenerator in interface Plugin
      Overrides:
      getDefaultWorldGenerator in class JavaPlugin
    • getGenerator

      public @Nullable com.plotsquared.core.generator.GeneratorWrapper<?> getGenerator(@NonNull String world, @Nullable String name)
      Specified by:
      getGenerator in interface com.plotsquared.core.PlotPlatform<Player>
    • startMetrics

      public void startMetrics()
      Specified by:
      startMetrics in interface com.plotsquared.core.PlotPlatform<Player>
    • unregister

      public void unregister(@NonNull com.plotsquared.core.player.PlotPlayer<?> player)
      Specified by:
      unregister in interface com.plotsquared.core.PlotPlatform<Player>
    • setGenerator

      public void setGenerator(@NonNull String worldName)
      Specified by:
      setGenerator in interface com.plotsquared.core.PlotPlatform<Player>
    • serverNativePackage

      public @NonNull String serverNativePackage()
      Specified by:
      serverNativePackage in interface com.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:
      wrapPlotGenerator in interface com.plotsquared.core.PlotPlatform<Player>
    • pluginsFormatted

      public @NonNull String pluginsFormatted()
      Specified by:
      pluginsFormatted in interface com.plotsquared.core.PlotPlatform<Player>
    • getPlatformWorld

      public @NonNull com.plotsquared.core.location.World<?> getPlatformWorld(@NonNull String worldName)
      Specified by:
      getPlatformWorld in interface com.plotsquared.core.PlotPlatform<Player>
    • consoleAudience

      public @NonNull Audience consoleAudience()
      Specified by:
      consoleAudience in interface com.plotsquared.core.PlotPlatform<Player>
    • pluginName

      public @NonNull String pluginName()
      Specified by:
      pluginName in interface com.plotsquared.core.PlotPlatform<Player>
    • getSingleWorldListener

      public SingleWorldListener getSingleWorldListener()
    • injector

      public @NonNull Injector injector()
      Specified by:
      injector in interface com.plotsquared.core.PlotPlatform<Player>
    • plotAreaManager

      public @NonNull com.plotsquared.core.plot.world.PlotAreaManager plotAreaManager()
      Specified by:
      plotAreaManager in interface com.plotsquared.core.PlotPlatform<Player>
    • getLocale

      public @NonNull Locale getLocale()
      Specified by:
      getLocale in interface com.plotsquared.core.configuration.caption.LocaleHolder
    • setLocale

      public void setLocale(@NonNull Locale locale)
      Specified by:
      setLocale in interface com.plotsquared.core.configuration.caption.LocaleHolder
    • worldManager

      public @NonNull com.plotsquared.core.util.PlatformWorldManager<?> worldManager()
      Specified by:
      worldManager in interface com.plotsquared.core.PlotPlatform<Player>
    • playerManager

      public @NonNull com.plotsquared.core.util.PlayerManager<? extends com.plotsquared.core.player.PlotPlayer<Player>,? extends Player> playerManager()
      Specified by:
      playerManager in interface com.plotsquared.core.PlotPlatform<Player>
    • copyCaptionMaps

      public void copyCaptionMaps()
      Specified by:
      copyCaptionMaps in interface com.plotsquared.core.PlotPlatform<Player>
    • toLegacyPlatformString

      public @NonNull String toLegacyPlatformString(@NonNull Component component)
      Specified by:
      toLegacyPlatformString in interface com.plotsquared.core.PlotPlatform<Player>
    • isFaweHooking

      public boolean isFaweHooking()
      Specified by:
      isFaweHooking in interface com.plotsquared.core.PlotPlatform<Player>