File tree Expand file tree Collapse file tree
src/main/java/com/thevoxelbox/voxelsniper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242public class VoxelSniperPlugin extends JavaPlugin {
4343
4444 private static final long HOURS_TO_TICKS = 72000L ;
45- private static final Pattern VERSION_NAME_PATTERN = Pattern .compile ("\" name\" \\ s*:\\ s*\" ([^\" ]+)\" " );
45+ private static final Pattern VERSION_ENTRY_PATTERN = Pattern .compile ("\\ {[^{}]* \ " name\" \\ s*:\\ s*\" ([^\" ]+)\" [^{}]*} " );
4646
4747 private static final Logger LOGGER = LogManagerCompat .getLogger ();
4848 public static VoxelSniperPlugin plugin ;
@@ -285,7 +285,7 @@ private double updateCheck(double currentVersion) {
285285 }
286286 }
287287
288- Matcher matcher = VERSION_NAME_PATTERN .matcher (response );
288+ Matcher matcher = VERSION_ENTRY_PATTERN .matcher (response );
289289 String latestVersionName = null ;
290290 while (matcher .find ()) {
291291 latestVersionName = matcher .group (1 );
You can’t perform that action at this time.
0 commit comments