Class BungeeMain
java.lang.Object
net.md_5.bungee.api.plugin.Plugin
de.neo.rankbridge.minecraft.bungeecord.BungeeMain
public class BungeeMain
extends net.md_5.bungee.api.plugin.Plugin
The mainclass for the BungeeCord plugin.
- Version:
- 1.0
- Author:
- Neo8
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BungeeMain() -
Method Summary
Modifier and Type Method Description voidaddCode(java.lang.String code, java.lang.String uuid)Adds a Verficationcode.net.md_5.bungee.config.ConfigurationgetConfig()Returns the Configuration.java.lang.BooleanisDelayDone(java.util.UUID uuid)Has this player an delay?voidloadConfig()Loads the Configuration out of the File.voidonEnable()Runs when the Plugin is enabled.voidremoveCode(java.lang.String uuid)Sends a message to all services to remove the code.voidremoveCodeSingle(java.lang.String code, java.lang.String uuid)Removes a code in this class.voidremoveDelay(java.util.UUID uuid)Removes this player from RAM (for clean usage).voidresetDelay(java.util.UUID uuid)Resets the expired delay of this player.
-
Field Details
-
Constructor Details
-
BungeeMain
public BungeeMain()
-
-
Method Details
-
onEnable
public void onEnable()Runs when the Plugin is enabled.- Overrides:
onEnablein classnet.md_5.bungee.api.plugin.Plugin
-
getConfig
public net.md_5.bungee.config.Configuration getConfig()Returns the Configuration.- Returns:
- the Configuration.
-
loadConfig
public void loadConfig()Loads the Configuration out of the File. -
addCode
public void addCode(java.lang.String code, java.lang.String uuid)Adds a Verficationcode.- 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 in this 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.
-