@@ -111,14 +111,14 @@ public static DataSnapshot.Packed deserialize(@NotNull HuskSync plugin, byte[] d
111
111
@ Nullable OffsetDateTime timestamp ) throws IllegalStateException {
112
112
final DataSnapshot .Packed snapshot = plugin .getDataAdapter ().fromBytes (data , DataSnapshot .Packed .class );
113
113
if (snapshot .getMinecraftVersion ().compareTo (plugin .getMinecraftVersion ()) > 0 ) {
114
- throw new IllegalStateException (String .format ("Cannot set data for user because the Minecraft version of " +
115
- "their user data (%s) is newer than the server's Minecraft version (%s)." +
114
+ throw new IllegalStateException (String .format ("Cannot deserialize data because the Minecraft version of " +
115
+ "the data snapshot (%s) is newer than the server's Minecraft version (%s)." +
116
116
"Please ensure each server is running the same version of Minecraft." ,
117
117
snapshot .getMinecraftVersion (), plugin .getMinecraftVersion ()));
118
118
}
119
119
if (snapshot .getFormatVersion () > CURRENT_FORMAT_VERSION ) {
120
- throw new IllegalStateException (String .format ("Cannot set data for user because the format version of " +
121
- "their user data (%s) is newer than the current format version (%s). " +
120
+ throw new IllegalStateException (String .format ("Cannot deserialize data because the format version of " +
121
+ "the data snapshot (%s) is newer than the current format version (%s). " +
122
122
"Please ensure each server is running the latest version of HuskSync." ,
123
123
snapshot .getFormatVersion (), CURRENT_FORMAT_VERSION ));
124
124
}
@@ -135,8 +135,8 @@ public static DataSnapshot.Packed deserialize(@NotNull HuskSync plugin, byte[] d
135
135
));
136
136
}
137
137
if (!snapshot .getPlatformType ().equalsIgnoreCase (plugin .getPlatformType ())) {
138
- throw new IllegalStateException (String .format ("Cannot set data for user because the platform type of " +
139
- "their user data (%s) is different to the server platform type (%s). " +
138
+ throw new IllegalStateException (String .format ("Cannot deserialize data because the platform type of " +
139
+ "the data snapshot (%s) is different to the server platform type (%s). " +
140
140
"Please ensure each server is running the same platform type." ,
141
141
snapshot .getPlatformType (), plugin .getPlatformType ()));
142
142
}
0 commit comments