Skip to content

Commit

Permalink
Capitalize the 'C' in EffExit's errors
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderscoreTud committed Sep 4, 2024
1 parent 501253d commit 3afdbb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ch/njol/skript/effects/EffExit.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
int levels = getParser().getCurrentSections(types[type]).size();
if (breakLevels > levels) {
if (levels == 0) {
Skript.error("can't stop any " + names[type] + " as there are no " + names[type] + " present");
Skript.error("Can't stop any " + names[type] + " as there are no " + names[type] + " present");
} else {
Skript.error("can't stop " + breakLevels + " " + names[type] + " as there are only " + levels + " " + names[type] + " present");
Skript.error("Can't stop " + breakLevels + " " + names[type] + " as there are only " + levels + " " + names[type] + " present");
}
return false;
}
Expand All @@ -89,7 +89,7 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
List<? extends TriggerSection> sections = getParser().getCurrentSections(types[type]);
breakLevels = sections.size();
if (sections.isEmpty()) {
Skript.error("can't stop any " + names[type] + " as there are no " + names[type] + " present");
Skript.error("Can't stop any " + names[type] + " as there are no " + names[type] + " present");
return false;
}
TriggerSection firstSection = sections.get(0);
Expand Down

0 comments on commit 3afdbb6

Please sign in to comment.