Compare commits

...
5 Commits
12 changed files with 32 additions and 16 deletions

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
**/.project
**/.classpath
**/.idea
**/.iml
**.iml
**/target
**/bin
**/out
+1 -1
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvapi</artifactId>
+1 -1
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvassembly</artifactId>
+2 -2
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvcommon</artifactId>
@@ -31,7 +31,7 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvapi</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
+1 -1
View File
@@ -20,7 +20,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvinternal</artifactId>
+2 -2
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvinternal</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvadapter1_13_R2</artifactId>
@@ -37,7 +37,7 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvcommon</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</dependency>
</dependencies>
+2 -2
View File
@@ -22,7 +22,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvinternal</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvadapter1_14_R1</artifactId>
@@ -38,7 +38,7 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvcommon</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</dependency>
</dependencies>
@@ -132,7 +132,22 @@ public class PlayerDataManager implements IPlayerDataManager {
}, nmsPlayer, nmsPlayer.nextContainerCounter()) {
@Override
public Containers<?> getType() {
return inventory instanceof SpecialEnderChest ? Containers.GENERIC_9X3 : Containers.GENERIC_9X5;
switch (inventory.getBukkitInventory().getSize()) {
case 9:
return Containers.GENERIC_9X1;
case 18:
return Containers.GENERIC_9X2;
case 27:
default:
return Containers.GENERIC_9X3;
case 36:
return Containers.GENERIC_9X4;
case 41: // PLAYER
case 45:
return Containers.GENERIC_9X5;
case 54:
return Containers.GENERIC_9X6;
}
}
};
+2 -2
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvinternal</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvadapter1_8_R3</artifactId>
@@ -37,7 +37,7 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvcommon</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</dependency>
</dependencies>
+2 -2
View File
@@ -21,7 +21,7 @@
<parent>
<groupId>com.lishid</groupId>
<artifactId>openinvparent</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</parent>
<artifactId>openinvplugincore</artifactId>
@@ -31,7 +31,7 @@
<dependency>
<groupId>com.lishid</groupId>
<artifactId>openinvcommon</artifactId>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
+1
View File
@@ -5,6 +5,7 @@ author: lishid
authors: [Jikoo, ShadowRanger]
description: >
This plugin allows you to open a player's inventory as a chest and interact with it in real time.
api-version: "1.13"
permissions:
OpenInv.any.default:
+1 -1
View File
@@ -21,7 +21,7 @@
<artifactId>openinvparent</artifactId>
<name>OpenInvParent</name>
<url>http://dev.bukkit.org/bukkit-plugins/openinv/</url>
<version>4.0.6</version>
<version>4.0.8-SNAPSHOT</version>
<packaging>pom</packaging>