Wiggle left, wiggle right, hope this works.

This commit is contained in:
Jonathan Williams 2014-11-25 21:17:30 -08:00
parent d9c06e0fd3
commit 909877c869
3 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,8 @@ package mineplex.core.benefit;
import java.util.HashSet; import java.util.HashSet;
public class PlayerBenefit public class BenefitData
{ {
public HashSet<String> Benefits = new HashSet<String>(); public HashSet<String> Benefits = new HashSet<String>();
public boolean Loaded = false;
} }

View File

@ -17,7 +17,7 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
public class BenefitManager extends MiniDbClientPlugin<PlayerBenefit> public class BenefitManager extends MiniDbClientPlugin<BenefitData>
{ {
private BenefitManagerRepository _repository; private BenefitManagerRepository _repository;
@ -65,9 +65,9 @@ public class BenefitManager extends MiniDbClientPlugin<PlayerBenefit>
} }
@Override @Override
protected PlayerBenefit AddPlayer(String player) protected BenefitData AddPlayer(String player)
{ {
return new PlayerBenefit(); return new BenefitData();
} }
@Override @Override

View File

@ -35,9 +35,9 @@ public class BenefitManagerRepository extends RepositoryBase
return executeUpdate(INSERT_BENEFIT, new ColumnVarChar("uuid", 100, uuid), new ColumnVarChar("benefit", 100, benefit)) > 0; return executeUpdate(INSERT_BENEFIT, new ColumnVarChar("uuid", 100, uuid), new ColumnVarChar("benefit", 100, benefit)) > 0;
} }
public PlayerBenefit retrievePlayerBenefitData(ResultSet resultSet) throws SQLException public BenefitData retrievePlayerBenefitData(ResultSet resultSet) throws SQLException
{ {
PlayerBenefit playerBenefit = new PlayerBenefit(); BenefitData playerBenefit = new BenefitData();
while (resultSet.next()) while (resultSet.next())
{ {