Class GameAPI

  • All Implemented Interfaces:
    org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

    public class GameAPI
    extends org.bukkit.plugin.java.JavaPlugin
    • Constructor Summary

      Constructors 
      Constructor Description
      GameAPI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void error​(java.lang.String error)  
      ch.njol.skript.SkriptAddon getAddonInstance()  
      static GameAPI getInstance()  
      static void info​(java.lang.String info)  
      void loadGames()
      Load all games saved or added
      void onDisable()  
      void onEnable()  
      static java.lang.String readToString​(java.lang.String targetURL)  
      void saveAsYaml​(Game game)
      Save your minis games as yaml file
      • Methods inherited from class org.bukkit.plugin.java.JavaPlugin

        getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
      • Methods inherited from class org.bukkit.plugin.PluginBase

        equals, getName, hashCode
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • messages

        public static java.lang.Boolean messages
      • manage_automatically

        public static java.lang.Boolean manage_automatically
      • expressions

        public java.util.List<Registration> expressions
    • Constructor Detail

      • GameAPI

        public GameAPI()
    • Method Detail

      • error

        public static void error​(java.lang.String error)
      • info

        public static void info​(java.lang.String info)
      • getInstance

        public static GameAPI getInstance()
      • readToString

        public static java.lang.String readToString​(java.lang.String targetURL)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getAddonInstance

        public ch.njol.skript.SkriptAddon getAddonInstance()
      • onDisable

        public void onDisable()
        Specified by:
        onDisable in interface org.bukkit.plugin.Plugin
        Overrides:
        onDisable in class org.bukkit.plugin.java.JavaPlugin
      • saveAsYaml

        public void saveAsYaml​(Game game)
        Save your minis games as yaml file
        Parameters:
        game - The mini game you want to save
      • loadGames

        @Async
        public void loadGames()
        Load all games saved or added
      • onEnable

        public void onEnable()
        Specified by:
        onEnable in interface org.bukkit.plugin.Plugin
        Overrides:
        onEnable in class org.bukkit.plugin.java.JavaPlugin