diff --git a/src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java b/src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java index 0b3bb53a..b8d0970f 100644 --- a/src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java +++ b/src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java @@ -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(); diff --git a/src/main/java/fr/xephi/authme/util/TeleportUtils.java b/src/main/java/fr/xephi/authme/util/TeleportUtils.java index 608db4f6..a6594447 100644 --- a/src/main/java/fr/xephi/authme/util/TeleportUtils.java +++ b/src/main/java/fr/xephi/authme/util/TeleportUtils.java @@ -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 */