mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Check for changeme
This commit is contained in:
parent
772ceddf65
commit
63a0598766
@ -16,6 +16,9 @@ import java.util.List;
|
|||||||
* Handles creating treasures for various skill loot tables
|
* Handles creating treasures for various skill loot tables
|
||||||
*/
|
*/
|
||||||
public class TreasureFactory {
|
public class TreasureFactory {
|
||||||
|
|
||||||
|
public static final String CHANGE_ME = "ChangeMe";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make a new ExcavationTreasure
|
* Make a new ExcavationTreasure
|
||||||
* @param material
|
* @param material
|
||||||
@ -46,7 +49,7 @@ public class TreasureFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ADD CUSTOM LORE */
|
/* ADD CUSTOM LORE */
|
||||||
if(customLore != null)
|
if(customLore != null && !customLore.getString().equalsIgnoreCase(CHANGE_ME))
|
||||||
{
|
{
|
||||||
ItemMeta itemMeta = treasure.getItemMeta();
|
ItemMeta itemMeta = treasure.getItemMeta();
|
||||||
List<String> lore = new ArrayList<String>();
|
List<String> lore = new ArrayList<String>();
|
||||||
|
Loading…
Reference in New Issue
Block a user