Skip to content

Commit

Permalink
Bump version to 1.12.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kernitus committed Apr 18, 2023
1 parent 0337237 commit 925daec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>kernitus.plugin.OldCombatMechanics</groupId>
<artifactId>OldCombatMechanics</artifactId>
<version>1.12.0BETA</version>
<version>1.12.0</version>
<name>OldCombatMechanics</name>
<description>Implements pre-1.9 combat-related mechanics</description>
<url>https://github.com/kernitus/BukkitOldCombatMechanics</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ private static int[] getVersionNumbers(String ver) {
// Group 5 = beta_version

//This parses it to MAJOR.MINOR.PATCH.beta_version
//MAJOR & MINOR required, anything else is set to zero if omitted
//MAJOR & MINOR required, anything else is set to maximum value if omitted
// This is necessary otherwise somebody with a beta version will not see update to release version
return new int[]{
Integer.parseInt(m.group(1)),
Integer.parseInt(m.group(2)),
m.group(3).isEmpty() ? 0 : Integer.parseInt(m.group(3)),
m.group(4) == null ? 0 : (m.group(5).isEmpty() ? 1 : Integer.parseInt(m.group(5)))
m.group(3).isEmpty() ? Integer.MAX_VALUE : Integer.parseInt(m.group(3)),
m.group(4) == null ? Integer.MAX_VALUE : (m.group(5).isEmpty() ? 1 : Integer.parseInt(m.group(5)))
};
}
}
4 changes: 0 additions & 4 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ permissions:
OldCombatMechanics.toggle: true
OldCombatMechanics.enable: true
OldCombatMechanics.disable: true
OldCombatMechanics.test: true
OldCombatMechanics.nolapis: true
OldCombatMechanics.swordblock: true
OldCombatMechanics.commands:
Expand All @@ -46,9 +45,6 @@ permissions:
OldCombatMechanics.disable:
description: Allows disabling attack cooldown for server or world
default: op
OldCombatMechanics.test:
description: Allows running in-game automated damage tests
default: op
OldCombatMechanics.nolapis:
description: Allows lapis to be auto-placed in enchantment tables
default: op
Expand Down

0 comments on commit 925daec

Please sign in to comment.