Add javadoc for 3rd party features
This commit is contained in:
parent
7bbdce13ea
commit
7fa7d17ba6
@ -44,6 +44,9 @@ import static fr.xephi.authme.util.PlayerUtils.isNpc;
|
||||
import static org.bukkit.Bukkit.getLogger;
|
||||
import static org.bukkit.Bukkit.getServer;
|
||||
|
||||
/**
|
||||
* This class handles ALL the GUI captcha features in the plugin.
|
||||
*/
|
||||
public class GuiCaptchaHandler implements Listener {
|
||||
//define AuthMeApi
|
||||
private final AuthMeApi authmeApi = AuthMeApi.getInstance();
|
||||
@ -266,6 +269,7 @@ public class GuiCaptchaHandler implements Listener {
|
||||
playerDataFile.delete();
|
||||
}
|
||||
}
|
||||
|
||||
private void deletePlayerStats(UUID playerUUID) {
|
||||
// 获取服务器的存储文件夹路径
|
||||
File serverFolder = Bukkit.getServer().getWorldContainer();
|
||||
|
||||
@ -5,6 +5,10 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
* This class is a utility class for handling async teleportation of players in game.
|
||||
*/
|
||||
public class TeleportUtils {
|
||||
private static Method teleportAsyncMethod;
|
||||
|
||||
@ -21,6 +25,8 @@ public class TeleportUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Teleport a player to a specified location.
|
||||
*
|
||||
* @param player The player to be teleported
|
||||
* @param location Where should the player be teleported
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user