Class SpigotMain

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
de.neo.rankbridge.minecraft.spigot.SpigotMain
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public class SpigotMain
extends org.bukkit.plugin.java.JavaPlugin
The MainClass for the Spigot plugin.
Version:
1.0
Author:
Neo8
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.HashMap<org.bukkit.OfflinePlayer,​java.lang.String> codes  
    private java.util.HashMap<java.util.UUID,​java.lang.Long> delay  
  • Constructor Summary

    Constructors 
    Constructor Description
    SpigotMain()  
  • Method Summary

    Modifier and Type Method Description
    void addCode​(java.lang.String code, java.lang.String uuid)
    Adds a Verificationcode to the class.
    java.lang.Boolean isDelayDone​(java.util.UUID uuid)
    Has this player an delay?
    void loadConfig()
    Loads the Configuration.
    void onEnable()
    Runs when the plugin is enabled.
    void removeCode​(java.lang.String uuid)
    Sends a message to all services to remove the code.
    void removeCodeSingle​(java.lang.String code, java.lang.String uuid)
    Removes a Code from the class.
    void removeDelay​(java.util.UUID uuid)
    Removes this player from RAM (for clean usage).
    void resetDelay​(java.util.UUID uuid)
    Resets the expired delay of this player.

    Methods inherited from class org.bukkit.plugin.java.JavaPlugin

    getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • codes

      private java.util.HashMap<org.bukkit.OfflinePlayer,​java.lang.String> codes
    • delay

      private java.util.HashMap<java.util.UUID,​java.lang.Long> delay
  • Constructor Details

  • Method Details

    • onEnable

      public void onEnable()
      Runs when the plugin is enabled.
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • loadConfig

      public void loadConfig()
      Loads the Configuration.
    • addCode

      public void addCode​(java.lang.String code, java.lang.String uuid)
      Adds a Verificationcode to the class.
      Parameters:
      code - the code
      uuid - the uuid of the player.
    • removeCodeSingle

      public void removeCodeSingle​(java.lang.String code, java.lang.String uuid)
      Removes a Code from the class.
      Parameters:
      code - the code
      uuid - the uuid of the player
    • removeCode

      public void removeCode​(java.lang.String uuid)
      Sends a message to all services to remove the code.
      Parameters:
      uuid - the uuid of the player.
    • isDelayDone

      public java.lang.Boolean isDelayDone​(java.util.UUID uuid)
      Has this player an delay?
      Parameters:
      uuid - the uuid of the player.
      Returns:
      Boolean whether the players delay is done or not.
    • resetDelay

      public void resetDelay​(java.util.UUID uuid)
      Resets the expired delay of this player.
      Parameters:
      uuid - the uuid of the player.
    • removeDelay

      public void removeDelay​(java.util.UUID uuid)
      Removes this player from RAM (for clean usage).
      Parameters:
      uuid - the uuid of the player.