#306 Create PlayerCommand abstract type

- Create PlayerCommand to handle player-only command checks centrally and consistently
- Adjust tests
This commit is contained in:
ljacqu
2015-12-26 19:47:47 +01:00
parent 74ceb66430
commit 27fee3ca64
25 changed files with 250 additions and 393 deletions
@@ -15,8 +15,6 @@ import com.google.common.io.ByteStreams;
import java.security.NoSuchAlgorithmException;
/**
*/
public class ChangePasswordTask implements Runnable {
private final AuthMe plugin;
@@ -24,14 +22,6 @@ public class ChangePasswordTask implements Runnable {
private final String oldPassword;
private final String newPassword;
/**
* Constructor for ChangePasswordTask.
*
* @param plugin AuthMe
* @param player Player
* @param oldPassword String
* @param newPassword String
*/
public ChangePasswordTask(AuthMe plugin, Player player, String oldPassword, String newPassword) {
this.plugin = plugin;
this.player = player;