Skip to content

Commit

Permalink
Fixed MythicDrops config setting causing ClassNotFound exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Codisimus committed Apr 8, 2016
1 parent 5cad9a4 commit a73f1a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/com/codisimus/plugins/phatloots/PhatLootsConfig.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.codisimus.plugins.phatloots;

import com.codisimus.plugins.phatloots.commands.LootCommand;
import com.codisimus.plugins.phatloots.gui.InventoryListener;
import com.codisimus.plugins.phatloots.listeners.MobListener;
import com.codisimus.plugins.phatloots.listeners.PhatLootsListener;
import com.codisimus.plugins.phatloots.loot.Item;
Expand Down Expand Up @@ -54,6 +55,8 @@ public class PhatLootsConfig {
public static String lootMessage;
public static String lootBroadcast;

public static String tierPrefix;

public static void load() {
FileConfiguration config = PhatLoots.plugin.getConfig();

Expand Down Expand Up @@ -125,7 +128,7 @@ public static void load() {

PhatLootChest.chestName = getString(config, "ChestName");

UnidentifiedItem.tierPrefix = getString(config, "MythicDropsTierColor");
tierPrefix = getString(config, "MythicDropsTierColor");


/* TAGS */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.codisimus.plugins.phatloots.PhatLoot;
import com.codisimus.plugins.phatloots.PhatLoots;
import com.codisimus.plugins.phatloots.PhatLootsConfig;
import com.codisimus.plugins.phatloots.PhatLootsUtil;
import com.codisimus.plugins.phatloots.gui.Tool;
import java.util.*;
Expand All @@ -26,7 +27,6 @@
public class UnidentifiedItem extends Loot {
private static final String RANDOM_TIER = "RANDOM";
private static ArrayList<String> tierList = null;
public static String tierPrefix;
public String tierName;
public int amountLower = 1;
public int amountUpper = 1;
Expand Down Expand Up @@ -131,7 +131,7 @@ public void getLoot(LootBundle lootBundle, double lootingBonus) {
List<String> lore = meta.hasLore()
? meta.getLore()
: new ArrayList<String>();
lore.add(tierPrefix + tierName);
lore.add(PhatLootsConfig.tierPrefix + tierName);
meta.setLore(lore);
mis.setItemMeta(meta);

Expand Down

0 comments on commit a73f1a1

Please sign in to comment.