NightVisionBauGuiItem
Dieser Commit ist enthalten in:
Ursprung
f1bf08abea
Commit
09f501e03d
@ -871,6 +871,8 @@ STRUCTURE-VOID_COMMAND_HELP=§8/§estructureVoid §8-§7 Erhalte ein StructureVo
|
||||
NIGHT-VISION_COMMAND_HELP=§8/§enightvision §8-§7 Schalte Nightvision an oder aus.
|
||||
NIGHT-VISION_OFF=§eNightvision deaktiviert
|
||||
NIGHT-VISION_ON=§eNightvision aktiviert
|
||||
NIGHT_VISION_ITEM_ON:&Nightvision: &eAktiviert
|
||||
NIGHT_VISION_ITEM_OFF:&Nightvision: &eDeaktiviert
|
||||
#Navigation Wand
|
||||
NAVIGATION_WAND=&eNavigation Wand
|
||||
NAVIGATION_WAND_LEFT_CLICK="&eLeft click: jump to location"
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
package de.steamwar.bausystem.features.util.items;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.Permission;
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.linkage.specific.BauGuiItem;
|
||||
@ -46,12 +47,12 @@ public class NightVisionBauGuiItem extends BauGuiItem {
|
||||
ItemStack itemStack = new ItemStack(Material.POTION);
|
||||
PotionMeta meta = (PotionMeta) itemStack.getItemMeta();
|
||||
meta.setColor(PotionEffectType.NIGHT_VISION.getColor());
|
||||
meta.setDisplayName(ColorConfig.BASE + "Nightvision: " + ColorConfig.HIGHLIGHT + "Aktiviert");
|
||||
meta.setDisplayName(BauSystem.MESSAGE.parse("NIGHT_VISION_ITEM_ON", player));
|
||||
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
|
||||
itemStack.setItemMeta(meta);
|
||||
return itemStack;
|
||||
} else {
|
||||
return new SWItem(Material.GLASS_BOTTLE, ColorConfig.BASE + "Nightvision: " + ColorConfig.HIGHLIGHT + "Deaktiviert").getItemStack();
|
||||
return new SWItem(Material.GLASS_BOTTLE, BauSystem.MESSAGE.parse("NIGHT_VISION_ITEM_OFF", player)).getItemStack();
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren