Skip to content

Commit

Permalink
Fix syntax registration order
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus committed Jun 24, 2024
1 parent 895406e commit 456c517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public void onEnable() {

SkriptAddon addon = Skript.registerAddon(this);
try {
addon.loadClasses("org.skriptlang.skriptworldguard.elements");
addon.setLanguageFileDirectory("lang"); // Register ClassInfo lang definitions with Skript
new RegionClasses(); // Register ClassInfos with Skript
addon.loadClasses("org.skriptlang.skriptworldguard.elements");
} catch (IOException e) {
getLogger().severe("An error occurred while trying to register and load the addon with Skript. Disabling...");
getLogger().severe("Printing StackTrace:");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/lang/default.lang
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ worldguard move types:
other_cancellable: cancellable
types:
worldguardregion: worldguard region¦s
worldguardmovetype : worldguard move type¦s
worldguardmovetype: worldguard move type¦s

0 comments on commit 456c517

Please sign in to comment.