Skip to content

Commit

Permalink
Fix plugin not working when you don't have floodgate installed, as it…
Browse files Browse the repository at this point in the history
… is an optional plugin.
  • Loading branch information
andrew121410 committed Nov 1, 2023
1 parent e54c74c commit 72f8fe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ private void handleBedrockPlayer(Player player) {
return;
}

FloodgateApi.getInstance().sendForm(player.getUniqueId(), simpleForm);
// Have to call simpleFormBuilder.build() again because if not a NoClassDefFoundError would be thrown?
// Caused by java.lang.ClassNotFoundException: org.geysermc.cumulus.form.Form
// Broken classpath?
FloodgateApi.getInstance().sendForm(player.getUniqueId(), simpleFormBuilder.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ private void handleBedrockPlayer(Player player) {
return;
}

FloodgateApi.getInstance().sendForm(player.getUniqueId(), simpleForm);
// Have to call simpleFormBuilder.build() again because if not a NoClassDefFoundError would be thrown?
// Caused by java.lang.ClassNotFoundException: org.geysermc.cumulus.form.Form
// Broken classpath?
FloodgateApi.getInstance().sendForm(player.getUniqueId(), simpleFormBuilder.build());
}
}

0 comments on commit 72f8fe1

Please sign in to comment.