add code
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# this is used for letting you know that you need to update/change your config file
|
||||
version: 0
|
||||
|
||||
# how people should confirm ranking up
|
||||
# options are: gui, text or none
|
||||
confirmation-type: 'gui'
|
||||
|
||||
gui:
|
||||
rows: 1
|
||||
rankup:
|
||||
material: EMERALD_BLOCK
|
||||
# index can be separated by spaces to show in multiple ways
|
||||
# ie, 0-3 9-12 18-21
|
||||
# you can also just use a single number instead of a range.
|
||||
index: 0-3
|
||||
name: '&a&lConfirm'
|
||||
# lore is optional
|
||||
lore: '&6Rankup to &b{RANK}'
|
||||
cancel:
|
||||
material: REDSTONE_BLOCK
|
||||
index: 5-8
|
||||
name: '&c&lCancel'
|
||||
fill:
|
||||
name: ' '
|
||||
# if you are using a 1.8-1.12 and you want to change this
|
||||
# you can use MATERIAL:data, for example STAINED_GLASS_PANE:8
|
||||
# this works for both the rankup and cancel blocks as well
|
||||
material: BLACK_STAINED_GLASS_PANE
|
||||
|
||||
text:
|
||||
# the time in seconds for a player to
|
||||
# confirm ranking up by typing the command again
|
||||
timeout: 10
|
||||
|
||||
placeholders:
|
||||
# format for money. for more information, see
|
||||
# https://docs.oracle.com/javase/8/docs/api/java/text/DecimalFormat.html
|
||||
money-format: "#,##0.##"
|
||||
percent-format: "0.##"
|
||||
# the format used for requirements
|
||||
simple-format: "#.##"
|
||||
# used for current_rank and next_rank placeholders when a player not in anything in rankups.yml
|
||||
not-in-ladder: "None"
|
||||
# used in next_rank placeholders when there is no rankup
|
||||
highest-rank: "None"
|
||||
@@ -0,0 +1,35 @@
|
||||
# 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: ""
|
||||
# to hide that message.
|
||||
success-public: "&a{PLAYER} &ehas ranked up to: &d{RANK}"
|
||||
success-private: "&aYou have ranked up to: &d{RANK}"
|
||||
# used for the text confirmation
|
||||
confirmation: |-
|
||||
&eAre you sure you want to rankup to &a{RANK}&e?
|
||||
&eType &c/rankup &eagain to confirm.
|
||||
# used for the GUI confirmation
|
||||
title: "Rankup to {RANK}"
|
||||
|
||||
# It is HIGHLY RECOMMENDED you override these in rankups.yml
|
||||
# to show the specific requirements for each rank.
|
||||
# however if you are just using money, you can use {MONEY} or {MONEY_NEEDED} or {PERCENT_DONE} or {PERCENT_LEFT}
|
||||
# for example:
|
||||
#ranks:
|
||||
# complete: "&7{OLD_RANK} &8\xbb &7{RANK} &efor &7${MONEY}"
|
||||
# current: "&c{OLD_RANK} &e\xbb &c{RANK} &efor &a${MONEY} &e{PERCENT_DONE}%"
|
||||
# incomplete: "&r{OLD_RANK} &e\xbb &r{RANK} &efor &a${MONEY}"
|
||||
ranks:
|
||||
complete: "&7{OLD_RANK} &8\xbb &7{RANK}"
|
||||
current: "&c{OLD_RANK} &e\xbb &c{RANK}"
|
||||
incomplete: "&r{OLD_RANK} &e\xbb &r{RANK}"
|
||||
ranks:
|
||||
# an empty string disables the header/footer
|
||||
header: ''
|
||||
footer: ''
|
||||
|
||||
not-in-ladder: "&cSorry, but we could not find any rankups for the group(s) you are in."
|
||||
@@ -0,0 +1,41 @@
|
||||
name: Rankup
|
||||
version: 3.0-alpha
|
||||
main: sh.okx.rankup.Rankup
|
||||
author: Okx
|
||||
depend: [Vault]
|
||||
softdepend: [PlaceholderAPI]
|
||||
api-version: 1.13
|
||||
|
||||
commands:
|
||||
rankup:
|
||||
permission: rankup.rankup
|
||||
description: Rankup.
|
||||
rankup3:
|
||||
permission: rankup3.info
|
||||
description: View Rankup version and perform some administrative commands.
|
||||
# support the old command
|
||||
aliases: [pru]
|
||||
ranks:
|
||||
permission: rankup.ranks
|
||||
description: List all the ranks.
|
||||
permissions:
|
||||
rankup.*:
|
||||
children:
|
||||
rankup.info: true
|
||||
rankup.rankup: true
|
||||
rankup.checkversion: true
|
||||
rankup.ranks: true
|
||||
rankup.reload: true
|
||||
rankup.ranks: true
|
||||
rankup.info:
|
||||
default: true
|
||||
rankup.rankup:
|
||||
default: true
|
||||
rankup.checkversion:
|
||||
default: op
|
||||
rankup.ranks:
|
||||
default: true
|
||||
rankup.reload:
|
||||
default: op
|
||||
rankup.ranks:
|
||||
default: true
|
||||
@@ -0,0 +1,49 @@
|
||||
Aexample:
|
||||
# the name of the rank in your permissions plugin
|
||||
rank: 'A'
|
||||
# the next rank a player can rank up to.
|
||||
# this must be the name of the configuration section.
|
||||
# for example, the name of this configuration section is "Aexample".
|
||||
# this is not required.
|
||||
next: 'Bexample'
|
||||
# List of requirements to go to the next rank
|
||||
# (ie, this example will charge 1000 money to rankup from A to B)
|
||||
# money: money from the server economy
|
||||
# xp-level: amount of experience levels
|
||||
# playtime-hours: hours a player has played
|
||||
# custom requirements can also be added by other plugins.
|
||||
requirements:
|
||||
money: 1000
|
||||
# What requirements players need to match to /rankup.
|
||||
# this is optional - if you don't use it, it defaults to "and"
|
||||
# n.b. if there are no requirements players will always be able to /rankup.
|
||||
# and: all requirements
|
||||
# or: at least one requirement
|
||||
# xor: only one requirement
|
||||
# none: no requirements
|
||||
operation: and
|
||||
# the console will run these commands when a player ranks up
|
||||
#commands:
|
||||
# this will run when a player ranks up from A to B.
|
||||
#- 'say {PLAYER} well done for ranking up from {OLD_RANK} to {RANK}!'
|
||||
Bexample:
|
||||
rank: 'B'
|
||||
next: 'Cexample'
|
||||
requirements:
|
||||
money: 2500
|
||||
Cexample:
|
||||
rank: 'C'
|
||||
next: 'Dexample'
|
||||
requirements:
|
||||
money: 5000
|
||||
xp-level: 2
|
||||
# you can have a custom messages too.
|
||||
# you can use this to list the requirements needed.
|
||||
rankup:
|
||||
requirements-not-met: '&cYou need 5000 money and 2 levels of XP to rankup to D.'
|
||||
ranks:
|
||||
complete: "&7{OLD_RANK} &8\xbb &7{RANK} &e(5000 money, 2 XP levels)"
|
||||
current: "&c{OLD_RANK} &e\xbb &c{RANK} &e(5000 money, 2 XP levels)"
|
||||
incomplete: "&r{OLD_RANK} &e\xbb &r{RANK} &e(5000 money, 2 XP levels)"
|
||||
Dexample:
|
||||
rank: 'D'
|
||||
Reference in New Issue
Block a user