mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-11-26 04:05:55 +01:00
Added translation for the panel messages
This commit is contained in:
parent
a9e417d667
commit
de6e2e1c6b
@ -12,7 +12,6 @@ import fr.minuskube.inv.content.Pagination;
|
|||||||
import fr.minuskube.inv.content.SlotIterator;
|
import fr.minuskube.inv.content.SlotIterator;
|
||||||
import me.lucko.helper.item.ItemStackBuilder;
|
import me.lucko.helper.item.ItemStackBuilder;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.SkullType;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.meta.SkullMeta;
|
import org.bukkit.inventory.meta.SkullMeta;
|
||||||
@ -27,7 +26,7 @@ public class GUIPanel implements InventoryProvider {
|
|||||||
.id("GUIPanel")
|
.id("GUIPanel")
|
||||||
.provider(new GUIPanel())
|
.provider(new GUIPanel())
|
||||||
.size(6, 9)
|
.size(6, 9)
|
||||||
.title("Active Genbuckets")
|
.title(ChatUtil.colorString(EpicBuckets.getInstance().getLocale().getMessage("interface.admin.panel.title")))
|
||||||
.manager(EpicBuckets.getInstance().getInventoryManager())
|
.manager(EpicBuckets.getInstance().getInventoryManager())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@ -40,8 +39,8 @@ public class GUIPanel implements InventoryProvider {
|
|||||||
ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
|
ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
|
||||||
SkullMeta meta = (SkullMeta) skull.getItemMeta();
|
SkullMeta meta = (SkullMeta) skull.getItemMeta();
|
||||||
meta.setOwner(genbucket.getOwner().getName());
|
meta.setOwner(genbucket.getOwner().getName());
|
||||||
meta.setDisplayName(ChatUtil.colorString("&a" + genbucket.getOwner().getName()));
|
meta.setDisplayName(ChatUtil.colorString(EpicBuckets.getInstance().getLocale().getMessage("interface.admin.panel.player").replace("%player%", genbucket.getOwner().getName())));
|
||||||
meta.setLore(ChatUtil.colorList(new ArrayList<>(Arrays.asList("&7Type: &f" + genbucket.getGenbucketType().name.toLowerCase(), "&7Location: &f" + ChatUtil.getCoordinatesFromLocation(genbucket.getClickedLocation()), "", "&f&oClick to teleport"))));
|
meta.setLore(ChatUtil.colorList(new ArrayList<>(Arrays.asList(EpicBuckets.getInstance().getLocale().getMessage("interface.admin.panel.type").replace("%genbucket%", genbucket.getGenbucketType().name.toLowerCase()), EpicBuckets.getInstance().getLocale().getMessage("interface.admin.panel.location").replace("%location%", ChatUtil.getCoordinatesFromLocation(genbucket.getClickedLocation())), "", EpicBuckets.getInstance().getLocale().getMessage("interface.admin.panel.teleport")))));
|
||||||
skull.setItemMeta(meta);
|
skull.setItemMeta(meta);
|
||||||
itemList.add(ClickableItem.of(skull, e -> player.teleport(genbucket.getPlayerLocation())));
|
itemList.add(ClickableItem.of(skull, e -> player.teleport(genbucket.getPlayerLocation())));
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,11 @@ command.admin.toggle = "&7Spy mode: %mode%"
|
|||||||
#Interface Messages
|
#Interface Messages
|
||||||
|
|
||||||
interface.withdrawl.success = "&e$%amount%&7 was taken from your &eaccount&7!"
|
interface.withdrawl.success = "&e$%amount%&7 was taken from your &eaccount&7!"
|
||||||
|
interface.admin.panel.title = "Active Genbuckets"
|
||||||
|
interface.admin.panel.player = "&a%player%"
|
||||||
|
interface.admin.panel.type = "&7Type: &f%genbucket%"
|
||||||
|
interface.admin.panel.location = "&7Location: &f%location%"
|
||||||
|
interface.admin.panel.teleport = "&f&oClick to teleport"
|
||||||
|
|
||||||
#Event Messages
|
#Event Messages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user