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
-
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
-
Field Details
-
Constructor Details
-
SpigotMain
public SpigotMain()
-
-
Method Details
-
onEnable
public void onEnable()Runs when the plugin is enabled.- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.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 codeuuid
- 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 codeuuid
- 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.
-