forked from Staartvin/Autorank-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdvancedConfig.yml
100 lines (98 loc) · 8.31 KB
/
AdvancedConfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#############################################################################
# #
# Autorank Advanced Config #
# #
# Please use the SimpleConfig unless you know what you are doing and #
# need functionality that the SimpleConfig doesn't provide. #
# #
#############################################################################
ranks:
Guest:
requirements:
time:
value: 10h
results:
rank change: Guest;Member
command: 'say &p just got a promotion; broadcast &p has just been promoted to Member!'
message: 'Congratulations, you are now a member.'
Member:
requirements:
time:
value: 5d
exp:
value: 10
world:
value: world_nether
gamemode:
value: 0
has item:
value: 50
has item2:
value: 40
mobs killed:
value: 10;pig
mobs killed2:
value: 10;spider
results:
rank change: Member;Vip
command: 'say &p has just been promoted to VIP!; give &p 1 100; tell &p You have just earned 100 stone!'
message: 'Congratulations, you are now a vip.'
# new requirements and results can be added by other plugins that hook into the Autorank API
# these are the ones that are included in the main plugin:
#
# requirements:
# time: 1d 1h 1m
# exp: 20 (level)
# money: 2000 (requires vault ! Player has to have at least this amount of money)
# world: world_nether (player has to be in this world to get ranked)
# gamemode: 1 (player has to have a certain gamemode, 0 = Survival mode, 1 = Creative mode, 2 = Adventure mode)
# has item: id(;amount;storage;name;false/true) (checks the players inventory for the item, the name would be the display name of the item. When the false/true (boolean) parameter is true, the player should have the item with the given display name, if it is false, the player only needs the specific amount and material type.)
# blocks broken: id(;amount;storage;name) (a player has to have broken x amount blocks of item id and storage) (Requires Statz) (when no storage or id is given, it will check total blocks)
# Example: break 10 magenta wool would be: 'blocks broken: 35;10;2' 35 = itemid, 10 = amount, 2 = damagevalue
# blocks placed: id(;amount;storage;name) (a player has to have placed x amount blocks of item id and storage) (Requires Statz) (when no storage or amount is given, it will check total blocks)
# votes: 10 (player has to have voted at least 10 times) (Requires Statz and Votifier)
# damage taken: 10 (player has to have taken 10 damage) (damage is not counted in hearts) (Requires Statz)
# mobs killed: 5;spider (player has to have killed 5 spiders) (if no entity is specified, then any kill counts) (Requires Statz) (for a list of entities: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html) Can also use WITHER_SKELETON,
# location: x;y;z;world;radius (player has to be in a location or within its radius)
# faction power: 10 (Amount of power a faction has to have) (Requires Factions)
# players killed: 10 (Player has to kill at least 10 players) (Requires Statz)
# global time: 10d 1h 5m (Player has to be online for at least 10 days, 1 hour and 5 mins) (Global time is the accumulated time over all servers you have connected the MySQL database with)
# total time: 50d 1h (Player has to be with this server for at least 50 days and 1 hour) (The time from when the player joined for the first time is the reference point. This means that when a player has joined 3 weeks ago, his 'total time' = 3 weeks)
# blocks moved: 1000;0 (Player has to move at least an x amount of blocks. Second argument is what kind of movement: 0=walk, 1=boat, 2=train, 3=pig, 4=pig in train, 5=horse) (Need Statz for this)
# worldguard region: TestRegion (Player has to be in a certain WorldGuard region) (requires WorldGuard)
# mcmmo skill level: 100;mining (Player has to have at least level 100 in mining) (requires McMMO)
# mcmmo power level: 100 (Player has to have at least power level 100) (requires McMMO)
# permission: i.need.a.permission (Player has to have this permission)
# fish caught: 10 (Player has to have caught at least 10 fish) (requires Statz)
# items crafted: 7 (Player has to have crafted at least 7 items) (requires Statz)
# times sheared: 15 (Player has to have sheared at least 15 sheep) (requires Statz)
# essentials geoip location: Netherlands (Player has to be in the area 'Netherlands') (requires Essentials GeoIP)
# in biome: river (Player has to be in biome 'river') (a list of all biomes: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/Biome.html)
# food eaten: 10;PORK (Player has to eat at least 10 Pork chops) (Food type can be omitted to include any type of food) (Statz required)
# acidisland level: 10 (Player needs to have at least an island level of 10) (AcidIsland required)
# askyblock level: 10 (Player needs to have at least an island level of 10) (ASkyBlock required)
# javascript: Player.getHealth() > 15;You need at least 15 hearts of health. (This first part must be true for this evaluations to be true, the second part is the description that is shown.)
# jobs current points: 10 (Player needs to have at least 10 points (at the moment of checking) in Jobs) (requires Jobs)
# jobs total points: 100 (Player needs to have at least 100 points in total in Jobs) (requires Jobs)
# jobs level: 50;mining (A player has to have at least level 50 in job 'mining') (requires Jobs)
# jobs experience: 100;mining (A player needs to have at least 100 exp in the job 'mining') (requires Jobs)
# grief prevention claims: 100 (A player needs to have at least 100 claims in Grief Prevention) (requires GriefPrevention)
# grief prevention claimed blocks: 150 (A player needs to have at least 150 blocks claimed in Grief Prevention) (requires GriefPrevention)
# grief prevention remaining blocks: 20 (A player needs to have at least 20 blocks left over to claim in Grief Prevention) (requires GriefPrevention)
# grief prevention bonus blocks: 60 (A player needs to have at least 60 bonus blocks in Grief Prevention) (requires GriefPrevention)
# has advancement: 10 (A player needs to have at least 10 advancements.)
# (also possible:) has advancement: minecraft:adventure/adventuring_time (A player has to have a specific advancement. For a list of advancements, see https://minecraft.gamepedia.com/Advancements)
# rpgme skill level: 20;mining (Player has to have at least level 20 in mining in RPGme) (requires RPGme)
# rpgme combat level: 100 (Player has to have at least combat level 100 in RPGme) (requires RPGme)
# in group: TrumpSupporters (Players needs to be in the rank/group 'TrumpSupporters')
#
# results:
# rank change: new-rank
# rank change: old-rank; new-rank
# rank change: old-rank; new-rank; world (only works for permissions plugins that support this)
# message: 'You got ranked up'
# command: 'say &p hi; give &p 1 100'(executes a console command. &p will be replaced by the player name) You can perform more commands with the ';' sign.
# effect: STEP_SOUND;8 (first argument is the effect name, second is the effect storage. For a list of possible effects go to https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Effect.html)
# tp: x;y;z;world;yaw;pitch (tp: 0;0;0;world_nether;1.0;2.0)
# firework: target;power;type;R;G;B (Spawn a firework with on a player or spawn, with specified power, type and RGB colour) (target can be 'player' or 'spawn', power is an integer, type is a type (see https://hub.spigotmc.org/javadocs/spigot/org/bukkit/FireworkEffect.Type.html), R;G;B is a RGB colour code (see http://www.rapidtables.com/web/color/RGB_Color.htm))
# money: 1000 (Reward a player with a 1000 money.) (Requires Vault!)