No longer use/save party name in database and users flat file

This commit is contained in:
bm01
2012-06-09 19:48:18 +02:00
parent dfff0efc0b
commit 81eadc1418
4 changed files with 23 additions and 36 deletions

View File

@@ -69,7 +69,6 @@ public class Database {
write("CREATE TABLE IF NOT EXISTS `" + tablePrefix + "users` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT,"
+ "`user` varchar(40) NOT NULL,"
+ "`lastlogin` int(32) unsigned NOT NULL,"
+ "`party` varchar(100) NOT NULL DEFAULT '',"
+ "PRIMARY KEY (`id`),"
+ "UNIQUE KEY `user` (`user`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;");
write("CREATE TABLE IF NOT EXISTS `" + tablePrefix + "cooldowns` (`user_id` int(10) unsigned NOT NULL,"

View File

@@ -90,7 +90,7 @@ public class Users {
*/
public static void removeUser(String playerName) {
for (Iterator<PlayerProfile> it = profiles.iterator() ; it.hasNext() ; ) {
if (it.next().getPlayer().getName().equals(playerName)) {
if (it.next().getPlayerName().equals(playerName)) {
it.remove();
return;
}