Package dev.selena.luacore
Class LuaCore
java.lang.Object
dev.selena.luacore.LuaCore
Main class for the library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Used for NBT compoundsstatic void
This should only be called by one plugin on your server, Used for preventing the placement/usage of un usable itemsstatic void
save()
Used for saving all needed data call this in onDisablestatic void
setPlugin
(org.bukkit.plugin.Plugin plugin) This needs to be called in the OnEnable method of your plugin for it to workstatic void
setUserDataManager
(UserDataManager userDataManager) Used for setting up user data management, This is in early beta currentlystatic void
setVerbose
(boolean verbose) Used for enabling extra messages
-
Constructor Details
-
LuaCore
public LuaCore()
-
-
Method Details
-
setPlugin
public static void setPlugin(org.bukkit.plugin.Plugin plugin) This needs to be called in the OnEnable method of your plugin for it to work- Parameters:
plugin
- Your main class that extends JavaPlugin
-
setUserDataManager
Used for setting up user data management, This is in early beta currently- Parameters:
userDataManager
- The instance of the UserDataManager class
-
registerItemEvents
public static void registerItemEvents()This should only be called by one plugin on your server, Used for preventing the placement/usage of un usable items -
setVerbose
public static void setVerbose(boolean verbose) Used for enabling extra messages- Parameters:
verbose
- True if you want extra messages
-
getCompountName
Used for NBT compounds- Returns:
- Returns the compound name for your plugin
-
save
public static void save()Used for saving all needed data call this in onDisable
-