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

    Fields 
    Modifier and Type Field Description
    private java.util.HashMap<net.md_5.bungee.api.connection.ProxiedPlayer,​java.lang.String> codes  
    private net.md_5.bungee.config.Configuration config  
    private java.util.HashMap<java.util.UUID,​java.lang.Long> delay  
  • Constructor Summary

    Constructors 
    Constructor Description
    BungeeMain()  
  • Method Summary

    Modifier and Type Method Description
    void addCode​(java.lang.String code, java.lang.String uuid)
    Adds a Verficationcode.
    net.md_5.bungee.config.Configuration getConfig()
    Returns the Configuration.
    java.lang.Boolean isDelayDone​(java.util.UUID uuid)
    Has this player an delay?
    void loadConfig()
    Loads the Configuration out of the File.
    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 in this 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 net.md_5.bungee.api.plugin.Plugin

    getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onDisable, onLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • config

      private net.md_5.bungee.config.Configuration config
    • codes

      private java.util.HashMap<net.md_5.bungee.api.connection.ProxiedPlayer,​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.
      Overrides:
      onEnable in class net.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.