-
-
Notifications
You must be signed in to change notification settings - Fork 190
Added more possibilities to modify warp categories #2715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
src/main/java/com/bgsoftware/superiorskyblock/config/SettingsContainer.java
Show resolved
Hide resolved
...va/com/bgsoftware/superiorskyblock/core/menu/button/impl/WarpCategoryManageRenameButton.java
Outdated
Show resolved
Hide resolved
...va/com/bgsoftware/superiorskyblock/core/menu/button/impl/WarpCategoryManageRenameButton.java
Outdated
Show resolved
Hide resolved
src/main/java/com/bgsoftware/superiorskyblock/island/signs/IslandSigns.java
Outdated
Show resolved
Hide resolved
src/main/java/com/bgsoftware/superiorskyblock/core/messages/Message.java
Outdated
Show resolved
Hide resolved
src/main/java/com/bgsoftware/superiorskyblock/core/messages/Message.java
Outdated
Show resolved
Hide resolved
src/main/java/com/bgsoftware/superiorskyblock/island/warp/SWarpCategory.java
Show resolved
Hide resolved
OmerBenGera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There can be warps and warp categories with invalid names in the DB, as you could create warps and warp categories with spaces in them
You should check that when loading the warps and warp categories from DB and fix their names - if there are two categories or warps with the same name, then just combine them.
How do you propose to do it? In which file? And in what sense to combine them? |
https://github.com/BG-Software-LLC/SuperiorSkyblock2/blob/dev/src/main/java/com/bgsoftware/superiorskyblock/core/database/serialization/IslandsDeserializer.java#L239 |
Hmm, okay, but how do I combine them? I see that when the name is for example too long, it's just shortened. |
|
@OmerBenGera what do you think?
|
src/main/java/com/bgsoftware/superiorskyblock/island/IslandNames.java
Outdated
Show resolved
Hide resolved
src/main/java/com/bgsoftware/superiorskyblock/island/IslandNames.java
Outdated
Show resolved
Hide resolved
|
OmerBenGera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check for whitespaces, \n, \r, \t, etc.
@OmerBenGera and you can tell me what to do with it because I have no idea :/ |
Split spaces and take the first word. If it's a category and it already exists, you can just add all the warps to the existing category. If that's a warp that already exists, just earn in console and do not load that warp |
@OmerBenGera can you help me with this? I've been trying to do something, but I have no idea how to use this file. I wanted to do something like this, but I can't get the island because they're loaded at the very end in the DataManager. Builder has get... methods, but no getWarps, so I have no idea how to check it. |
I don't understand what you mean :/ |
|
I came up with something like this, it works, but I don't know if I should do it this way |
|
|
^ @OmerBenGera like this? I had the following warps, created on the latest dev build: And after uploading my version, I had one 'Default' category (there are two in the screenshot, but I created 'test' later to show that there is only one 'Default'), with warp 'default1' and 'default2' in it: And while loading the server, I got these warnings (one by double default2 warp, the second by double Default category): |
|
@OmerBenGera so, is it okay or does something need to be changed? |
|
@OmerBenGera when will you be able to see it, because I have planned big changes in the warps and visitors signs, because they have different issues and the visitor signs are very poorly made, they lack various functions, but I can't continue without these changes and I don't want to do everything in one project 😓😓😓 |










Changelog
/is setwarpcommand./is warp <warp-name> <warp-category>,/is delwarp <warp-name>,/is setwarp ... <warp-category>and/is admin delwarp <warp-name>commands - if the name contained spaces, these were two different command arguments, so the command was not executed.WARP_CATEGORY_NAME_TOO_LONGandWARP_NAME_TOO_LONGmessages because they did not contain &7 after the prefix.