Tweak preferences

This commit is contained in:
TadahTech 2016-08-25 00:17:31 -05:00
parent f518185518
commit 77e0090531
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ public enum PreferenceCategory
USER("User", Material.PAPER),
EXCLUSIVE("Exclusive", Material.DIAMOND),
GAME_PLAY("Game Mechanic", Material.REDSTONE_COMPARATOR),
//GAME_PLAY("Game Mechanic", Material.REDSTONE_COMPARATOR),
MISC("Miscellaneous", Material.COMPASS),
FRIEND("Friend", Material.CHEST),
;

View File

@ -119,7 +119,6 @@ public class PreferencesManager extends MiniPlugin implements ILoginProcessor
if(preferences == null)
{
preferences = new UserPreferences(_clientManager.getAccountId(player));
_repository.loadClientInformation(_clientManager.getAccountId(player));
}
return preferences;
}

View File

@ -1,5 +1,6 @@
package mineplex.core.preferences.ui.menus;
import com.google.common.collect.Lists;
import mineplex.core.common.Rank;
import mineplex.core.common.util.UtilUI;
import mineplex.core.menu.Button;
@ -37,7 +38,7 @@ public class PreferenceMenu extends Menu<PreferencesManager>
{
Button[] buttons = new Button[INV_SIZE];
List<Preference> preferences = Preference.getByCategory(_category);
List<Preference> preferences = Lists.newArrayList(Preference.getByCategory(_category));
Rank rank = getPlugin().getClientManager().Get(player).GetRank();
UserPreferences user = getPlugin().get(player);