Fix settings menu translations, remove unused imports (#34)
This commit is contained in:
parent
7e330b786f
commit
53fd64c0cf
|
@ -1,34 +1,15 @@
|
|||
package tc.oc.pgm.menu.gui;
|
||||
|
||||
import com.google.api.client.util.Lists;
|
||||
import me.anxuiz.settings.Setting;
|
||||
import me.anxuiz.settings.SettingManager;
|
||||
import me.anxuiz.settings.Toggleable;
|
||||
import me.anxuiz.settings.bukkit.PlayerSettings;
|
||||
import me.anxuiz.settings.bukkit.plugin.Permissions;
|
||||
import me.anxuiz.settings.types.BooleanType;
|
||||
import org.bukkit.Bukkit;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import net.md_5.bungee.api.chat.TranslatableComponent;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Player;
|
||||
import tc.oc.commons.bukkit.gui.buttons.Button;
|
||||
import tc.oc.commons.bukkit.gui.buttons.empty.EmptyButton;
|
||||
import tc.oc.commons.bukkit.gui.interfaces.SinglePageInterface;
|
||||
import tc.oc.commons.bukkit.tokens.TokenUtil;
|
||||
import tc.oc.commons.bukkit.util.Constants;
|
||||
import tc.oc.commons.bukkit.util.ItemCreator;
|
||||
|
||||
import tc.oc.pgm.PGM;
|
||||
import tc.oc.pgm.PGMTranslations;
|
||||
import tc.oc.pgm.mutation.Mutation;
|
||||
import tc.oc.pgm.mutation.MutationMatchModule;
|
||||
import tc.oc.pgm.mutation.command.MutationCommands;
|
||||
import tc.oc.pgm.picker.PickerSettings;
|
||||
import tc.oc.pgm.tokens.gui.MainTokenMenu;
|
||||
import tc.oc.pgm.tokens.gui.MutationConfirmInterface;
|
||||
import tc.oc.commons.core.chat.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -47,7 +28,7 @@ public class SettingsTypeInterface extends SinglePageInterface {
|
|||
List<Button> buttons = new ArrayList<>();
|
||||
buttons.add(new Button(
|
||||
new ItemCreator(Material.BOOK_AND_QUILL)
|
||||
.setName(Constants.PREFIX + new Component(new TranslatableComponent("setting.types.chat")).getText())
|
||||
.setName(Constants.PREFIX + PGMTranslations.get().t("setting.types.chat", player))
|
||||
, 11) {
|
||||
@Override
|
||||
public void function(Player player) {
|
||||
|
@ -56,7 +37,7 @@ public class SettingsTypeInterface extends SinglePageInterface {
|
|||
});
|
||||
buttons.add(new Button(
|
||||
new ItemCreator(Material.DIAMOND_SWORD)
|
||||
.setName(Constants.PREFIX + new Component(new TranslatableComponent("setting.types.gameplay")).getText())
|
||||
.setName(Constants.PREFIX + PGMTranslations.get().t("setting.types.gameplay", player))
|
||||
, 13) {
|
||||
@Override
|
||||
public void function(Player player) {
|
||||
|
@ -65,7 +46,7 @@ public class SettingsTypeInterface extends SinglePageInterface {
|
|||
});
|
||||
buttons.add(new Button(
|
||||
new ItemCreator(Material.SLIME_BALL)
|
||||
.setName(Constants.PREFIX + new Component(new TranslatableComponent("setting.types.misc")).getText())
|
||||
.setName(Constants.PREFIX + PGMTranslations.get().t("setting.types.misc", player))
|
||||
, 15) {
|
||||
@Override
|
||||
public void function(Player player) {
|
||||
|
|
Loading…
Reference in New Issue