options:
goldenappleprice: 10
appleprice: 5
specialitem: dirt
every 15 seconds:
loop all players:
if {random::*} contains loop-player:
give a random item out of all items to the loop-player
command /toggle:
trigger:
if {random::*} contains player:
remove player from {random::*}
else:
add player to {random::*}
on death of player:
attacker is a player
add 5 to {points::%attacker's uuid%}
if {points::%attacker's uuid%} is 20:
# code to give vip
else if {points::%attacker's uuid%} is 40:
# code to give mvp
on right click with {@specialitem}:
# code for special rank
on damage of player:
if victim's health < 5:
send formatted "<command:/goldenapple>Click to buy some Golden Apples"
send formatted "<command:/apple>Click to buy some Apples"
command /goldenapple:
trigger:
if player's balance >= {@goldenappleprice}:
remove {@goldenappleprice} from player's balance
give player golden apple
send "Golden Apple purchased"
command /apple:
trigger:
if player's balance >= {@appleprice}:
remove {@appleprice} from player's balance
give player apple
send "Apple purchased"
command /lightningstick:
permission: lightning.stick
trigger:
give player stick named "Lightning Stick!"
on right click with stick named "Lightning Stick!":
strike lightning at event-location
on citizen click: # requires skellet
citizen's name is "Nether": # requires citizens to create the npc
teleport player to location(0, 100, 0, world "world_nether") # change this to where you want the player to be teleported
citizen's name is "Overworld":
teleport player to location(0, 100, 0, world "world") # change this to where you want the player to be teleported
on death of player:
if last damage cause is fall:
set death message to "%victim% forgot how gravity works!"
None of this is tested so some of them might not work. For the buying golden apples and apples part, didn't know which currency you used so just used essentials eco. You can change the price of each in the options. Also didn't know what item you wanted for the special item to get the special rank so you can set that in the options too. For the rank giving part for points, didn't know what permission plugin you used so just change the comment i placed do execute console command "/command" and set the command to give the player the rank.
For this part, use a plugin called Multiverse and Void Generator to create a void world. To create the void world, do /mv create (world) normal -g VoidGenerator
Edit:
Some of these indents got messed up in the post for some reason but if you know the basics of skript, you can easily fix them.