Tweak preferences
This commit is contained in:
parent
f518185518
commit
77e0090531
@ -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),
|
||||
;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user