Class IBukkit

java.lang.Object
net.lewmc.foundry.IBukkit

public class IBukkit extends Object
IBukkit class, handles some internal processes.
  • Constructor Details

    • IBukkit

      public IBukkit(FoundryConfig config, org.bukkit.plugin.java.JavaPlugin plugin)
      Constructor for the class.
      Parameters:
      config - FoundryConfig - Foundry's configuration.
      plugin - Plugin - Reference to the main plugin class.
  • Method Details

    • getCommandMap

      public org.bukkit.command.CommandMap getCommandMap()
      Fetches the Bukkit Command Map
      Returns:
      CommandMap on success, null on fail.
    • constructRuntimeCommand

      public org.bukkit.command.PluginCommand constructRuntimeCommand(String name)
      Constructs a runtime command. Note: If you're registering command on runtime use the Registry function instead.
      Parameters:
      name - The command's name.
      Returns:
      PluginCommand the constructed command.
      See Also:
    • getPluginManager

      public org.bukkit.plugin.PluginManager getPluginManager()
      Fetches the Bukkit Plugin Manager
      Returns:
      PluginManager on success, null on fail.