Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every time i edit the config... #43

Open
Ben420x opened this issue Aug 29, 2017 · 6 comments
Open

Every time i edit the config... #43

Ben420x opened this issue Aug 29, 2017 · 6 comments

Comments

@Ben420x
Copy link

Ben420x commented Aug 29, 2017

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."

@falkirks
Copy link
Owner

falkirks commented Aug 30, 2017

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: ~

@Ifera
Copy link
Contributor

Ifera commented Feb 25, 2018

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

@falkirks falkirks reopened this Feb 25, 2018
@falkirks
Copy link
Owner

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

@Ifera
Copy link
Contributor

Ifera commented Feb 25, 2018

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

@falkirks
Copy link
Owner

@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.

@Ifera
Copy link
Contributor

Ifera commented Feb 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants