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
-
View User Profile
-
Send Message
Posted Oct 27, 2020In reply to point_3d:
Yeah I was talking about /reload, I do it because i don't like waiting with my friends for the restart but if it's normal it's ok :)
Your plugin is awesome by the way ;)
-
View User Profile
-
Send Message
Posted Sep 19, 2020Why this plugin is not in spigot?
It would have many more downloads!
10/10 I loved this plugin
-
View User Profile
-
Send Message
Posted Sep 14, 2020its done. My dev fount the iusses and fixed it. Thx dude
-
View User Profile
-
Send Message
Posted Sep 16, 2020In reply to Forge_User_13443983:
Don't forget to make a pull-request on GitHub if you fix something in the code.
-
View User Profile
-
Send Message
Posted Sep 19, 2020Reply Now i restartet my server and all sortinghoppers are normal hoppers again. This happend the 3 time now. Why is this. My players are angry now beacuse the have big stores with 1000 of hoppers and they have to repair it the 3 time
-
View User Profile
-
Send Message
Posted Sep 9, 2020in 1.16.2 the users cant craft it. I cant craft it with op but i can use the command. BUt in the config is everything correct, but the receipe is not working
-
View User Profile
-
Send Message
Posted Sep 10, 2020In reply to Forge_User_13443983:
I cannot confirm that.
The default recipe now is hopper+comparator.
Can you send me your config?
-
View User Profile
-
Send Message
Posted Dec 16, 2019Hi !
This is not even working on 1.15, are you gonna fix it ? This plugin is really usefull and your job is great ! Thanks for your time.
-
View User Profile
-
Send Message
Posted Jul 25, 2019Working for 1.14.4?
-
View User Profile
-
Send Message
Posted Jun 5, 2019Are there any plans to re-build this for use with 1.14.2?
-
View User Profile
-
Send Message
Posted Jun 6, 2019In reply to kvgeorge1:
Only if the current build doesn't work. Does it? Sorry, i haven't checked yet.
-
View User Profile
-
Send Message
Posted Jun 8, 2019In reply to point_3d:
So, for some reason, when we went from 1.14.1 to 1.14.2, the plugin lost all the definitions for the sorting hoppers. Though they were still named "Item Sorter", breaking them caused an NPE for the block at the location and we got back only a hopper named "Item Sorter". All the previous filtering on non-broken Item Storing hoppers as also gone.
Re-compiling helped, but so do re-installing the 1.14.1 jar back overtop the existing 1.14.1 jar.
Strange.
-
View User Profile
-
Send Message
Posted Jun 9, 2019This just happened to me as well, but it didn't happen because of 1.14.2. I've been updating my Paper build every 1-3 days, and Paper updated to 1.14.2 on May 28, so I've been on 1.14.2 for well over a week now. This just happened to me today (the definitions for all my Sorting Hoppers disappearing). Also, I last updated Paper 3 days ago (build #67), and everything was fine until just mere hours ago.
-
View User Profile
-
Send Message
Posted Jun 12, 2019In reply to kvgeorge1:
in 1.14.2 the sorting hoppers seem to lose their sorting function every now and then
-
View User Profile
-
Send Message
Posted May 26, 2019Hi,
a friend recommented this plugin for my server and I like to try it.
My server:
[15:21:02] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-03bd4b0-c45c0a9 (MC: 1.14.1) (Implementing API version 1.14.1-R0.1-SNAPSHOT)
On server start or reload I get this message:
[15:19:04] [Server thread/ERROR]: Could not pass event ServerLoadEvent to SortingHopper2 v2.3
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:520) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:505) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.reload(CraftServer.java:806) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.Bukkit.reload(Bukkit.java:576) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:707) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchServerCommand(CraftServer.java:692) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at net.minecraft.server.v1_14_R1.DedicatedServer.handleCommandQueue(DedicatedServer.java:433) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:397) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:956) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:801) [spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.IllegalArgumentException: Cannot set already-set enchantment
at org.bukkit.enchantments.Enchantment.registerEnchantment(Enchantment.java:327) ~[spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
at me.sothatsit.usefulsnippets.EnchantGlow.getGlow(EnchantGlow.java:62) ~[?:?]
at me.sothatsit.usefulsnippets.EnchantGlow.addGlow(EnchantGlow.java:67) ~[?:?]
at point3d.sortinghopper2.Sorter.getItem(Sorter.java:59) ~[?:?]
at point3d.sortinghopper2.ServerLoadListener.addRecipe(ServerLoadListener.java:66) ~[?:?]
at point3d.sortinghopper2.ServerLoadListener.onServerLoad(ServerLoadListener.java:37) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot-1.14.1.jar:git-Spigot-03bd4b0-c45c0a9]
... 14 more
can someone help?
thanks a lot
-
View User Profile
-
Send Message
Posted May 27, 2019In reply to croobit:
Hello.
Please, don't use /reload command https://bukkit.org/threads/is-reload-that-bad.129514/
I recompiled and tested SortingHopper2 for 1.14.1 / a8f78b0d43c74598a199d6d80cda413f. The file is under moderator review.
Keep in mind that it is still a develpement version of Spigot, things may break (or not) on different builds.
-
View User Profile
-
Send Message
Posted May 28, 2019In reply to point_3d:
thanks for the response and the SortingHopper2 plugin, a lot of player like it already very much. Your work is much appreciated.
We had to upgrade the server to 1.14.2 this morning, let's see how it works with SortingHopper2
Greetings
-
View User Profile
-
Send Message
Posted May 20, 2019Hi mate,
thanks for creating this plugin! This looks very promising :)
Maybe you can help me with an error on loading the project.
What I've done so far is: I loaded your project in IntelliJ, added a maven pom.xml to it, moved all the sources under a new "main/java" folder structure, as well as added a resource folder under main, where the plugin.yml now resides. Building the life cycle "package" ran successfully. The resulting snapshot-jar is about 39k.
So when I start a MC server there's following NPE. I thought I wouldn't need to define any rules beforehand? Or what did I do wrong?
[15:22:01 ERROR]: Could not load 'plugins\sortinghopper2-1.0-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:332) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:252) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.loadPlugins(CraftServer.java:325) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.reload(CraftServer.java:807) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.Bukkit.reload(Bukkit.java:604) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:28) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:704) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1621) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1461) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:9) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:896) [spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831) [spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729) [spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NullPointerException
at point3d.sortinghopper2.Rules.<init>(Rules.java:22) ~[?:?]
at point3d.sortinghopper2.SortingHopper.<init>(SortingHopper.java:18) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:?]
at java.lang.Class.newInstance(Unknown Source) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:72) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.13.2.jar:git-Spigot-1a3504a-dfa7583]
... 21 more
-
View User Profile
-
Send Message
Posted May 22, 2019In reply to CreativeWarlock:
Hello there.
Have you included config.yml and itemgroups.yml in your jar file?
-
View User Profile
-
Send Message
Posted May 22, 2019In reply to CreativeWarlock:
Oops. Seems like rules object was being created before the config was loaded. My latest commit should fix that.