Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on a entity:
- if name of entity is "&a&lJACK&f&lPOT":
- execute player command "/Jackpot"
- options:
- LJK: &8&l| &a&lJACK&f&lPOT&8&l |
- on load:
- if folder "plugins/Jackpot" doesn't exists:
- create folder "plugins/Jackpot"
- if folder "plugins/Jackpot/Userdata" doesn't exists:
- create folder "plugins/Jackpot/Userdata"
- on join:
- if file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml}" doesn't exists:
- create file "/plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- wait 3 ticks
- wf "Spillernavn: %player%" to "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- wf "Brugt: 0" to "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- wf "Vundet: 0" to "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- command /jackpot [<text>] [<text>]:
- aliases: /jp
- trigger:
- if arg-1 isn't set:
- wait 3 tick
- open chest with 6 rows named "&6&lJackpot Menu" to player
- wait 1 tick
- #==========
- #Information
- #==========
- format slot 0 of player with Nether star named "&6&lInformation" with lore "&eJoin en af følgende jackpots||&eog tilføj et bet. &eHåb for det bedste" to be unstealable
- format slot 8 of player with Nether star named "&6&lInformation" with lore "&eJoin en af følgende jackpots||&eog tilføj et bet. &eHåb for det bedste" to be unstealable
- format slot 45 of player with Nether star named "&6&lInformation" with lore "&eJoin en af følgende jackpots||&eog tilføj et bet. &eHåb for det bedste" to be unstealable
- format slot 53 of player with Nether star named "&6&lInformation" with lore "&eJoin en af følgende jackpots||&eog tilføj et bet. &eHåb for det bedste" to be unstealable
- #==========
- #Stor jackpot
- #==========
- format slot 4 of player with Blue glass pane named "" to be unstealable
- format slot 12 of player with Blue glass pane named "" to be unstealable
- format slot 13 of player with Diamond named "&9&lSTOR" with lore "&7Tryk her for at||&7komme til stor jackpot" to close then run [execute player command "/jackpot s"]
- format slot 14 of player with Blue glass pane named "" to be unstealable
- format slot 22 of player with Blue glass pane named "" to be unstealable
- #==========
- #Medium jackpot
- #==========
- format slot 16 of player with Yellow glass pane named "" to be unstealable
- format slot 24 of player with Yellow glass pane named "" to be unstealable
- format slot 25 of player with Gold ingot named "&e&lMEDIUM" with lore "&7Tryk her for at||&7komme til medium jackpot" to close then run [execute player command "/jackpot m"]
- format slot 26 of player with Yellow glass pane named "" to be unstealable
- format slot 34 of player with Yellow glass pane named "" to be unstealable
- #==========
- #Lille jackpot
- #==========
- format slot 10 of player with Gray glass pane named "" to be unstealable
- format slot 18 of player with Gray glass pane named "" to be unstealable
- format slot 19 of player with Iron ingot named "&8&lLILLE" with lore "&7Tryk her for at||&7komme til lille jackpot" to close then run [execute player command "/jackpot l"]
- format slot 20 of player with Gray glass pane named "" to be unstealable
- format slot 28 of player with Gray glass pane named "" to be unstealable
- #==========
- #Spiller jackpot stats
- #==========
- set {brugt::%uuid of player%} to yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- set {vundet::%uuid of player%} to yaml value "Vundet" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml"
- format slot 31 of player with Orange glass pane named "" to be unstealable
- format slot 39 of player with Orange glass pane named "" to be unstealable
- format slot 40 of player with Skull of player named "&e&l%player%" with lore "&6Penge: &e%player's balance%||&8&m---------------||&6Penge vundet: &e$%{vundet::%uuid of player%}%||&6Penge brugt: &e$%{brugt::%uuid of player%}%||&8&m---------------" to be unstealable
- format slot 41 of player with Orange glass pane named "" to be unstealable
- format slot 49 of player with Orange glass pane named "" to be unstealable
- #==========
- #Jackpot - Lille
- #==========
- if arg-1 is "l":
- wait 3 ticks
- set {_slot} to 0
- set {_glas1} to 27
- set {_glas2} to 28
- open chest with 5 rows named "&8&lLille Jackpot" to player
- wait 1 tick
- loop 4 times:
- wait 1 tick
- format slot {_glas1} of player with Orange glass pane named "" to be unstealable
- format slot {_glas2} of player with Yellow glass pane named "" to be unstealable
- add 2 to {_glas1}
- add 2 to {_glas2}
- format slot 35 of player with Orange glass pane named "" to be unstealable
- format slot 36 of player with Nether star named "&6&lInformation" with lore "&eLille Jackpot||&e&lHeld og lykke" to be unstealable
- if {lillejackpot.min} is greater or equal to 2:
- format slot 40 of player with 175:0 named "&6&lTid tilbage" with lore "&6Vinderen bliver fundet om:||&e%{lille.jackpot.min}% min &6& &e%{lille.jackpot.sek}% sek.||&6Vinder for: &e$%{lillebet}%" to close then run [execute player command "/jp l"]
- else:
- format slot 40 of player with 175:0 named "&6&lVenter på spillere" with lore "&eDer mangler spillere||&eDer skal være min 2 spillere" to close
- format slot 44 of player with Nether star named "&6&lInformation" with lore "&eLille Jackpot||&e&lHeld og lykke" to be unstealable
- format slot 38 of player with Iron ingot named "&6&lBet: 50" with lore "&eTryk her for at bet: $50" to close then run [execute player command "/lillebet 50"]
- format slot 39 of player with Gold ingot named "&6&lBet: 100" with lore "&eTryk her for at bet: $100" to close then run [execute player command "/lillebet 100"]
- format slot 41 of player with Diamond named "&6&lBet: 150" with lore "&eTryk her for at bet: $150" to close then run [execute player command "/lillebet 150"]
- format slot 42 of player with Emerald named "&6&lBet: 200" with lore "&eTryk her for at bet: $200" to close then run [execute player command "/lillebet 200"]
- loop {lillejackpot::*}:
- wait 1 tick
- format slot {_slot} of player with Skull of loop-value named "&6&l%loop-value%" with lore "&6Bet: &e$%{lille.bet.%loop-value%}%" to be unstealable
- add 1 to {_slot}
- #==========
- #Jackpot - Medium
- #==========
- if arg-1 is "m":
- wait 3 ticks
- set {_slot} to 0
- set {_glas1} to 27
- set {_glas2} to 28
- open chest with 5 rows named "&e&lMedium Jackpot" to player
- wait 1 tick
- loop 4 times:
- wait 1 tick
- format slot {_glas1} of player with Orange glass pane named "" to be unstealable
- format slot {_glas2} of player with Yellow glass pane named "" to be unstealable
- add 2 to {_glas1}
- add 2 to {_glas2}
- format slot 35 of player with Orange glass pane named "" to be unstealable
- format slot 36 of player with Nether star named "&6&lInformation" with lore "&eMedium Jackpot||&e&lHeld og lykke" to be unstealable
- if {mediumjackpot.min} is greater or equal to 2:
- format slot 40 of player with 175:0 named "&6&lTid tilbage" with lore "&6Vinderen bliver fundet om:||&e%{medium.jackpot.min}% min &6& &e%{medium.jackpot.sek}% sek.||&6Vinder for: &e$%{mediumbet}%" to close then run [execute player command "/jp m"]
- else:
- format slot 40 of player with 175:0 named "&6&lVenter på spillere" with lore "&eDer mangler spillere||&eDer skal være min 2 spillere" to close
- format slot 44 of player with Nether star named "&6&lInformation" with lore "&eMedium Jackpot||&e&lHeld og lykke" to be unstealable
- format slot 38 of player with Iron ingot named "&6&lBet: 300" with lore "&eTryk her for at bet: $300" to close then run [execute player command "/mediumbet 300"]
- format slot 39 of player with Gold ingot named "&6&lBet: 500" with lore "&eTryk her for at bet: $500" to close then run [execute player command "/mediumbet 500"]
- format slot 41 of player with Diamond named "&6&lBet: 700" with lore "&eTryk her for at bet: $700" to close then run [execute player command "/mediumbet 700"]
- format slot 42 of player with Emerald named "&6&lBet: 900" with lore "&eTryk her for at bet: $900" to close then run [execute player command "/mediumbet 900"]
- loop {mediumjackpot::*}:
- wait 1 tick
- format slot {_slot} of player with Skull of loop-value named "&6&l%loop-value%" with lore "&6Bet: &e$%{medium.bet.%loop-value%}%" to be unstealable
- add 1 to {_slot}
- #==========
- #Jackpot - Stor
- #==========
- if arg-1 is "s":
- wait 3 ticks
- set {_slot} to 0
- set {_glas1} to 27
- set {_glas2} to 28
- open chest with 5 rows named "&9&lStor Jackpot" to player
- wait 1 tick
- loop 4 times:
- wait 1 tick
- format slot {_glas1} of player with Orange glass pane named "" to be unstealable
- format slot {_glas2} of player with Yellow glass pane named "" to be unstealable
- add 2 to {_glas1}
- add 2 to {_glas2}
- format slot 35 of player with Orange glass pane named "" to be unstealable
- format slot 36 of player with Nether star named "&6&lInformation" with lore "&9Stor Jackpot||&e&lHeld og lykke" to be unstealable
- if {storjackpot.min} is greater or equal to 2:
- format slot 40 of player with 175:0 named "&6&lTid tilbage" with lore "&6Vinderen bliver fundet om:||&e%{stor.jackpot.min}% min &6& &e%{stor.jackpot.sek}% sek.||&6Vinder for: &e$%{storbet}%" to close then run [execute player command "/jp s"]
- else:
- format slot 40 of player with 175:0 named "&6&lVenter på spillere" with lore "&eDer mangler spillere||&eDer skal være min 2 spillere" to close
- format slot 44 of player with Nether star named "&6&lInformation" with lore "&9Stor Jackpot||&e&lHeld og lykke" to be unstealable
- format slot 38 of player with Iron ingot named "&6&lBet: 1000" with lore "&eTryk her for at bet: $1000" to close then run [execute player command "/storbet 1000"]
- format slot 39 of player with Gold ingot named "&6&lBet: 1500" with lore "&eTryk her for at bet: $1500" to close then run [execute player command "/storbet 1500"]
- format slot 41 of player with Diamond named "&6&lBet: 2000" with lore "&eTryk her for at bet: $2000" to close then run [execute player command "/storbet 2000"]
- format slot 42 of player with Emerald named "&6&lBet: 2500" with lore "&eTryk her for at bet: $2500" to close then run [execute player command "/storbet 2500"]
- loop {storjackpot::*}:
- wait 1 tick
- format slot {_slot} of player with Skull of loop-value named "&6&l%loop-value%" with lore "&6Bet: &e$%{stor.bet.%loop-value%}%" to be unstealable
- add 1 to {_slot}
- #==========
- #Lille bet
- #==========
- command /lillebet [<text>]:
- trigger:
- if arg-1 is "50":
- if player's balance is greater or equal to 50:
- remove 50 from player's balance
- add 50 to {lillebet}
- add 50 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {lillejk.deltag.%player%} isn't set:
- add player to {lillejackpot::*}
- add 1 to {lillejackpot.min}
- set {lillejk.deltag.%player%} to true
- add 50 to {lille.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$50" to player
- make player execute command "/jp l"
- stop
- else:
- send "a"
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "100":
- if player's balance is greater or equal to 100:
- remove 100 from player's balance
- add 100 to {lillebet}
- add 100 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {lillejk.deltag.%player%} isn't set:
- add player to {lillejackpot::*}
- add 1 to {lillejackpot.min}
- set {lillejk.deltag.%player%} to true
- add 100 to {lille.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$100" to player
- make player execute command "/jp l"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "150":
- if player's balance is greater or equal to 150:
- remove 150 from player's balance
- add 150 to {lillebet}
- add 150 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {lillejk.deltag.%player%} isn't set:
- add player to {lillejackpot::*}
- add 1 to {lillejackpot.min}
- set {lillejk.deltag.%player%} to true
- add 150 to {lille.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$150" to player
- make player execute command "/jp l"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "200":
- if player's balance is greater or equal to 200:
- remove 200 from player's balance
- add 200 to {lillebet}
- add 200 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {lillejk.deltag.%player%} isn't set:
- add player to {lillejackpot::*}
- add 1 to {lillejackpot.min}
- set {lillejk.deltag.%player%} to true
- add 200 to {lille.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$200" to player
- make player execute command "/jp l"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- #==========
- #Medium bet
- #==========
- command /mediumbet [<text>]:
- trigger:
- if arg-1 is "300":
- if player's balance is greater or equal to 300:
- remove 300 from player's balance
- add 300 to {mediumbet}
- add 300 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {mediumjk.deltag.%player%} isn't set:
- add player to {mediumjackpot::*}
- add 1 to {mediumjackpot.min}
- set {mediumjk.deltag.%player%} to true
- add 300 to {medium.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$300" to player
- make player execute command "/jp m"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "500":
- if player's balance is greater or equal to 500:
- remove 500 from player's balance
- add 500 to {mediumbet}
- add 500 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {mediumjk.deltag.%player%} isn't set:
- add player to {mediumjackpot::*}
- add 1 to {mediumjackpot.min}
- set {mediumjk.deltag.%player%} to true
- add 500 to {medium.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$500" to player
- make player execute command "/jp m"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "700":
- if player's balance is greater or equal to 700:
- remove 700 from player's balance
- add 700 to {mediumbet}
- add 700 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {mediumjk.deltag.%player%} isn't set:
- add player to {mediumjackpot::*}
- add 1 to {mediumjackpot.min}
- set {mediumjk.deltag.%player%} to true
- add 700 to {medium.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$700" to player
- make player execute command "/jp m"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "900":
- if player's balance is greater or equal to 900:
- remove 900 from player's balance
- add 900 to {mediumbet}
- add 900 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {mediumjk.deltag.%player%} isn't set:
- add player to {mediumjackpot::*}
- add 1 to {mediumjackpot.min}
- set {mediumjk.deltag.%player%} to true
- add 900 to {medium.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$900" to player
- make player execute command "/jp m"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- #==========
- #Stor bet
- #==========
- command /storbet [<text>]:
- trigger:
- if arg-1 is "1000":
- if player's balance is greater or equal to 1000:
- remove 1000 from player's balance
- add 1000 to {storbet}
- add 1000 to {brugt::%uuid of player%}
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {storjk.deltag.%player%} isn't set:
- add player to {storjackpot::*}
- add 1 to {storjackpot.min}
- set {storjk.deltag.%player%} to true
- add 1000 to {stor.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$1000" to player
- make player execute command "/jp s"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "1500":
- if player's balance is greater or equal to 1500:
- remove 1500 from player's balance
- add 1500 to {storbet}
- set {brugt::%uuid of player%} to {brugt::%uuid of player%}+1500
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {storjk.deltag.%player%} isn't set:
- add player to {storjackpot::*}
- add 1 to {storjackpot.min}
- set {storjk.deltag.%player%} to true
- add 1500 to {stor.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$1500" to player
- make player execute command "/jp s"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "2000":
- if player's balance is greater or equal to 2000:
- remove 2000 from player's balance
- add 2000 to {storbet}
- set {brugt::%uuid of player%} to {brugt::%uuid of player%}+2000
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {storjk.deltag.%player%} isn't set:
- add player to {storjackpot::*}
- add 1 to {storjackpot.min}
- set {storjk.deltag.%player%} to true
- add 2000 to {stor.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$2000" to player
- make player execute command "/jp s"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- if arg-1 is "2500":
- if player's balance is greater or equal to 2500:
- remove 2500 from player's balance
- add 2500 to {storbet}
- set {brugt::%uuid of player%} to {brugt::%uuid of player%}+2500
- set yaml value "Brugt" from file "plugins/Jackpot/Userdata/%player% - %uuid of player%.yml" to "%{brugt::%uuid of player%}%"
- if {storjk.deltag.%player%} isn't set:
- add player to {storjackpot::*}
- add 1 to {storjackpot.min}
- set {storjk.deltag.%player%} to true
- add 2500 to {stor.bet.%player%}
- send "{@LJK} &6Du har bettet: &e$2500" to player
- make player execute command "/jp s"
- stop
- else:
- send "{@LJK} &6Du har ikke penge nok!" to player
- stop
- command /jkdebug:
- permission: *
- trigger:
- set {lille.jackpot.sek} to 59
- set {lille.jackpot.min} to 3
- loop {lillejackpot::*}:
- delete {lillejk.deltag.%loop-value%}
- delete {lille.bet.%loop-value%}
- loop all players:
- delete {lillejk.deltag.%loop-player%}
- delete {lillebet}
- delete {lillejackpot::*}
- delete {lillejackpot.min}
- every second:
- #==========
- #Lille jackpot countdown
- #==========
- if {lillejackpot.min} is greater or equal to 2:
- remove 1 from {lille.jackpot.sek}
- if {lille.jackpot.sek} is between -9999999 and 0:
- if {lille.jackpot.min} is between -9999999 and 0:
- set {lille.jackpot.sek} to 59
- set {lille.jackpot.min} to 3
- set {_lillestop} to 1
- set {_lillevinder} to a random player of {lillejackpot::*}
- broadcast ""
- broadcast "&6Vinderen af &8&lLille Jackpot &6var spilleren &e%{_lillevinder}% &6og vandt: &e%{lillebet}%"
- broadcast ""
- send "{@LJK} &6Du vandt &8&lLille Jackpot &6på &e$%{lillebet}%" to {_lillevinder}
- set {_vundet} to {brugt::%{_lillevinder}%} + {lillebet}
- set yaml value "Vundet" from file "plugins/Jackpot/Userdata/%{_lillevinder}% - %uuid of {_lillevinder}%.yml" to "%{_vundet}%"
- add {lillebet} to {_lillevinder}'s balance
- loop {lillejackpot::*}:
- delete {lillejk.deltag.%loop-value%}
- delete {lille.bet.%loop-value%}
- delete {lillebet}
- delete {lillejackpot::*}
- delete {lillejackpot.min}
- if {_lillestop} is 1:
- stop
- if {lille.jackpot.sek} is 0:
- set {lille.jackpot.sek} to 59
- remove 1 from {lille.jackpot.min}
- #==========
- #Medium jackpot countdown
- #==========
- if {mediumjackpot.min} is greater or equal to 2:
- remove 1 from {medium.jackpot.sek}
- if {medium.jackpot.sek} is between -9999999 and 0:
- if {medium.jackpot.min} is between -9999999 and 0:
- set {medium.jackpot.sek} to 59
- set {medium.jackpot.min} to 3
- set {_mediumstop} to 1
- set {_mediumvinder} to a random player of {mediumjackpot::*}
- broadcast ""
- broadcast "&6Vinderen af &e&lMedium Jackpot &6var spilleren &e%{_mediumvinder}% &6og vandt: &e%{mediumbet}%"
- broadcast ""
- send "{@LJK} &6Du vandt &e&lMedium Jackpot &6på &e$%{mediumbet}%" to {_mediumvinder}
- set {_vundet} to {brugt::%{_mediumvinder}%} + {mediumbet}
- set yaml value "Vundet" from file "plugins/Jackpot/Userdata/%{_mediumvinder}% - %uuid of {_mediumvinder}%.yml" to "%{_vundet}%"
- add {mediumbet} to {_mediumvinder}'s balance
- loop {mediumjackpot::*}:
- delete {mediumjk.deltag.%loop-value%}
- delete {medium.bet.%loop-value%}
- delete {mediumbet}
- delete {mediumjackpot::*}
- delete {mediumjackpot.min}
- if {_mediumstop} is 1:
- stop
- if {medium.jackpot.sek} is 0:
- set {medium.jackpot.sek} to 59
- remove 1 from {medium.jackpot.min}
- #==========
- #Stor jackpot countdown
- #==========
- if {storjackpot.min} is greater or equal to 2:
- remove 1 from {stor.jackpot.sek}
- if {stor.jackpot.sek} is between -9999999 and 0:
- if {stor.jackpot.min} is between -9999999 and 0:
- set {stor.jackpot.sek} to 59
- set {stor.jackpot.min} to 3
- set {_storstop} to 1
- set {_storvinder} to a random player of {storjackpot::*}
- broadcast ""
- broadcast "&6Vinderen af &9&lStor Jackpot &6var spilleren &e%{_storvinder}% &6og vandt: &e%{storbet}%"
- broadcast ""
- send "{@LJK} &6Du vandt &9&lJtor Jackpot &6på &e$%{storbet}%" to {_storvinder}
- set {_vundet} to {brugt::%{_storvinder}%} + {lillebet}
- set yaml value "Vundet" from file "plugins/Jackpot/Userdata/%{_storvinder}% - %uuid of {_storvinder}%.yml" to "%{_vundet}%"
- add {storbet} to {_storvinder}'s balance
- loop {storjackpot::*}:
- delete {storjk.deltag.%loop-value%}
- delete {stor.bet.%loop-value%}
- delete {storbet}
- delete {storjackpot::*}
- delete {storjackpot.min}
- if {_storstop} is 1:
- stop
- if {stor.jackpot.sek} is 0:
- set {stor.jackpot.sek} to 59
- remove 1 from {stor.jackpot.min}
- command /test [<text>]:
- permission: *
- trigger:
- if arg-1 is "l":
- set {lille.jackpot.sek} to 10
- set {lille.jackpot.min} to 0
- if arg-1 is "m":
- set {medium.jackpot.sek} to 10
- set {medium.jackpot.min} to 0
- if arg-1 is "s":
- set {stor.jackpot.sek} to 10
- set {stor.jackpot.min} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement