Конфигурация:
YAML:
settings {
cacheTime = 1m # Cache time for player data, parsable string
database {
username = "root"
password = ""
hostname = "127.0.0.1"
database = "mydb"
port = 3306
}
groups = [ # All groups must be present, top to bottom sorted by priority, else they won't be changed once awarded
"default",
"vip",
"premium",
"admin"
]
cases = [ # List of cases
{ #One case
id = "test"
displayName = "§aCase" # Sorry, this config doesn't support ampersant colours :(
animation { # Everything self explanatory
rotateSound = UI_BUTTON_CLICK
endSound = ENTITY_ITEM_PICKUP
radius = 1.5
frostLord = true # cool snow animation
rotateTime = 3
itemSpeed = 11.5
particleSpeed = 8
itemsOnRound = 8
}
rotationDirection = X # Either X or Z (depends where you want it to rotate)
caseItems = [
{
name = "Vip"
group = "vip" # you can leave it as NULL, if you don't use it for vault groups
chance = 75.0 # percentage
item {
name = "§aVIP"
type = SKULL_ITEM # Why not? :D
data = 3
skull = "SKULL HASH HERE"
lore = []
}
commands = [
"say {player} is a fat dick",
"lp user {player} parent set vip"
]
},
{
name = "Premium"
group = "premium"
chance = 25.0
item {
name = "§aPremium"
type = STONE
lore = []
}
commands = [
"say {player} is a....",
"lp user {player} parent set premium"
]
}
]
chestLocation = {
world = "world"
x = 0
y = 0
z = 0
yaw = 0
pitch = 0
}
groupCase = true # set it to false if you don't have ranks in the case!!!
menu {
inventory {
title = "Case menu"
rows = 5
}
matrix = [ # use 'x' for case opening item
"ooooooooo",
"o_______o",
"o___x___o",
"o_______o",
"okkkkkkko"
]
items {
"o" {
name = "§r"
type = STAINED_GLASS_PANE
data = 3
}
"x" {
name = "§aCase"
type = STONE
lore = [
"Keys remaining: {keys}",
"Click to open"
]
}
"k" {
name = "Last win"
type = SKULL_ITEM
data = 3
skull = "SKULL HASH HERE"
lore = [
"Winner - {winner}",
"Prize - {prize}"
]
}
}
}
},
# SECOND CASE
{ #One case
id = "test"
displayName = "§aCase" # Sorry, this config doesn't support ampersant colours :(
animation { # Everything self explanatory
rotateSound = UI_BUTTON_CLICK
endSound = ENTITY_ITEM_PICKUP
radius = 1.5
frostLord = true # cool snow animation
rotateTime = 3
itemSpeed = 11.5
particleSpeed = 8
itemsOnRound = 8
}
rotationDirection = X # Either X or Z (depends where you want it to rotate)
caseItems = [
{
name = "Vip"
group = "vip" # you can leave it as NULL, if you don't use it for vault groups
chance = 75.0 # percentage
item {
name = "§aVIP"
type = SKULL_ITEM # Why not? :D
data = 3
skull = "SKULL HASH HERE"
lore = []
}
commands = [
"say {player} is a fat dick",
"lp user {player} parent set vip"
]
},
{
name = "Premium"
group = "premium"
chance = 25.0
item {
name = "§aPremium"
type = STONE
lore = []
}
commands = [
"say {player} is a....",
"lp user {player} parent set premium"
]
}
]
chestLocation = {
world = "world"
x = 0
y = 0
z = 0
yaw = 0
pitch = 0
}
groupCase = true # set it to false if you don't have ranks in the case!!!
menu {
inventory {
title = "Case menu"
rows = 5
}
matrix = [ # use 'x' for case opening item
"ooooooooo",
"o_______o",
"o___x___o",
"o_______o",
"okkkkkkko"
]
items {
"o" {
name = "§r"
type = STAINED_GLASS_PANE
data = 3
}
"x" {
name = "§aCase"
type = STONE
lore = [
"Keys remaining: {keys}",
"Click to open"
]
}
"k" {
name = "Last win"
type = SKULL_ITEM
data = 3
skull = "SKULL HASH HERE"
lore = [
"Winner - {winner}",
"Prize - {prize}"
]
}
}
}
}
]
}