Class PluginMock

All Implemented Interfaces:
LifecycleEventOwner, CommandExecutor, TabCompleter, TabExecutor, Plugin
Direct Known Subclasses:
PluginMock.InternalPluginMock

public class PluginMock extends JavaPlugin
A simple plugin that does nothing.
  • Constructor Details

    • PluginMock

      public PluginMock()
      CraftBukkit constructor.
    • PluginMock

      protected PluginMock(@NotNull @NotNull JavaPluginLoader loader, @NotNull @NotNull PluginDescriptionFile description, @NotNull @NotNull File dataFolder, @NotNull @NotNull File file)
      MockBukkit constructor.
      Parameters:
      loader - The plugin loader.
      description - The plugin description file.
      dataFolder - The plugins data folder.
      file - The plugins file.
  • Method Details

    • builder

      public static PluginMock.Builder builder()
      Create a builder for mock plugins, allows for on enable, on disable code execution and so on
      Returns:
      A builder for mock plugin