mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 11:46:40 +00:00
Removes useless code
This commit is contained in:
@ -5,7 +5,6 @@ import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import me.totalfreedom.totalfreedommod.rank.Rank;
|
||||
import me.totalfreedom.totalfreedommod.util.DepreciationAggregator;
|
||||
import me.totalfreedom.totalfreedommod.util.FUtil;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.command.Command;
|
||||
@ -95,7 +94,7 @@ public class Command_whitelist extends FreedomCommand
|
||||
|
||||
if (player == null)
|
||||
{
|
||||
player = DepreciationAggregator.getOfflinePlayer(server, search_name);
|
||||
player = server.getOfflinePlayer(search_name);
|
||||
}
|
||||
|
||||
FUtil.adminAction(sender.getName(), "Adding " + player.getName() + " to the whitelist", false);
|
||||
@ -117,7 +116,7 @@ public class Command_whitelist extends FreedomCommand
|
||||
|
||||
if (player == null)
|
||||
{
|
||||
player = DepreciationAggregator.getOfflinePlayer(server, search_name);
|
||||
player = server.getOfflinePlayer(search_name);
|
||||
}
|
||||
|
||||
if (player.isWhitelisted())
|
||||
|
Reference in New Issue
Block a user