mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Removed unneeded method
This commit is contained in:
parent
c9082083d1
commit
393ac886e2
@ -102,7 +102,7 @@ public class McremoveCommand implements CommandExecutor {
|
|||||||
PlayerProfile playerProfile = Users.getProfile(player);
|
PlayerProfile playerProfile = Users.getProfile(player);
|
||||||
|
|
||||||
if (playerProfile != null) {
|
if (playerProfile != null) {
|
||||||
Users.removeUser(playerProfile);
|
Users.getProfiles().remove(playerProfile);
|
||||||
|
|
||||||
if (player.isOnline()) {
|
if (player.isOnline()) {
|
||||||
Users.addUser((Player) player);
|
Users.addUser((Player) player);
|
||||||
|
@ -97,15 +97,6 @@ public class Users {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove a user from the DB by its profile.
|
|
||||||
*
|
|
||||||
* @param playerProfile the profile of the player to remove
|
|
||||||
*/
|
|
||||||
public static void removeUser(PlayerProfile playerProfile) {
|
|
||||||
profiles.remove(playerProfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the profile of a player.
|
* Get the profile of a player.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user