mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-14 10:09:23 +02:00
No longer use/save party name in database and users flat file
This commit is contained in:
@@ -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,"
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user