Giter VIP home page Giter VIP logo

customenderchest's People

Contributors

brunyman avatar seyfahni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

customenderchest's Issues

Empty Enderchet doesn't update in mysql

Hy,
i use this plugin to Syn the enderchest across 3 minecraft 1.15.2 instanzes. All 3 have access to the database and synchronize the items between the Server. With one minor exxeption. If i empty the enderchest and change the server the enderchest is not synchronize and it contains the items i removed. This also happens with individual slots.

Any idea who i can fix this, or is it a bug in the plugin?

Best regards!

Add option to migrate from default enderchest

Heyo, I have just installed this plugin on a SMP server, and when I restarted, I noticed that everyone's inventory was completely empty!

I was wondering if there was an existing way to migrate the standard enderchest inventory of everyone into this plugin's database (or flat file, that's what I'm using).

If not, I think that would be a very nice option to add, maybe a config option, if a player opens an empty EC (or maybe opens their EC for the first time since the plugin was installed would be better?) then it can check the contents of the standard EC, and if they will fit in their assigned EC size, copies the data into the plugin's database.

Any info on how to migrate the default enderchests into this plugin would be great as well.

Thanks!

[Bug] Can't open Enderchest in Minecraft 1.14.3 due to sound error

When I open enderchest, I've this error in console:

[10:28:19] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to CustomEnderChest v1.11.1 java.lang.IllegalArgumentException: No enum constant org.bukkit.Sound.BLOCK_ENDERCHEST_OPEN at java.lang.Enum.valueOf(Enum.java:238) ~[?:1.8.0_181] at org.bukkit.Sound.valueOf(Sound.java:11) ~[patched_1.14.3.jar:git-Paper-111] at net.craftersland.customenderchest.SoundHandler.sendEnderchestOpenSound(SoundHandler.java:49) ~[?:?] at net.craftersland.customenderchest.utils.EnderChestUtils.openMenu(EnderChestUtils.java:130) ~[?:?] at net.craftersland.customenderchest.PlayerHandler.onPlayerInteract(PlayerHandler.java:76) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor21.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.14.3.jar:git-Paper-111] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.14.3.jar:git-Paper-111] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.14.3.jar:git-Paper-111] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:536) ~[patched_1.14.3.jar:git-Paper-111] at org.bukkit.craftbukkit.v1_14_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:445) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.PlayerInteractManager.a(PlayerInteractManager.java:441) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1392) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:5) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:18) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:127) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:105) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:1002) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:995) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:115) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:979) ~[patched_1.14.3.jar:git-Paper-111] at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:912) ~[patched_1.14.3.jar:git-Paper-111] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

Please fix it! Thanks!

Import from FLATFILE Error

ProtocolLib Ver : 4.5.1
MYSQL : Yes
Custom EnderChest 1.12.1
EDIT : Seem not happening with : modded-NBT-data-support: false

08:23:04: java.lang.IllegalArgumentException: Item cannot be null 08:23:04: at org.apache.commons.lang.Validate.noNullElements(Validate.java:364) 08:23:04: at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventory.addItem(CraftInventory.java:265) 08:23:04: at net.craftersland.customenderchest.storage.MysqlStorage.decodeInventory(MysqlStorage.java:303) 08:23:04: at net.craftersland.customenderchest.storage.MysqlStorage.loadEnderChest(MysqlStorage.java:264) 08:23:04: at net.craftersland.customenderchest.commands.FileToMysqlCmd$1.run(FileToMysqlCmd.java:76) 08:23:04: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) 08:23:04: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 08:23:04: at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:23) 08:23:04: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 08:23:04: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 08:23:04: at java.lang.Thread.run(Thread.java:748) 08:23:04: [CustomEnderChest] Failed to decode inventory for fightmaxime! Error: Length of Base64 encoded input string is not a multiple of 4. 08:23:04: java.lang.IllegalArgumentException: Length of Base64 encoded input string is not a multiple of 4. 08:23:04: at org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder.decode(Base64Coder.java:267) 08:23:04: at org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder.decodeLines(Base64Coder.java:218) 08:23:04: at net.craftersland.customenderchest.utils.EncodingUtil.fromBase64(EncodingUtil.java:37) 08:23:04: at net.craftersland.customenderchest.storage.MysqlStorage.decodeInventory(MysqlStorage.java:311) 08:23:04: at net.craftersland.customenderchest.storage.MysqlStorage.loadEnderChest(MysqlStorage.java:264) 08:23:04: at net.craftersland.customenderchest.commands.FileToMysqlCmd$1.run(FileToMysqlCmd.java:76) 08:23:04: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) 08:23:04: at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 08:23:04: at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:23) 08:23:04: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 08:23:04: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 08:23:04: at java.lang.Thread.run(Thread.java:748)

