Skip to content

Commit

Permalink
Fix protocol version inequality (again lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwoo1110 committed Jan 25, 2025
1 parent f8b41ce commit df11141
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void registerMultiversePlugin(MultiversePlugin plugin) {
if (core == null) {
throw new IllegalStateException("MultiverseCore has not been initialized!");
}
if (core.getCoreProtocolVersion() >= plugin.getTargetCoreProtocolVersion()) {
if (core.getCoreProtocolVersion() < plugin.getTargetCoreProtocolVersion()) {
Logging.severe("Your Multiverse-Core is OUT OF DATE!");
Logging.severe("This version of %s requires Protocol Level: %d", plugin.getDescription().getName(), plugin.getTargetCoreProtocolVersion());
Logging.severe("Your of Core Protocol Level is: %s", core.getTargetCoreProtocolVersion());
Expand All @@ -50,7 +50,7 @@ void registerMultiversePlugin(MultiversePlugin plugin) {
core.getServer().getPluginManager().disablePlugin(plugin);
return;
}
if (core.getMinTargetCoreProtocolVersion() < plugin.getTargetCoreProtocolVersion()) {
if (core.getMinTargetCoreProtocolVersion() > plugin.getTargetCoreProtocolVersion()) {
Logging.severe("Your %s is OUT OF DATE!", plugin.getDescription().getName());
Logging.severe("This version of Multiverse-Core requires AT LEAST Protocol Level: " + core.getCoreProtocolVersion());
Logging.severe("Your of %s Protocol Level is: %s", plugin.getDescription().getName(), plugin.getTargetCoreProtocolVersion());
Expand Down

0 comments on commit df11141

Please sign in to comment.