Package fr.Alphart.BAT.Modules.Kick
Class Kick
java.lang.Object
fr.Alphart.BAT.Modules.Kick.Kick
- All Implemented Interfaces:
IModule
-
Nested Class Summary
-
Field Summary
Fields inherited from interface fr.Alphart.BAT.Modules.IModule
ANY_SERVER, GLOBAL_SERVER, NO_REASON, OFF_STATE, ON_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet commands used by this moduleGet the configuration section of this modulegetKickData
(String pName) Get all kick data of a player
Should be runned async to optimize performanceGet main command namegetManagedKick
(String staff) getName()
Kicks the givenProxiedPlayer
from the network.Kicks the givenProxiedPlayer
and sends to the default server.boolean
load()
Load the moduleboolean
unload()
Unload the module
-
Constructor Details
-
Kick
-
-
Method Details
-
getCommands
Description copied from interface:IModule
Get commands used by this module- Specified by:
getCommands
in interfaceIModule
- Returns:
- list of commands
-
getMainCommand
Description copied from interface:IModule
Get main command name- Specified by:
getMainCommand
in interfaceIModule
- Returns:
- name of the main command without a slash
-
getName
-
getConfig
Description copied from interface:IModule
Get the configuration section of this module -
load
public boolean load()Description copied from interface:IModule
Load the module -
unload
public boolean unload()Description copied from interface:IModule
Unload the module -
kick
public String kick(net.md_5.bungee.api.connection.ProxiedPlayer player, String staff, String reason) Kicks the givenProxiedPlayer
and sends to the default server.- Parameters:
player
- Player to kick.reason
- Reason for kicking.
-
kickSQL
-
gKick
public String gKick(net.md_5.bungee.api.connection.ProxiedPlayer player, String staff, String reason) Kicks the givenProxiedPlayer
from the network.- Parameters:
player
- Player to kick.reason
- Reason for kicking.
-
gKickSQL
-
getKickData
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
-