DEVLOG #8: Ouch, that hurts!
I added a Roles system (PARTICIPANT, SPECTATOR, STAFF, ADMIN) as well as setRole(Player player, Role role), getPlayers(Role role) and updateState(Player player) You now automatically get assigned spectator on death and participant on event start. This system is still very primative and I will adjust how roles are managed in the future as required.
Challenges:
I spent 10 minutes debugging because of a typo in my messages.yml causing the showTitle() to fail because of an invalid message. I’m going to add null saftey to my MessageManager to return some error if a configuration value is null, to help me catch these earlier in the future.
Todo:
- Role Displaynames
- Add displaynames to the roles in the config (For use in chat formatting. This will be difficult as I will need a raw text as well as a stylised one)
- Update Chat Formatting to use actual roles
- Setup staff role permissions
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.