# New Features, Commands, Permissions, and Performance Improvements
## New Features and Commands:
### New Commands
- **/tpro**: Random teleport in the Overworld.
- **/tprn**: Random teleport in the Nether.
- **/tpre**: Random teleport in the End.
- These are shorthand versions of the previous **/tpr [world]** command with the advantage of being able to set the permissions individually.
### Updated Command
- **/tpr [world]**: Random teleport in the Overworld, Nether, or End. Updated to add `overworld` to the autocomplete. Using `/tpr` with no arguments still defaults to `overworld`.
## Permissions:
### Added Permissions for every command
- `sg.tpr`: Allows teleportation to Overworld, Nether, and End using the `/tpr [world]` command. (Default all)
- `sg.tpr.overworld`: Grants permission to use the `/tpro` command for teleportation in the Overworld. (Default all)
- `sg.tpr.nether`: Grants permission to use the `/tprn` command for teleportation in the Nether. (Default all)
- `sg.tpr.end`: Enables usage of the `/tpre` command for teleportation in the End. (Default all)
- `sg.tpr.*`: Provides access to all teleportation commands. (Default OP)
- `sg.fogon`: Allows enabling fog using the `/fogon` command. (Default OP)
- `sg.fogoff`: Allows disabling fog with the `/fogoff` command. (Default OP)
- `sg.gclogson`: Grants permission to enable GrowthControl logging using `/gclogson`. (Default OP)
- `sg.gclogsoff`: Grants permission to disable GrowthControl logging using `/gclogsoff`. (Default OP)
- `sg.pregen`: Grants permission to use the pre-generation command with customizable parameters. (Default OP)
- `sg.pregenoff`: Grants permission to disable pre-generation using the `/pregenoff` command. (Default OP)
- `sg.patch`: Allows patching files to update materials and entities to another version. (Default OP)
- `sg.regen`: Grants permission to regenerate all loaded chunks using the `/regen` command. (Default OP)
- `sg.*`: Provides access to all SkyGrid commands. (Default OP)
## Configuration:
### New Configuration File `settings.yml`
#### Generator Settings
- `processDelay`: Delay in ticks before processing chunks after chunk load event (default: 10).
- Environment-specific grid generation height minY and maxY settings for Nether, End, and Normal worlds.
#### TPR Command Settings
- Delay in seconds before using the /tpr commands again (default: 30). You can change it individualy for each environment.
- Max and Min coordinates for random teleportation.
- Default Y coordinate for teleport destination.
#### Fog Settings
- `autoEnable`: Automatically enable fog when the plugin starts (default: false).
```YML
# Configuration
# Generator settings
generator:
# Delay in ticks before processing chunks after chunk load event.
# A shorter delay increases server load, while a longer delay may affect player immersion.
processDelay: 10
# Max and Min height for blocks placed in the Grids for all Environments.
# Keep within increments of 4 starting from the current min or max.
# i.e. 0, 4, 8, 12, 16 ... or 128, 124, 120, 116, 112 ...
# Exceeding max heights for worlds will result in errors.
# Nether settings (min 0, max 128)
nether:
minY: 0
maxY: 128
# End settings (min 0, max 128)
end:
minY: 0
maxY: 128
# Normal world settings (min -64, max 256)
normal:
minY: -64
maxY: 64
# Default settings for unspecified environments (min and max depend on your custom environment)
default:
minY: 0
maxY: 128
# TPR Command settings
tprCommand:
# Delay in seconds before teleporting in the overworld
tprDelay: 30
# Delay in seconds before teleporting in the nether
tprNetherDelay: 30
# Delay in seconds before teleporting in the end
tprEndDelay: 30
# Maximum X coordinate for random teleport (max 29999983)
maxX: 29999983
# Maximum Z coordinate for random teleport (max 29999983)
maxZ: 29999983
# Minimum X coordinate for random teleport (max -29999983)
minX: -29999983
# Minimum Z coordinate for random teleport (max -29999983)
minZ: -29999983
# Default Y coordinate for teleport destination (min -64, max 256, try to get it somewhere in between all your environments)
destinationY: 64
# Fog settings
fog:
# Auto-enable fog setting
# Set to true to automatically enable fog when the plugin starts.
autoEnable: true
```
## Performance Improvements:
- Made the plugin faster and more efficient by using better data handling methods.
- Reduced unnecessary code execution to improve speed.
## Bug Fixes:
- Fixed the problem with empty chunks in the spawn chunk region. Spawn chunks are now force-loaded using Paperlib async operations before the player connects, then regenerated to prevent the issue or fix it if present.
I hope you enjoy the new features, performance improvements, and added flexibility with configurations! Feel free to reach out with any feedback or issues :)
https://github.com/DavidS-Repo/SkyGridx/issues
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }