mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Tweaking Repair Comments + Anvils now use Name ID
This commit is contained in:
parent
6e83763f22
commit
07ebf12ae2
@ -12,8 +12,8 @@ public class ConfigRepairGeneral {
|
|||||||
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
|
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
|
||||||
|
|
||||||
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
|
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
|
||||||
"Default value: "+"IRON_BLOCK")
|
"Default value: "+"minecraft:iron_block")
|
||||||
private Material repairAnvilMaterial = Material.IRON_BLOCK;
|
private String repairAnvilMaterial = Material.IRON_BLOCK.getKey().toString();
|
||||||
|
|
||||||
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
|
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
|
||||||
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
|
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
|
||||||
@ -33,7 +33,7 @@ public class ConfigRepairGeneral {
|
|||||||
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
|
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
|
||||||
|
|
||||||
public Material getRepairAnvilMaterial() {
|
public Material getRepairAnvilMaterial() {
|
||||||
return repairAnvilMaterial;
|
return Material.matchMaterial(repairAnvilMaterial);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAnvilUseSounds() {
|
public boolean isAnvilUseSounds() {
|
||||||
|
@ -11,8 +11,8 @@ public class ConfigSalvageGeneral {
|
|||||||
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
|
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
|
||||||
|
|
||||||
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
|
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
|
||||||
"Default value: "+"IRON_BLOCK")
|
"Default value: "+"gold_block")
|
||||||
private Material salvageAnvilMaterial = Material.GOLD_BLOCK;
|
private String salvageAnvilMaterial = Material.GOLD_BLOCK.getKey().toString();
|
||||||
|
|
||||||
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
|
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
|
||||||
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
|
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
|
||||||
@ -32,7 +32,7 @@ public class ConfigSalvageGeneral {
|
|||||||
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
|
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
|
||||||
|
|
||||||
public Material getSalvageAnvilMaterial() {
|
public Material getSalvageAnvilMaterial() {
|
||||||
return salvageAnvilMaterial;
|
return Material.matchMaterial(salvageAnvilMaterial);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAnvilUseSounds() {
|
public boolean isAnvilUseSounds() {
|
||||||
|
Loading…
Reference in New Issue
Block a user