add /prestige

This commit is contained in:
okx-code
2018-09-02 15:36:08 +01:00
parent e9d7a9791a
commit 82078dd31b
23 changed files with 469 additions and 181 deletions
+5 -2
View File
@@ -6,12 +6,15 @@ version: 0
# you will have to restart your server.
ranks: true
# whether or not prestiging should be enabled.
prestige: true
# how people should confirm ranking up
# options are: gui, text or none
confirmation-type: 'gui'
# how long in seconds people have to wait between a /rankup
# only successful rankups start the cooldown.
# how long in seconds people have to wait between a /rankup and a /prestige
# only successful rankups and prestiges start the cooldown.
# set to 0 to disable.
cooldown: 1
+3 -2
View File
@@ -1,7 +1,5 @@
# the messages in this section can be customised for each rankup in rankups.yml.
rankup:
# NOTE: if you are using requirements for your ranks that are NOT money,
# you will want to change this for each rank!
requirements-not-met: "&cYou need {MONEY} money to rankup."
no-rankup: "&eYou are at the highest rank."
# set to an empty string, ie: success-public: ""
@@ -15,6 +13,9 @@ rankup:
# used for the GUI confirmation
title: "Rankup to {RANK}"
not-high-enough: "&cYou cannot prestige at your rank!"
must-prestige: "&cYou must prestige to /rankup further!"
# you can (and probably should) you override these in rankups.yml
# to show the specific requirements for each rank.
# however if you are just using money or don't need to change the message per rank, you can use any combination of:
+7 -1
View File
@@ -1,5 +1,5 @@
name: Rankup
version: 3.0-alpha.19
version: 3.0-alpha.20
main: sh.okx.rankup.Rankup
author: Okx
depend: [Vault]
@@ -18,6 +18,9 @@ commands:
ranks:
permission: rankup.ranks
description: List all the ranks.
prestige:
permission: rankup.prestige
description: Prestige.
permissions:
rankup.*:
children:
@@ -27,6 +30,7 @@ permissions:
rankup.ranks: true
rankup.reload: true
rankup.ranks: true
rankup.prestige: true
rankup.info:
default: true
rankup.rankup:
@@ -38,4 +42,6 @@ permissions:
rankup.reload:
default: op
rankup.ranks:
default: true
rankup.prestige:
default: true
+12 -8
View File
@@ -1,20 +1,24 @@
P1example:
first:
# the rank people must be to use this prestige
from: 'D'
# the rank to change it to
to: 'A'
# the rank to also add
rank: 'P1'
# requirements are the same as in rankups.yml
next: 'P2example'
# see rankups.yml for more information on requirements, operations, commands and messages
requirements:
money: 10000
# optional
# optional, defaults to all
operation: all
# commands & prestige messages can be added as per rankups.yml too.
P1example:
from: 'D'
to: 'A'
rank: 'P2'
# the rank add to indicate this prestige
rank: 'P1'
next: 'P2example'
requirements:
money: 20000
xp-level: 5
xp-level: 5
P2example:
from: 'D'
to: 'A'
rank: 'P2'