Compare commits

...
10 Commits
Author SHA1 Message Date
Jikoo c6d36cc9cf Bump version to 5.1.2 for release 2024-09-11 11:49:58 -04:00
Jikoo 54f078724f also quits
Boy, and I thought having to make the first commit was embarrassing, wait till people see that I realized that was missing and didn't think about the counterpart. At least I did think about it though, I wasn't even testing on 1.20 where it would break things.
2024-09-11 11:42:04 -04:00
Jikoo 847f22f63f Fix containers not being notified when owner joins 2024-09-11 11:33:30 -04:00
dependabot[bot] f121c113f0 Bump org.apache.maven.plugins:maven-dependency-plugin (#243) 2024-09-01 17:31:41 +00:00
dependabot[bot] 8d60cd0726 Bump com.google.errorprone:error_prone_core from 2.29.2 to 2.31.0 (#244) 2024-09-01 17:31:34 +00:00
Jikoo 7b504971b1 Use Java 21 and Maven 3.9.8 for JitPack
Closes #242
2024-08-12 00:22:53 -04:00
Jikoo c1a20a4e24 Bump version to 5.1.2-SNAPSHOT for development 2024-08-10 13:33:43 -04:00
Jikoo 5d75640cee Bump version to 5.1.1 for release 2024-08-10 13:33:00 -04:00
Jikoo cace6f6726 Update to 1.21.1
Looks like Spigot builds 1.21.1 for 1.20. Mildly annoying.
2024-08-10 13:32:42 -04:00
Jikoo 1967f4ebb1 Bump version to 5.1.1-SNAPSHOT for development 2024-08-10 12:54:27 -04:00
11 changed files with 28 additions and 17 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<relativePath>../../pom.xml</relativePath>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvtogglepersist</artifactId>
+1 -1
View File
@@ -21,7 +21,7 @@
<parent>
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvapi</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvcommon</artifactId>
+1 -1
View File
@@ -23,7 +23,7 @@
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<relativePath>../../pom.xml</relativePath>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvadapter1_20_R3</artifactId>
+1 -1
View File
@@ -23,7 +23,7 @@
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<relativePath>../../pom.xml</relativePath>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvadapter1_20_R4</artifactId>
+2 -2
View File
@@ -23,7 +23,7 @@
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<relativePath>../../pom.xml</relativePath>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvadapter1_21_R1</artifactId>
@@ -32,7 +32,7 @@
<properties>
<maven.compiler.system>21</maven.compiler.system>
<maven.compiler.release>21</maven.compiler.release>
<spigot.version>1.21-R0.1-SNAPSHOT</spigot.version>
<spigot.version>1.21.1-R0.1-SNAPSHOT</spigot.version>
</properties>
<dependencies>
+4
View File
@@ -0,0 +1,4 @@
before_install:
- sdk install java 21.0.4-tem
- sdk use java 21.0.4-tem
- mvn wrapper:wrapper -Dmaven=3.9.8
+4 -4
View File
@@ -21,7 +21,7 @@
<parent>
<artifactId>openinvparent</artifactId>
<groupId>com.lishid</groupId>
<version>5.1.0</version>
<version>5.1.2</version>
</parent>
<artifactId>openinvplugin</artifactId>
@@ -47,19 +47,19 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvadapter1_21_R1</artifactId>
<version>5.1.0</version>
<version>5.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvadapter1_20_R4</artifactId>
<version>5.1.0</version>
<version>5.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvadapter1_20_R3</artifactId>
<version>5.1.0</version>
<version>5.1.2</version>
<scope>compile</scope>
</dependency>
<dependency>
@@ -40,7 +40,8 @@ public class InternalAccessor {
public InternalAccessor(@NotNull Logger logger, @NotNull LanguageManager lang) {
try {
if (BukkitVersions.MINECRAFT.equals(Version.of(1, 21))) {
if (BukkitVersions.MINECRAFT.equals(Version.of(1, 21, 1))
|| BukkitVersions.MINECRAFT.equals(Version.of(1, 21))) {
internal = new com.lishid.openinv.internal.v1_21_R1.InternalAccessor(logger, lang);
} else if (BukkitVersions.MINECRAFT.equals(Version.of(1, 20, 4))) {
internal = new com.lishid.openinv.internal.v1_20_R3.InternalAccessor(logger, lang);
@@ -111,13 +111,19 @@ public class InventoryManager implements Listener {
@Keep
@EventHandler(priority = EventPriority.LOWEST)
private void onPlayerJoin(@NotNull PlayerJoinEvent event) {
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> checkViewerAccess(inventory, true));
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> {
inventory.setPlayerOnline(event.getPlayer());
checkViewerAccess(inventory, true);
});
}
@Keep
@EventHandler(priority = EventPriority.MONITOR)
private void onPlayerQuit(@NotNull PlayerQuitEvent event) {
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> checkViewerAccess(inventory, false));
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> {
inventory.setPlayerOffline();
checkViewerAccess(inventory, false);
});
}
@Keep
+3 -3
View File
@@ -24,7 +24,7 @@
<modules>
<module>common</module>
</modules>
<version>5.1.0</version>
<version>5.1.2</version>
<packaging>pom</packaging>
@@ -117,7 +117,7 @@
-->
<artifactId>maven-dependency-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>3.7.1</version>
<version>3.8.0</version>
</plugin>
<plugin>
@@ -152,7 +152,7 @@
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.29.2</version>
<version>2.31.0</version>
</path>
</annotationProcessorPaths>
<compilerArgs>