Class LuaCore

java.lang.Object
dev.selena.luacore.LuaCore

public class LuaCore extends Object
Main class for the library
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Used for NBT compounds
    static void
    This should only be called by one plugin on your server, Used for preventing the placement/usage of un usable items
    static void
    Used for saving all needed data call this in onDisable
    static void
    setPlugin(org.bukkit.plugin.Plugin plugin)
    This needs to be called in the OnEnable method of your plugin for it to work
    static void
    Used for setting up user data management, This is in early beta currently
    static void
    setVerbose(boolean verbose)
    Used for enabling extra messages

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void setUserDataManager(UserDataManager userDataManager)
      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

      public static String 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