Fixed Shop Items Sowwy :)
This commit is contained in:
parent
8ec16505c4
commit
3ce77fe7e1
@ -34,6 +34,7 @@ public class ShopConfig {
|
|||||||
if (!shop.exists()) {
|
if (!shop.exists()) {
|
||||||
try {
|
try {
|
||||||
shop.createNewFile();
|
shop.createNewFile();
|
||||||
|
|
||||||
getShop().set("prefix", "&4&lFactionShop&8» &7Purchased &f%item% &7for &b%points% Points&7!");
|
getShop().set("prefix", "&4&lFactionShop&8» &7Purchased &f%item% &7for &b%points% Points&7!");
|
||||||
getShop().set("items.1.slot", 1);
|
getShop().set("items.1.slot", 1);
|
||||||
getShop().set("items.1.block", "STONE");
|
getShop().set("items.1.block", "STONE");
|
||||||
@ -51,6 +52,8 @@ public class ShopConfig {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
s.options().copyDefaults(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
28
src/main/resources/shop.yml
Normal file
28
src/main/resources/shop.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
##### #####
|
||||||
|
##### SaberFactions Shop Configuration File #####
|
||||||
|
##### #####
|
||||||
|
##### #####
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
#<-------------------------------------->NOTES<-------------------------------------->#
|
||||||
|
#All Color Codes Can Be Used!
|
||||||
|
#Refer to: https://wiki.ess3.net/mc/
|
||||||
|
#Enable and Disable Any Feature by Simply Switching Variable to true or false!
|
||||||
|
#<-------------------------------------->NOTES<-------------------------------------->#
|
||||||
|
prefix: '&4&lFactionShop&8» &7Purchased &f%item% &7for &b%points% Points&7!'
|
||||||
|
items:
|
||||||
|
'1':
|
||||||
|
slot: 1
|
||||||
|
block: STONE
|
||||||
|
name: '&aTest Shop'
|
||||||
|
lore: #{cost} is the placeholder for the cost of the item.
|
||||||
|
- '&cFully Customizable Lore!'
|
||||||
|
- '&b{cost} &7Points'
|
||||||
|
cmds:
|
||||||
|
- broadcast %player% bought Test Shop!
|
||||||
|
cost: 5
|
||||||
|
glowing: true
|
Loading…
Reference in New Issue
Block a user