Create the Tops system with prizes!
This plugin was made for OpenMod! OpenMod is the free and open source successor of RocketMod. OpenMod supports all RocketMod plugins and features and much more. Migration only takes 5 minutes. Migrate to OpenMod now.
Features
The Tops
plugin allows creation leaderboards to see player's PvP\PvE rank on the server.
The workshop mod is required, you can found it here.
You can watch the Showcase video to see how it works.
If you found the bug or want's to suggest ideas then join my discord server.
Configuration
panels:
- enabled: true
header: TOP 10 of looted airdrops
countTop: AirdropLoot
rules: null
time: 7d
prizes:
- placeTop: 1 # Give Grizzly and 3 Grizzly's magazines to first place in TOP
items:
- id: 297
amount: 1
- id: 298
amount: 3
commands: # Execute commands
#- "experience 300 {{playerId}}" # Uncomment if NewEssentials is installed
- "experience {{playerId}}/300"
- placeTop: 2 # Give Maplestrike and Military Drum to the second place in TOP
items:
- id: 363
amount: 1
- id: 17
amount: 1
commands: null
- placeTop: ">2" # Give Vaccine from third to X place in TOP
items:
- id: 269
amount: 1
commands: null
- enabled: true
header: TOP 10 of killed players
countTop: KillPlayer
rules:
- name: id
value:
- name: checkabuse
value: true
time: 2d
prizes:
- placeTop: 1 # Give Military Nightvision and Alicepack to first place in TOP
items:
- id: 334
amount: 1
- id: 253
amount: 1
commands: # Execute commands
#- "pay {{playerId}} 300" # Uncomment if OpenMod.Economy or Uconomy is installed
- placeTop: ">=2&<=50" # Give 50 money from seconds to fiftieth place in TOP
items: null
commands:
- "pay {{playerId}} 50"
- enabled: true
header: TOP 10 of kills players and zombies to head
countTop: "KillZombieHead, KillPlayerHead"
rules:
- name: id
value:
- name: checkabuse
value: true
time: 30m
prizes:
- placeTop: 1 # Give 1000 money to the first place in TOP
items: null
commands:
- "pay {{playerId}} 1000"
- placeTop: ">=2&<10" # Give 100 money from second to ninth place in TOP
items: null
commands:
- "pay {{playerId}} 100"
- placeTop: ">=10" # Give 50 money from 10 to X place in TOP
items: null
commands:
- "pay {{playerId}} 50"
- enabled: true
header: TOP 10 of zombie kills with Maplestrike
countTop: KillZombie
rules:
- name: id
value: 363
time: 1d
prizes:
- placeTop: "=1" # Give 4 Medkits and Vaccice to first place
items:
- id: 15
amount: 4
- id: 269
amount: 1
commands: null
- placeTop: "!1" # Give 2 Medkits from second to X place in TOP
items:
- id: 15
amount: 2
commands: null
(This is an example of the config.yaml)
enabled - Should shows and counts score the TOPs panel
header - The name of the TOP panel.
countTop - Count TOP by the stat (Could be multiple). All available stats:
None,
KillPlayerHead,
KillPlayerTorso,
KillPlayerLeg,
KillPlayerArm,
KillPlayer,
KillZombieHead,
KillZombieTorso,
KillZombieLeg,
KillZombieArm,
KillZombie,
DeathPlayer,
AirdropLoot,
ExperienceGain,
Barricade,
KillStructure,
KillVehicle
Rules
Rules on how the plugin should take action.
name - The rule name.
Rule id
means which item Id it should hold to get a count for countTop
:
KillPlayerHead,
KillPlayerTorso,
KillPlayerLeg,
KillPlayerArm,
KillPlayer,
KillZombieHead,
KillZombieTorso,
KillZombieLeg,
KillZombieArm,
KillZombie,
KillBarricade,
KillStructure,
KillVehicle
Rule checkAbuse
means it should ignore abused counts (e.g. ignore if the killer kills the same player in short of time).
value - The value of rule. Rule id
needs the gun or melee item Id. Rule checkAbuse
is only true
or false
.
time - The time how much need to wait to give prizes to winners.
Prizes
Prizes to the winners.
placeTop - The condition of Top index to give that prizes to winner (is possible to have complex conditions).
Items
The Item Prizes.
id - Id of the item to give.
amount - Amount items to give.
Commands
The Commands Prizes.
The commands will be executed on console-side, available arguments: {{playerId}}
, {{playerDisplayName}}
.
Commands
/tops
- Show the TOPs UI.
/rtprize
- Receive TOPs prizes.