Prepare the project for javadocs
This commit is contained in:
@@ -6,6 +6,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.command.help.HelpProvider;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class HelpCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -15,8 +17,8 @@ public class HelpCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Check whether quick help should be shown
|
||||
|
||||
@@ -12,6 +12,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class AccountsCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -21,8 +23,8 @@ public class AccountsCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -7,6 +7,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class AuthMeCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -16,8 +18,8 @@ public class AuthMeCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Show some version info
|
||||
|
||||
@@ -15,6 +15,8 @@ import fr.xephi.authme.security.PasswordSecurity;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ChangePasswordCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -24,8 +26,8 @@ public class ChangePasswordCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Spawn;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class FirstSpawnCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class FirstSpawnCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Make sure the command executor is a player
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ForceLoginCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class ForceLoginCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class GetEmailCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class GetEmailCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class GetIpCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class GetIpCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -10,6 +10,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LastLoginCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,8 @@ public class LastLoginCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
+4
-2
@@ -11,6 +11,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class PurgeBannedPlayersCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -20,8 +22,8 @@ public class PurgeBannedPlayersCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -11,6 +11,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class PurgeCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -20,8 +22,8 @@ public class PurgeCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
+4
-2
@@ -10,6 +10,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class PurgeLastPositionCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,8 @@ public class PurgeLastPositionCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -14,6 +14,8 @@ import fr.xephi.authme.security.PasswordSecurity;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class RegisterCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -23,8 +25,8 @@ public class RegisterCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -11,6 +11,8 @@ import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
import fr.xephi.authme.util.Profiler;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ReloadCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -20,8 +22,8 @@ public class ReloadCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Profile the reload process
|
||||
|
||||
@@ -10,6 +10,8 @@ import fr.xephi.authme.cache.auth.PlayerAuth;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ResetNameCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,8 @@ public class ResetNameCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -10,6 +10,8 @@ import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SetEmailCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,8 @@ public class SetEmailCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Spawn;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SetFirstSpawnCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class SetFirstSpawnCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
try {
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Spawn;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SetSpawnCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class SetSpawnCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Make sure the command executor is a player
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Spawn;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SpawnCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class SpawnCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Make sure the command executor is a player
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.command.help.HelpProvider;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class SwitchAntiBotCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -17,8 +19,8 @@ public class SwitchAntiBotCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -20,6 +20,8 @@ import fr.xephi.authme.task.MessageTask;
|
||||
import fr.xephi.authme.task.TimeoutTask;
|
||||
import fr.xephi.authme.util.Utils;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class UnregisterCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -28,8 +30,8 @@ public class UnregisterCommand extends ExecutableCommand {
|
||||
* @param sender The command sender.
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(final CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -9,6 +9,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class VersionCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -18,8 +20,8 @@ public class VersionCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// Show some version info
|
||||
@@ -71,8 +73,8 @@ public class VersionCommand extends ExecutableCommand {
|
||||
*
|
||||
* @param minecraftName The Minecraft player name.
|
||||
*
|
||||
* @return True if the player is online, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the player is online, false otherwise. */
|
||||
private boolean isPlayerOnline(String minecraftName) {
|
||||
for(Player player : Bukkit.getOnlinePlayers())
|
||||
if(player.getName().equalsIgnoreCase(minecraftName))
|
||||
|
||||
@@ -11,6 +11,8 @@ import fr.xephi.authme.security.RandomString;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class CaptchaCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -20,8 +22,8 @@ public class CaptchaCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
+4
-2
@@ -11,6 +11,8 @@ import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
import fr.xephi.authme.task.ChangePasswordTask;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ChangePasswordCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -20,8 +22,8 @@ public class ChangePasswordCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -17,6 +17,8 @@ import fr.xephi.authme.converter.vAuthConverter;
|
||||
import fr.xephi.authme.converter.xAuthConverter;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ConverterCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -26,8 +28,8 @@ public class ConverterCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
@@ -85,6 +87,8 @@ public class ConverterCommand extends ExecutableCommand {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public enum ConvertType {
|
||||
ftsql("flattosql"),
|
||||
ftsqlite("flattosqlite"),
|
||||
@@ -97,14 +101,27 @@ public class ConverterCommand extends ExecutableCommand {
|
||||
|
||||
String name;
|
||||
|
||||
/**
|
||||
* Constructor for ConvertType.
|
||||
* @param name String
|
||||
*/
|
||||
ConvertType(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method getName.
|
||||
* @return String
|
||||
*/
|
||||
String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method fromName.
|
||||
* @param name String
|
||||
* @return ConvertType
|
||||
*/
|
||||
public static ConvertType fromName(String name) {
|
||||
for (ConvertType type : ConvertType.values()) {
|
||||
if (type.getName().equalsIgnoreCase(name))
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class AddEmailCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -16,8 +18,8 @@ public class AddEmailCommand extends ExecutableCommand {
|
||||
* @param sender The command sender.
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -8,6 +8,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ChangeEmailCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -16,8 +18,8 @@ public class ChangeEmailCommand extends ExecutableCommand {
|
||||
* @param sender The command sender.
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -16,6 +16,8 @@ import fr.xephi.authme.security.RandomString;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class RecoverEmailCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -25,8 +27,8 @@ public class RecoverEmailCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -7,6 +7,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LoginCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -16,8 +18,8 @@ public class LoginCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -7,6 +7,8 @@ import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LogoutCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -16,8 +18,8 @@ public class LogoutCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -10,6 +10,8 @@ import fr.xephi.authme.security.RandomString;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class RegisterCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -19,8 +21,8 @@ public class RegisterCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
@@ -9,6 +9,8 @@ import fr.xephi.authme.command.CommandParts;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.settings.Messages;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class UnregisterCommand extends ExecutableCommand {
|
||||
|
||||
/**
|
||||
@@ -18,8 +20,8 @@ public class UnregisterCommand extends ExecutableCommand {
|
||||
* @param commandReference The command reference.
|
||||
* @param commandArguments The command arguments.
|
||||
*
|
||||
* @return True if the command was executed successfully, false otherwise.
|
||||
*/
|
||||
|
||||
* @return True if the command was executed successfully, false otherwise. */
|
||||
@Override
|
||||
public boolean executeCommand(CommandSender sender, CommandParts commandReference, CommandParts commandArguments) {
|
||||
// AuthMe plugin instance
|
||||
|
||||
Reference in New Issue
Block a user