Skip to content

Commit

Permalink
Make version incompatible message suggest upgrading Minecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 19, 2022
1 parent 0a6225a commit 2e886cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion main/src/main/java/net/citizensnpcs/util/NMS.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,10 @@ public static boolean shouldJump(org.bukkit.entity.Entity entity) {
}

public static void shutdown() {
BRIDGE.shutdown();
if (BRIDGE != null) {
BRIDGE.shutdown();
BRIDGE = null;
}
}

public static boolean tick(Entity next) {
Expand Down
2 changes: 1 addition & 1 deletion main/src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ citizens.nms-errors.updating-pathfinding-range=Could not update pathfinding rang
citizens.notifications.database-connection-failed=Unable to connect to database, falling back to YAML
citizens.notifications.error-reloading=Error occured while reloading, see console.
citizens.notifications.exception-updating-npc=Exception while updating {0}: {1}.
citizens.notifications.incompatible-version=v{0} is not compatible with Minecraft v{1} - try upgrading or downgrading Citizens. Disabling.
citizens.notifications.incompatible-version=v{0} is not compatible with Minecraft v{1} - try upgrading Minecraft or Citizens. Disabling...
citizens.notifications.locale=Using locale {0}.
citizens.notifications.metrics-load-error=Unable to start metrics: {0}.
citizens.notifications.missing-translations=Missing translations file for locale {0}. Defaulting to en locale.
Expand Down

1 comment on commit 2e886cf

@sussybukaa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your using older version of minecraft and citizens is for newer ones ?

Please sign in to comment.