Class MockPlugin

All Implemented Interfaces:
LifecycleEventOwner, CommandExecutor, TabCompleter, TabExecutor, Plugin
Direct Known Subclasses:
MockPlugin.InternalMockPlugin

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

    • MockPlugin

      public MockPlugin()
      CraftBukkit constructor.
    • MockPlugin

      protected MockPlugin(@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 MockPlugin.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