Format Code, Fixed 2 NPE's
This commit is contained in:
@@ -42,11 +42,11 @@ public class ShopConfig {
|
||||
getShop().set("items.1.slot", 1);
|
||||
getShop().set("items.1.block", "STONE");
|
||||
getShop().set("items.1.name", "&aTest Shop");
|
||||
ArrayList lore = new ArrayList();
|
||||
ArrayList lore = new ArrayList<>();
|
||||
lore.add("&cFully Customizable Lore!");
|
||||
lore.add("&b&l{cost} &7Points");
|
||||
getShop().set("items.1.lore", lore);
|
||||
ArrayList t = new ArrayList();
|
||||
ArrayList t = new ArrayList<>();
|
||||
t.add("broadcast %player% bought Test Shop!");
|
||||
getShop().set("items.1.cmds", t);
|
||||
getShop().set("items.1.cost", 5);
|
||||
|
||||
@@ -30,13 +30,11 @@ public class ShopGUIFrame {
|
||||
*/
|
||||
|
||||
private Gui gui;
|
||||
private String s;
|
||||
|
||||
public ShopGUIFrame(Faction f) {
|
||||
gui = new Gui(FactionsPlugin.getInstance(),
|
||||
FactionsPlugin.getInstance().getConfig().getInt("F-Shop.GUI.Rows", 4),
|
||||
FactionsPlugin.getInstance().color(FactionsPlugin.getInstance().getConfig().getString("F-Shop.GUI.Name")));
|
||||
this.s = s;
|
||||
}
|
||||
|
||||
public void buildGUI(FPlayer fplayer) {
|
||||
|
||||
Reference in New Issue
Block a user