DUPLICATE ITEM

Hey, Since last version of plugin CustomEnderchest, I have a problem of duplication.
If you deposit your item in your enderchest, you disconnect then reconnect, you have 2 same item.

It's possible to adjust this problem speedily ?

Plugin version: 1.12.2
Instance: PaperSpigot 1.15.2
Database in MYSQL (1262 playerdata)
modded-NBT-data-support: false

More Capacity

Do you think it is possible to increase the enderchest capacity to more than 6 lines?
I would have liked to further expand the player storage area. Thank you for your information!

Create custom InventoryHolder class

Hello, I am the author of ChestSort (www.chestsort.de). I was asked to add support for your CustomEnderChest plugin here: mfnalex/ChestSort#80

As it seems, you use inventories with the player as holder. In ChestSort, I check if an inventory is sortable by checking different criteria. For example, if an inventory's holder is a player, but the inventory does not equal Player#getInventory(), it's most likely some GUI that should NOT be sorted.

So, I currently have no way to check whether an inventory belongs to a CustomEnderChest.

Suggestion: You create a subclass for InventoryHolder, e.g. called CustomEnderChestInventoryHolder, and use that as a holder instead of the player. That way I could just check if Inventory#getHolder#getClass#getName equals net.craftersland.customenderchests.CustomEnderChestInventoryHolder and it would work fine.

I would create a pull request myself but you don't use maven, so I would either convert the project myself or wait until you implement the custom class.

It would be nice if you could think about adding this :)

can't open custom enderchest on 1.14.2 spigot

get an internal error occurred error when trying to open the enderchest with commands. doesn't work to right-click the enderchest either.

running ver 1.11.0 on a 1.14.2 snapshot spigot version

Enderchest deletion

Hello, I am using the Custom EnderChest 1.13.1 plugin on a Bungeecord server to synchronize the enderchest between two servers. I am also using the MySQL Player Data Bridge 4.8.4 plugin.

Several times, my players have discovered that their Enderchest has been completely deleted, which is a very big problem.

Dupe

using mysql storage there is a dupe when a player logs in and the files did not have time to sync, the join delay is not working.

This is on Paper 585 - 1.16.5

Dupe bug

Hello, I have a very important dupe bug
Remove an item from your enderchest, disconnect then reconnect and congratulation, you are now a h@cker. The item is still in your inventory but also back in your enderchest

Server: PaperSpigot 1.12.2 (latest build)
CustomEC: Version 1.12.2
PlayedData: Only 770 yet
typeOfDatabase: FlatFile
modded-NBT-data-support: true

Thank you for your help

Error and Wishes

Wishes
Would it be possible to add a permission to take items out of the EC for other items? Once a permission to open the EC of others and once a permission to take additional items from other EC's.

And would it be possible to open the end check like MPDB without the UUID when the user is offline?

Error

[22:2:2:19] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'customenderchest' in plugin CustomEnderChest v1.13.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:794) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.PlayerConnection.handleCommand(PlayerConnection.java:1912) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1723) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1136) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1129) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1090) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1004) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NullPointerException
at org.bukkit.craftbukkit.v1_16_R1.inventory.CraftContainer.getNotchInventoryType(CraftContainer.java:125) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at org.bukkit.craftbukkit.v1_16_R1.entity.CraftHumanEntity.openInventory(CraftHumanEntity.java:314) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
at net.craftersland.customenderchest.CommandHandler.onCommand(CommandHandler.java:135) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[PaperSpigot-1.16.1.jar:git-Paper-115]
... 18 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.