This constant should not be there.

This commit is contained in:
MobiusDev
2016-12-30 07:22:38 +00:00
parent d280acd20b
commit 354f989d0f

View File

@@ -32,10 +32,10 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
*/ */
public class PremiumManager public class PremiumManager
{ {
private long endDate = 0;
public long getPremiumEndDate(String accountName) public long getPremiumEndDate(String accountName)
{ {
long endDate = 0;
try (Connection con = DatabaseFactory.getInstance().getConnection()) try (Connection con = DatabaseFactory.getInstance().getConnection())
{ {
final PreparedStatement statement = con.prepareStatement("SELECT premium_service,enddate FROM account_premium WHERE account_name=?"); final PreparedStatement statement = con.prepareStatement("SELECT premium_service,enddate FROM account_premium WHERE account_name=?");