Skip to content

Repository files navigation

About

OpenInv is a Bukkit plugin which allows users to open and edit anyone's inventory or ender chest - online or not!

Features

  • OpenInv: Open anyone's inventory, even if they're offline.
    • Read-only mode! No edits allowed! Don't grant the permission OpenInv.editinv
    • Cross-world support! Don't grant OpenInv.crossworld
    • No self-opening! Don't grant OpenInv.openself
    • Drop items as the player! Place items in the unused slots to the right of the armor to drop them
  • OpenEnder: Open anyone's ender chest, even if they're offline.
    • Read-only mode! No edits allowed! Don't grant OpenInv.editender
    • Cross-world support! Don't grant OpenInv.crossworld
    • No opening others! Don't grant OpenInv.openenderall
  • SilentContainer: Open containers without displaying an animation or making sound.
  • AnyContainer: Open containers, even if blocked by ocelots or blocks.

Commands

See the wiki.

Permissions

NodeDescription
OpenInv.*Gives permission to use all of OpenInv.
OpenInv.openinvRequired to use /openinv.
OpenInv.openselfRequired to open own inventory.
OpenInv.editinvRequired to make changes to open inventories.
OpenInv.openonlineAllows users to open online players' inventories. For compatibility reasons this is granted by the nodes OpenInv.openinv and OpenInv.openender.
OpenInv.openofflineAllows users to open offline players' inventories. For compatibility reasons this is granted by the nodes OpenInv.openinv and OpenInv.openender.
OpenInv.openenderRequired to use /openender.
OpenInv.editenderRequired to make changes to open ender chests.
OpenInv.openenderallAllows users to open others' ender chests. Without it, users can only open their own.
OpenInv.exemptPrevents the player's inventory being opened by others.
OpenInv.overrideAllows bypassing of the exempt permission.
OpenInv.crossworldAllows cross-world usage of /openinv and /openender.
OpenInv.searchRequired to use /searchinv and /searchender.
OpenInv.searchenchantRequired to use /searchenchant.
OpenInv.anychestRequired to use /anychest.
OpenInv.any.defaultCause AnyContainer to be enabled by default.
OpenInv.silentRequired to use /silentcontainer.
OpenInv.silent.defaultCause SilentContainer to be enabled by default.
OpenInv.spectateAllows users in spectate gamemode to edit inventories.

For Developers

As a Dependency

The OpenInv API is available via JitPack.

 <repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
 <dependencies>
<dependency>
<groupId>com.github.jikoo.OpenInv</groupId>
<artifactId>openinvapi</artifactId>
<version>${openinv.version}</version>
</dependency>
</dependencies>

Compilation

To compile, the relevant Spigot jars must be installed in the local repository. As OpenInv is compiled against Mojang's mappings, you must run BuildTools with the --remapped argument:
java -jar BuildTools.jar --remapped --rev $serverVersion
$serverVersion is the version of the server, i.e. 1.18.1

To compile for a single version, specify the module you are targeting:
mvn -pl $moduleName -am clean install
$moduleName is the name of the module, i.e. internal/v1_18_R1.

To compile for a set of versions, use a profile. Select a profile using the -P argument:
mvn clean package -am -P all
The only provided profile is all. The final file is target/OpenInv.jar
For more information, check out the official Maven guide.

About

Open anyone's inventory as a chest, real-time!

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages