Stuff from the common floobits workspace
Author: AuthMe-Team <AuthMeTeam@123NoEmail.com>
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
package fr.xephi.authme.process;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
|
||||
import fr.xephi.authme.AuthMe;
|
||||
import fr.xephi.authme.process.email.AsyncChangeEmail;
|
||||
import fr.xephi.authme.process.join.AsyncronousJoin;
|
||||
@@ -13,20 +10,22 @@ import fr.xephi.authme.process.register.AsyncRegister;
|
||||
import fr.xephi.authme.process.unregister.AsyncronousUnregister;
|
||||
import fr.xephi.authme.security.RandomString;
|
||||
import fr.xephi.authme.settings.Settings;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
|
||||
/**
|
||||
|
||||
* @author Gabriele
|
||||
* @version $Revision: 1.0 $
|
||||
*/
|
||||
public class Management {
|
||||
|
||||
public static RandomString rdm = new RandomString(Settings.captchaLength);
|
||||
private final AuthMe plugin;
|
||||
private final BukkitScheduler sched;
|
||||
public static RandomString rdm = new RandomString(Settings.captchaLength);
|
||||
|
||||
/**
|
||||
* Constructor for Management.
|
||||
*
|
||||
* @param plugin AuthMe
|
||||
*/
|
||||
public Management(AuthMe plugin) {
|
||||
@@ -36,8 +35,9 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performLogin.
|
||||
* @param player Player
|
||||
* @param password String
|
||||
*
|
||||
* @param player Player
|
||||
* @param password String
|
||||
* @param forceLogin boolean
|
||||
*/
|
||||
public void performLogin(final Player player, final String password, final boolean forceLogin) {
|
||||
@@ -52,6 +52,7 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performLogout.
|
||||
*
|
||||
* @param player Player
|
||||
*/
|
||||
public void performLogout(final Player player) {
|
||||
@@ -66,9 +67,10 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performRegister.
|
||||
* @param player Player
|
||||
*
|
||||
* @param player Player
|
||||
* @param password String
|
||||
* @param email String
|
||||
* @param email String
|
||||
*/
|
||||
public void performRegister(final Player player, final String password, final String email) {
|
||||
sched.runTaskAsynchronously(plugin, new Runnable() {
|
||||
@@ -82,9 +84,10 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performUnregister.
|
||||
* @param player Player
|
||||
*
|
||||
* @param player Player
|
||||
* @param password String
|
||||
* @param force boolean
|
||||
* @param force boolean
|
||||
*/
|
||||
public void performUnregister(final Player player, final String password, final boolean force) {
|
||||
sched.runTaskAsynchronously(plugin, new Runnable() {
|
||||
@@ -98,6 +101,7 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performJoin.
|
||||
*
|
||||
* @param player Player
|
||||
*/
|
||||
public void performJoin(final Player player) {
|
||||
@@ -113,6 +117,7 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performQuit.
|
||||
*
|
||||
* @param player Player
|
||||
* @param isKick boolean
|
||||
*/
|
||||
@@ -129,8 +134,9 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performAddEmail.
|
||||
* @param player Player
|
||||
* @param newEmail String
|
||||
*
|
||||
* @param player Player
|
||||
* @param newEmail String
|
||||
* @param newEmailVerify String
|
||||
*/
|
||||
public void performAddEmail(final Player player, final String newEmail, final String newEmailVerify) {
|
||||
@@ -144,7 +150,8 @@ public class Management {
|
||||
|
||||
/**
|
||||
* Method performChangeEmail.
|
||||
* @param player Player
|
||||
*
|
||||
* @param player Player
|
||||
* @param oldEmail String
|
||||
* @param newEmail String
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user