Package net.lewmc.foundry
Class IBukkit
java.lang.Object
net.lewmc.foundry.IBukkit
IBukkit class, handles some internal processes.
-
Constructor Summary
ConstructorsConstructorDescriptionIBukkit
(FoundryConfig config, org.bukkit.plugin.java.JavaPlugin plugin) Constructor for the class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.command.PluginCommand
Constructs a runtime command.org.bukkit.command.CommandMap
Fetches the Bukkit Command Maporg.bukkit.plugin.PluginManager
Fetches the Bukkit Plugin Manager
-
Constructor Details
-
IBukkit
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
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.
-