SortingHopper
This project is looking for maintainer.
Sorting Hopper
SortingHopper allows you create item filters based on hoppers. You can obtain the item by crafting or using "/sortinghopper give" command (only op).
The item sorter will only accept items specified in its rules, which can be accessed by right-clicking one. Hopper contents can be accessed by right clicking with an empty hand while holding Shift.
Sorting Hopper 2 vs Sorting Hopper Classic
Classic version is a very basic version of this plugin, like it was in it's first release.
It has no inventory menu, you just put items right into renamed hopper, it doesn't allow them to be flushed and accepts only similar items. It has been updated to 1.13, but misses many features added in later versions.
Item groups
Filtering groups are configured in itemgroups.yml
You can enable or switch group filtering by rightclicking an item in sorter's menu. It will only switch, if this item belongs to at least one group.
Recipe
New default recipe is Hopper+Comparator
Plugin now drops hopper and comparator separately, by default
Commands
/sortinghopper give give yourself a sorter
/sortinghopper save [name] Save rules to specified file, or leave blank for default (rules.dat)
/sortinghopper load [name] Load rules from specified file, or leave blank for default (rules.dat)
Source code
Credits
JustRayz - InventoryStringDeSerializer
Sothatsit - Enchant Glow snippet
Christian d'Heureuse - Base64Coder
ProgrammerDan - contributor
Rycochet - contributor
OnlineCop - contributor
killje - contributor
WOLFI3654 - contributor
Hi there, will you be updating for use with 1.17?
The plugin pretends to work. Unfortunately, it doesn't work, things go through it like in a normal hopper.
In reply to KokerGames:
What version of server are you using? If it's a development build, i can't guarantee it will work since some of the needed API's could be not properly implemented yet.
I've just checked, it is working perfectly fine on Spigot-a93cbb1-7a6c3c9 (MC: 1.16.4).
Omg, i'm lagging behind. Let me check it on 1.16.5...
Well, i've just checked and i can't spot any problems on Spigot-018b9a0-f3f3094 (MC: 1.16.5).
In reply to point_3d:
Paper Version 1.16.4 on Bukkit PL
In reply to KokerGames:
Look into your Paper configuration. Is disable-move-event set to true?
In reply to point_3d:
Yes i have set to true
In reply to KokerGames:
If the move event isn't firing, there is no way for any plugin to know when an item is being transfered. In order for this to work, you should set it to false.
In reply to point_3d:
before that I set it to TRUE and back but still nothing.
In reply to KokerGames:
Try updating to paper-1.16.5-437. I just tested and it works.
In reply to point_3d:
I try on CraftBukkit version 2991-Spigot-018b9a0-f3f3094 (MC: 1.16.5)
And doesn't work :/
In reply to KokerGames:
There must be something in your configuration preventing it from working :- (
Have you tried to make a default server in a new folder for testing?
In reply to point_3d:
Yes, I created a new server and nothing. Can I ask you to peek into FTP?
In reply to KokerGames:
Hello and sorry for late response. I don't think peeking into FTP would help, if you really have set up a new server. Solution is figuring out what exactly is different in your system from mine. Could you please answer:
1) What operating system are you using
2) What version of Java is it running
I need to reproduce the issue on my side in order to find the source of the problem.
hello can you help me, the plugin worked perfect but a few days ago I got this message, the hopper is still working but it doesn't allow crafting
29.11 00:05:18 [Server] ERROR Could not pass event ServerLoadEvent to SortingHopper2 v2.3
29.11 00:05:18 [Server] INFO java.lang.IllegalArgumentException: Cannot set already-set enchantment
29.11 00:05:18 [Server] INFO at org.bukkit.enchantments.Enchantment.registerEnchantment(Enchantment.java:332) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at me.sothatsit.usefulsnippets.EnchantGlow.getGlow(EnchantGlow.java:62) ~[?:?]
29.11 00:05:18 [Server] INFO at me.sothatsit.usefulsnippets.EnchantGlow.addGlow(EnchantGlow.java:67) ~[?:?]
29.11 00:05:18 [Server] INFO at point3d.sortinghopper2.Sorter.getItem(Sorter.java:61) ~[?:?]
29.11 00:05:18 [Server] INFO at point3d.sortinghopper2.ServerLoadListener.addRecipe(ServerLoadListener.java:48) ~[?:?]
29.11 00:05:18 [Server] INFO at point3d.sortinghopper2.ServerLoadListener.onServerLoad(ServerLoadListener.java:37) ~[?:?]
29.11 00:05:18 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor376.execute(Unknown Source) ~[?:?]
29.11 00:05:18 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at net.minecraft.server.v1_16_R2.MinecraftServer.loadWorld(MinecraftServer.java:469) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at net.minecraft.server.v1_16_R2.DedicatedServer.init(DedicatedServer.java:237) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:939) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.3.jar:git-Paper-253]
29.11 00:05:18 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
Hello, If I do /reload, the items in my sorter hopper disapear. Is it normal ?
In reply to Nornau:
I will look into that next time an update is needed. But the reload command hasn't been listed as supported, it's just i used it at some point during developement. When i made some changes, i probably forgot to update it.
In reply to Nornau:
Wait, are you talking about '/sortinghopper reload' or server '/reload'?
'
In reply to Nornau:
You shouldn't use server '/reload' command. Use '/restart' instead.
https://matthewmiller.dev/blog/problem-with-reload/
https://www.spigotmc.org/threads/why-is-using-reload-a-bad-thing.414375/