mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-07 17:07:59 +01:00
Add api-version, tweak version pattern to support pre releases
Fixes #638 Fixes #636 Fixes #626
This commit is contained in:
parent
490b1dadcb
commit
d7be712959
@ -42,7 +42,7 @@ public class MinecraftVersion implements Comparable<MinecraftVersion>, Serializa
|
||||
/**
|
||||
* Regular expression used to parse version strings.
|
||||
*/
|
||||
private static final Pattern VERSION_PATTERN = Pattern.compile(".*\\(.*MC.\\s*([a-zA-z0-9\\-\\.]+)\\s*\\)");
|
||||
private static final Pattern VERSION_PATTERN = Pattern.compile(".*\\(.*MC.\\s*([a-zA-z0-9\\-.]+).*");
|
||||
|
||||
/**
|
||||
* Version 1.14 - village and pillage update.
|
||||
|
@ -6,6 +6,7 @@ authors: [dmulloy2, comphenix]
|
||||
main: com.comphenix.protocol.ProtocolLib
|
||||
load: STARTUP
|
||||
database: false
|
||||
api-version: "1.13"
|
||||
|
||||
commands:
|
||||
protocol:
|
||||
|
Loading…
Reference in New Issue
Block a user