RankUp icon indicating copy to clipboard operation
RankUp copied to clipboard

Every time i edit the config...

Open Ben420x opened this issue 8 years ago • 6 comments

The plugin is working at first and then plugin disables once i config the plugin: CONFIGS: groups: A: entrance: - say {name} ranked up to A - setgroup {name} A exit: [] perms: [] members: [] B: entrance: - say {name} ranked up to B - setgroup {name} B exit: [] perms: [] members: [] C: entrance: - say {name} ranked up to C - setgroup {name} C exit: [] perms: [] members: [] D: entrance: - say {name} ranked up to D - setgroup {name} D exit: [] perms: [] members: [] E: entrance: - say {name} ranked up to E - setgroup {name} E exit: [] perms: [] members: [] F: entrance: - say {name} ranked up to F - setgroup {name} F exit: [] perms: [] members: [] G: entrance: - say {name} ranked up to G - setgroup {name} G exit: [] perms: [] members: [] H: entrance: - say {name} ranked up to H - setgroup {name} H exit: [] perms: [] members: [] I: entrance: - say {name} ranked up to I - setgroup {name} I exit: [] perms: [] members: [] J: entrance: - say {name} ranked up to J - setgroup {name} J exit: [] perms: [] members: [] K: entrance: - say {name} ranked up to K - setgroup {name} K exit: [] perms: [] members: []

ranks: # Define all your ranks here A: 0 B: 1500 C: 2500 D: 4000 E: 6000 F: 10000 G: 15000 H: 25000 I: 50000 J: 75000 K: 100000

lang: ranked-up-paid: "You have been ranked up to %s" ranked-up-free: "You have been ranked up to %s" group-add-error-paid: "Failed to rankup. Refunded price." group-add-error-free: "Failed to rankup. Try again later." need-more-money-1: "Looks like you don't have enough money." need-more-money-2: "You need %s to rank up." missing-economy: "Can't purchase now." have-max-rank: "You have the maximum rank." command-permission-error: "You don't have permission to rankup."

Ben420x avatar Aug 29 '17 22:08 Ben420x

You will need to format your YAML correctly in order for me to find the issue. Use pastebin or a gist. What you have written is equivalent to what I have pasted below, and either won't work with the plugin because the indentation has been lost.

--- 
A: 0
B: 1500
C: 2500
D: 4000
E: 6000
F: 10000
G: 15000
H: 25000
I: 50000
J: 75000
K: 100000
command-permission-error: "You don't have permission to rankup."
entrance: 
  - "say {name} ranked up to K"
  - "setgroup {name} K"
exit: []
group-add-error-free: "Failed to rankup. Try again later."
group-add-error-paid: "Failed to rankup. Refunded price."
groups: ~
have-max-rank: "You have the maximum rank."
lang: ~
members: []
missing-economy: "Can't purchase now."
need-more-money-1: "Looks like you don't have enough money."
need-more-money-2: "You need %s to rank up."
perms: []
ranked-up-free: "You have been ranked up to %s"
ranked-up-paid: "You have been ranked up to %s"
ranks: ~

falkirks avatar Aug 30 '17 01:08 falkirks

This is not a plugin issue. Its the inablity of the user to set the config.yml correctly. This should be closed.

Ifera avatar Feb 25 '18 17:02 Ifera

@JackMD I am considering handling this more gracefully, which is why I left it open.

falkirks avatar Feb 25 '18 19:02 falkirks

@Falkirks okay. Thats much better. The point is when will the user @Ben420x respond.

Ifera avatar Feb 25 '18 19:02 Ifera

@JackMD It's just about verifying that the structure of the YAML is correct before parsing it into ranks, and if it isn't give a warning.

falkirks avatar Feb 25 '18 19:02 falkirks

@Falkirks I used these settings of config.yml and these of groups.yml. They work flawlessly.,

Ifera avatar Feb 25 '18 19:02 Ifera