Class Kick

java.lang.Object
fr.Alphart.BAT.Modules.Kick.Kick
All Implemented Interfaces:
IModule

public class Kick extends Object implements IModule
  • Constructor Details

    • Kick

      public Kick(BAT plugin)
  • Method Details

    • getCommands

      public List<BATCommand> getCommands()
      Description copied from interface: IModule
      Get commands used by this module
      Specified by:
      getCommands in interface IModule
      Returns:
      list of commands
    • getMainCommand

      public String getMainCommand()
      Description copied from interface: IModule
      Get main command name
      Specified by:
      getMainCommand in interface IModule
      Returns:
      name of the main command without a slash
    • getName

      public String getName()
      Specified by:
      getName in interface IModule
    • getConfig

      public ModuleConfiguration getConfig()
      Description copied from interface: IModule
      Get the configuration section of this module
      Specified by:
      getConfig in interface IModule
      Returns:
      configuration section of this module
    • load

      public boolean load()
      Description copied from interface: IModule
      Load the module
      Specified by:
      load in interface IModule
      Returns:
      true if everything's ok otherwise false
    • unload

      public boolean unload()
      Description copied from interface: IModule
      Unload the module
      Specified by:
      unload in interface IModule
      Returns:
      true if everything's ok otherwise false
    • kick

      public String kick(net.md_5.bungee.api.connection.ProxiedPlayer player, String staff, String reason)
      Kicks the given ProxiedPlayer and sends to the default server.
      Parameters:
      player - Player to kick.
      reason - Reason for kicking.
    • kickSQL

      public String kickSQL(String pUUID, String server, String staff, String reason)
    • gKick

      public String gKick(net.md_5.bungee.api.connection.ProxiedPlayer player, String staff, String reason)
      Kicks the given ProxiedPlayer from the network.
      Parameters:
      player - Player to kick.
      reason - Reason for kicking.
    • gKickSQL

      public String gKickSQL(String pUUID, String staff, String reason)
    • getKickData

      public List<KickEntry> getKickData(String pName)
      Get all kick data of a player
      Should be runned async to optimize performance
      Parameters:
      pName - 's name
      Returns:
      List of KickEntry of the player
    • getManagedKick

      public List<KickEntry> getManagedKick(String staff)