flokol120 / Spigot-Item-Chest-Sorter

A Spigot/Paper minecraft plugin to sort your messy items into separate chests | 💯% written in Kotlin
GNU General Public License v3.0
5 stars 6 forks source link

Set misconfiguration #55

Closed tinyalpaca closed 9 months ago

tinyalpaca commented 9 months ago

Hello, I installed your plugins into my Minecraft paper server. However, the command can't be used. When I type in /ics add sender, it prompts out the message "Usage: /ics [add|select|remove] [sender|receiver]".

flokol120 commented 9 months ago

@tinyalpaca, Just pulled a 1.20.1 Server, yet I can't reproduce your issue. Please use the provided Bug-Report Template in order for me to be able to help you.

tinyalpaca commented 9 months ago

Hi @flokol120, I tried again with a fresh file download. It is indeed working.

Then I try to edit the config.yml to add more sets. I attach what i edited as below. Also, do i need to repack or such things? Normally I just open the jar file with winrar and just open the file with notepad, edit and save. With that said, I edited the config.yml with that method. I only touch the "set:" part. Can you check it for me? Also, I tried the example 1.1 by just removing the "#" as you mentioned but it also not working.

I also copy and paste the config.yml to notepad as i cant upload the .yaml file here

Maybe can you run this config.yml and see if it is successful.

I'm playing at a Paper 1.20.1 server

Minecraft Version: 1.20.1 Server Flavor:Paper Plugin Version 1.14.4 image

plugin.txt

flokol120 commented 9 months ago

@tinyalpaca No, you do not want to edit the plugin.yml within the jar file. You should not edit anything within jar files unless you know exactly what you are doing.

The correct config file to edit is Item-Chest-Sorter/plugin.yml within the plugins folder. In the future, please provide any text documents within the backtick notation of (using three ``` to start a code-block and again three to end it). As far as I can tell from your screenshot, you are missing a line comment in line 84. That means you have to add a # at the beginning of this line.

If this does not fix the error, please provide your complete config.yml within a code block as outlined above. Hope that helps!

tinyalpaca commented 9 months ago

I managed to configure the Item-Chest-Sorter/plugin.yml it was working. Thanks for your guide!

1) However, can you give me some guide on how to include similar items such as oak_sign, spruce_sign, birch_sign without listing all of it. Can we include like what you do on wool (.*_wool). Is it possible??

2) Then is there any limits of how much item I can include in one set?

flokol120 commented 9 months ago

Good to hear! To answer your questions:

  1. Yes, that's possible. You should be able to achieve this by using the regex set (.*_sign). Maybe take a look at https://regex101.com/. It can be used to craft regex that can be used in the sets. (https://regex101.com/r/jyfyis/1 for your specific example of signs)
  2. Technically? Yes. What you be able to reach the limit? I don't think so 😅
flokol120 commented 9 months ago

Feel free to reopen the issue if something is still unclear.