Class PluginSource

java.lang.Object
com.kamikazejam.kamicommon.PluginSource

public class PluginSource extends Object
This class exists as a bootloader for the KamiCommon plugin and APIs.
As of v4 of the KamiCommon library, most of the APIs were moved to the spigot-utils module, and this class has less responsibility, mainly to initialize the SpigotUtilsSource from spigot-utils.
  • Constructor Details

    • PluginSource

      public PluginSource()
  • Method Details

    • onEnable

      public static boolean onEnable(@NotNull @NotNull KamiPlugin plugin)
      Returns:
      true IFF a plugin source was NEEDED and used for registration (false if already enabled)
    • onDisable

      public static boolean onDisable()
      Returns:
      true IFF this call triggered the singleton disable sequence, false it already disabled
    • get

      @NotNull public static @NotNull KamiPlugin get()
    • info

      public static void info(@NotNull @NotNull String msg)
    • warning

      public static void warning(@NotNull @NotNull String msg)
    • error

      public static void error(@NotNull @NotNull String msg)
    • getKamiConfig

      @NotNull public static @NotNull KamiConfig getKamiConfig()