Skip to content

Commit

Permalink
Update erorr message in OpenModal.java (#142)
Browse files Browse the repository at this point in the history
Was a bit confusing.
  • Loading branch information
Mushkrem authored Aug 10, 2023
1 parent 0df3dba commit 27508b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class OpenModal extends WaiterEffect {
@Override
public boolean initEffect(Expression[] expressions, int i, Kleenean kleenean, SkriptParser.ParseResult parseResult) {
if (!containsInterfaces(ModalEvent.class)) {
Skript.error("The show modal effect can only be used in modal events.");
Skript.error("The show modal effect can only be used in interactions outside of modal events.");
return false;
}
exprModal = (Expression<Modal.Builder>) expressions[0];
Expand Down

0 comments on commit 27508b6

Please sign in to comment.