Plugin now works on 1.21.1 -> 1.21.4
Removed support for 1.20.6
IMPORTANT INFO
This version is close to a full rewrite of the entire plugin, so a lot of things are different in this version than previous ones!
Also, even though I have tested it extensively, due to this being a large update, there might be bugs that snuck through my testing. So if you find any, please report them on github.
Changes:
-
Teleport command has been changed to:
/regiontp tp "region1 region2 ..." "spawn1 spawn2 ..." (-s)/regiontp tp <world> "region1 region2 ..." "spawn1 ..." (-s)
The quotes are only needed for multiple regions or spawns.
/regiontp tp region1 spawn1works aswell. -
Clear command has been changed to:
/regionclear "region1 region2 ..." "option1 option2 ..." (-s)/regionclear <world> "region1 region2 ..." "option1 ..." (-s)
Quotes are here also only needed for multiple regions or options.
The options which you can provide a list of your own, specific, named-only & items, work the same, with each type being split by a comma. Example:/regionclear __global__ "specific:wolf,cow named-only:dave" -
Setspawn command has been changed to
/regiontp setspawn <name> (x y z) (yaw pitch) (world) -
/regiontp spawnlist has been changed to /regiontp list (page). The permission has also been changed to regionteleport.command.list.
-
/regiontp list is now split into pages, and you can easily teleport to each spawn by clicking on it.
-
Took in use CommandAPI as the command framework instead of bukkit commands. This also means all commands are now brigadier commands.
-
Removed the lang file because I didn't see the point in having it.
-
The plugin is now using Papers teleportAsync to teleport players.
-
Java 21 is now required.
-
Changed the API version to 1.20.
NOTICE: Spigot Support will be dropped in the near future to take in use things like async teleportation, Kyori Adventure, etc.
New Features
- Four WorldGuard flags have been added!
- player-loot-drop - Stop player loot from dropping on death
- mob-loot-drop - Stop mob loot from dropping on death
- regiontp-on-entry - Teleport a player to one of the specified locations when they enter the region
- regiontp-on-exit - Teleport a player to one of the specified locations when they exit the region
- The regiontp flags works exactly the same as the tp command for spawns, just add the spawns as
spawn1,spawn2as the flag value. This also includes CMI/Essentials addons, ex:ess:spawn1,spawn2
Changes
- Plugin now depends on 1.20.1
- Updated dependencies
- api-version has been changed from 1.13 to 1.18
- Plugin now depends on Paper instead of Spigot (Still works on spigot atm)
- Recoded RegionTeleportCommands
- Split some of the code into their own methods for ease of use with other parts of the plugin
- Removed the two different versions I had for player senders & other senders, there's now only 1 sender.
- All commands should work from anything that can send commands
/regiontp setspawn <name>is now/regiontp setspawn <name> (-x:<x>) (-y:<y>) (-z:<z>) (-w:<world>) (-yaw:<yaw>) (-p:<pitch>)with the variables being optional for players.- If a command like setspawn or tp was sent by a player, they, as before, don't have to enter any coordinates / worlds, but they can now do that if they want to.
- If setspawn is run by a player, the player, if they choose, to include only some of the variables, and the unspecified ones will be grabbed from their location, for example if the player is standing at X 10 Y 50 Z 40, and they specify -x:25 in setspawn, the spawn location will be X 25 Y 50 Z 40.
- Changed some folder & java file names.
- Deleted some unused code
- Made some stuff static
- Added permission
regionteleport.command.cleartoregionteleport.command.* - If -w:<worldname> is not specified when running /regionclear in console, it'll now send a msg about it instead of a NPE error.
Added /regionclear. This command allows you to clear specific entities from specific regions.
Available Types:
( ) are optional specifications
-all
-monsters
-animals
-ambient (bats)
-items(:<item name>)
-vehicles (Living vehicles like horses are excluded)
(all of the above are included in -all)
-displays (Only 1.19.4+)
-specific:<entity name>
The ones above don't clear npcs, named entities
& tamed entities, to also clear those you can use:
-npcs(-only)
-tamed(-only)
-named(-only:[name])
The -only means only tamed entities will get removed,
or only entities named "Steve" will get removed, etc.
Command examples:
/regionclear <region(s)> <types> (-s) (-w:[worldname])
/regionclear example1,example2 -animals -named:steve
/regionclear __global__ -animals -named-only:steve
/regionclear example1 -items:diamond,emerald -monsters -w:world_example
Specifying multiple sources is possible, so specifying
"-monsters -vehicles -specific:block_display" will remove
all monsters, all non-living vehicles and all block displays.
Moved /regiontp help message from the language file into the plugin directly. This was done to keep /regiontp help up to date at all times.
Fixed the default lang msg for console-wrong-usage showing the wrong format.
Some internal code changes:
- Java version & language is now 17.
- Updated dependency versions.
- Adds support for selecting multiple regions to teleport players from
- Adds support for teleporting players to multiple spawn locations
Examples:
/regiontp tp region1,region2,region3 spawn1,spawn2
/regiontp tp region1 spawn1,spawn2
This works with cmi and essentials warps aswell.
- Some code cleanup courtesy of Ntdi
- Some more general code cleanup
- Added two placeholders: %regionteleport_player_count_w:<world>_r:<region>% %regionteleport_player_count_exclude_bypass_w:<world>_r:<region>%
- Updated spigot dependency to 1.19.3
- Fixed up parts of the code


