🎴 Update to 1.20.4
✏️ Added :
- The
/rename-home-of
command that allows the user to rename the home of another player (only if the player running the command is OP level 4 and if theallowByPass
option is set totrue
) - The
/set-home-of
command that allows the user to create a home for another player (only if the player running the command is OP level 4 and if theallowByPass
option is set totrue
)
🚧 Fixed :
- The
/home-trust
command would not write the file when executed - Some translations were missing/incorrect
✏️ Added :
- The
/rename-home
command, that allows you to rename a home
🫧 Changed :
- Use CyanLib 0.3.5 (which allows me to remove the config commands from this mod, as they are now handled in the CyanLib)
- (Only uses the last version, it's just to separate the features of each version) Use CyanLib 0.4.1 (which adds screen for the configuration on the client, only in solo for now)
❌ Removed :
- The
allowHomesOf
option (you can still use thehome-of
command and the trust system, its just the option that was removed)
✏️ Added :
- Folders created by this mod are now removed if they are empty
- Translations for the CyanLib rules
🫧 Changed :
- The commands that contains more than 1 word are now separated by a "-" ("/sethome" -> "/set-home")
- Use CyanLib 0.3.4
✏️ Added :
- The command '/cyan removePropertiesFiles' that allows you to transfer properties files to json files and remove the properties files once this is done (the properties are transfered to json at the server start, but this is also made here just in case)
🚧 Fixed :
- FileInputStream not being closed, resulting in some errors when trying to delete the file
- A trusted player could remove another player's home
- Homes in solo where all saved at the same place, they are now in separate folders (same name as the world they are created for)
- Homes and Trust systems now use thread-safe classes (
ConcurrentHashMap
andCollections.synchronizedList
) to prevent any problem with concurrent modifications (basically 2 people editing the homes (which then writes in the files) at the same time)
🫧 Changed :
- Use CyanLib 0.3.1
🚧 Fixed :
- When deserializing the json file, I was using 2 map or arrays instead of using a mutable type for the deserialization, which may have caused some really small performance issues with a lot of players
🧪 Dev :
- Other internal changes to make the code smaller and more readable
Added :
- The files are now handeled with Gson instead of Properties
- The homes and trust files that were already present in your folders (.properties files) will be transfered automatically to .json files, but won't be removed. To do so, you will have to delete them manually (by using a command from this mod or simply by removing them by hand in your folder)
Fixed :
- Some options were misleading (minOpLevelExeOPHomeOf, minOpLevelExeHomeOf, ...), so I removed them and added only one instead (minOpLevelExeMisc). This option is basically a bypass to for players with a certain OP level, like using the homeOf commands even if the player does not have you in their trust list
- When typing the homeOf commands, the homes of the player you were trying to reach were not suggested
New config system to match changes made in the Cyan mod. 1.19-1.19.2 and1.19.3 will air in the week