-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Runtime errors #7155
base: dev/feature
Are you sure you want to change the base?
Runtime errors #7155
Conversation
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.
General thoughts / formatting
Nice work
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorProducer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorManager.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorManager.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorManager.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorManager.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/lang/errors/RuntimeErrorProducer.java
Outdated
Show resolved
Hide resolved
Switch to REConsumer, create RE and ErrorSource classes, use new config reload event.
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.
Looking really good with these changes.
I think this is looking really good. My main concern is with how the strings are being passed/formatted around. Do you think we would be able to move some of this Bukkit-specific formatting stuff into the consumers? For example, when appending to timeoutTexts
, don't call Utils#replaceEnglishChatStyles
on the string there and instead call it within the consumer
Description
Creates a RuntimeErrorProvider interface that SyntaxElements can implement in order to throw runtime errors and warnings.
Out of scope, for future PRs:
Target Minecraft Versions: any
Requirements: none
Related Issues: none