From 69ea446eb9f9d22c90f4c5b129a68c19d0c5614c Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Fri, 25 Aug 2017 09:39:18 +0300 Subject: [PATCH] Deleted NewPlayerCreator --- .../plan/utilities/NewPlayerCreator.java | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 Plan/src/main/java/com/djrapitops/plan/utilities/NewPlayerCreator.java diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/NewPlayerCreator.java b/Plan/src/main/java/com/djrapitops/plan/utilities/NewPlayerCreator.java deleted file mode 100644 index e341cdc15..000000000 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/NewPlayerCreator.java +++ /dev/null @@ -1,53 +0,0 @@ -package main.java.com.djrapitops.plan.utilities; - -import com.djrapitops.plugin.utilities.player.Gamemode; -import com.djrapitops.plugin.utilities.player.IOfflinePlayer; -import com.djrapitops.plugin.utilities.player.IPlayer; -import main.java.com.djrapitops.plan.data.UserInfo; - -/** - * @author Rsl1122 - * @deprecated Will be removed once it's sure that it's unnecessary - */ -@Deprecated // TODO Remove once sure that this is unnecessary. -public class NewPlayerCreator { - - /** - * Constructor used to hide the public constructor - */ - private NewPlayerCreator() { - throw new IllegalStateException("Utility class"); - } - - /** - * Creates a new instance of UserInfo with default values. - * - * @param player Player the UserInfo is created for. - * @return a new UserInfo object - */ - public static UserInfo createNewPlayer(IPlayer player) { - return createNewPlayer(player, player.getGamemode()); - } - - /** - * Creates a new instance of UserInfo with default values. - * - * @param player OfflinePlayer the UserInfo is created for. - * @return a new UserInfo object - */ - public static UserInfo createNewOfflinePlayer(IOfflinePlayer player) { - return createNewPlayer(player, Gamemode.SURVIVAL); - } - - /** - * Creates a new instance of UserInfo with default values. - * - * @param player Player the UserInfo is created for. - * @param gm Gamemode set as the starting Gamemode - * @return a new UserInfo object - */ - public static UserInfo createNewPlayer(IOfflinePlayer player, Gamemode gm) { - return null; - } - -}