-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit 9ce1158
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason this is an if/else? is it not possible to mix vanilla and essentials metadata?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code could get quite messy if we attempt both, as we would need to iterate over the string and find where the JSON (Mojangson, apparently they call it) starts/ends and pass that to the unsafe code. This can also be a problem with the replacement keys which are json-like ({.*})... that can be solved by evaluating those first, however.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though that final solution would be an issue should there be any of the JSON characters in there... escape all the things?
Sentence is not stopped.
Fix please.
(Too tired to do 20 commits)