Class TeamSpeakMain

java.lang.Object
de.neo.rankbridge.shared.manager.services.BridgeService
de.neo.rankbridge.teamspeak.TeamSpeakMain

public class TeamSpeakMain
extends BridgeService
the MainClass for the TeamSpeak Bot.
Version:
1.0
Author:
Neo8
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private com.github.theholywaffle.teamspeak3.TS3ApiAsync api  
    private java.util.HashMap<java.lang.String,​MultiVar> codes  
  • Constructor Summary

    Constructors 
    Constructor Description
    TeamSpeakMain()
    new Instance.
  • Method Summary

    Modifier and Type Method Description
    void addCode​(java.lang.String code, java.lang.Integer group, java.util.UUID uuid, java.lang.String ip)
    Adds a Verification Code.
    com.github.theholywaffle.teamspeak3.TS3ApiAsync getAPI()
    Returns the TS3 API.
    MultiVar getCode​(java.lang.String code)
    Gets the Values for a Code.
    void removeCode​(java.lang.String code)
    Removes a Code.

    Methods inherited from class de.neo.rankbridge.shared.manager.services.BridgeService

    getExternalService, getServiceName, handleExternal, setExternalService

    Methods inherited from class java.lang.Object

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

    • api

      private com.github.theholywaffle.teamspeak3.TS3ApiAsync api
    • codes

      private java.util.HashMap<java.lang.String,​MultiVar> codes
  • Constructor Details

  • Method Details

    • addCode

      public void addCode​(java.lang.String code, java.lang.Integer group, java.util.UUID uuid, java.lang.String ip)
      Adds a Verification Code.
      Parameters:
      code - The code to add.
      group - The role to add.
      uuid - The uuid of the Player.
      ip - the ip of the Player.
    • getCode

      public MultiVar getCode​(java.lang.String code)
      Gets the Values for a Code.
      Parameters:
      code - The code.
      Returns:
      The MultiVar for the code.
    • removeCode

      public void removeCode​(java.lang.String code)
      Removes a Code.
      Parameters:
      code - The code to remove.
    • getAPI

      public com.github.theholywaffle.teamspeak3.TS3ApiAsync getAPI()
      Returns the TS3 API.
      Returns:
      the TS3 API.