VoidSpawn
This plugin will teleport players to spawn when they enter the void. This is useful on hub servers that have open void that players jump into.
Features
- Teleport players upon entering the void.
- Supports multiple types of teleportation types.
- Multi-World support
- Saves players from death.
- Skyblock Support (ASkyblock or IslandWorld or uSkyBlock, BentoBox, SuperiorSkyblock)
Commands
/vs - Provides some details of plugin.
/vs help - Shows a list of all commands.
/vs mode (mode) [world] - Sets the mode of the current world or the world specified.
/vs modes - Lists all available modes.
/vs set [world] - Sets the spawn point for the mode 'spawn' in current world or specified world.
/vs remove [world] - Removes a spawn point from current world or specified world.
/vs reload - Reloads the plugin.
/vs toggle - toggles whether the player is teleported upon entering the void.
/vs detector (detector) [world] - Sets the world detector, defaults to Void.
/vs options (set/clear) (option) [value...] - Set an option for the mode.
() - Mandatory [] - Optional
Permissions
vs.admin.* - Will give all /voidspawn commands
vs.admin.set - Gives /voidspawn set command
vs.admin.reload - Gives /voidspawn reload command
vs.admin.remove - Gives /voidspawn remove command
vs.admin.mode - Gives /voidspawn mode command
vs.admin.help - Gives /voidspawn help commandvs.admin.detector - Gives /voidspawn detector command
vs.admin.option- Gives /voidspawn option command
vs.* - Will grant all VoidSpawn permissions
vs.player.toggle - Permission for /vs toggle command
color-logs Enables/Disables Colored logging
Commands Variables:
In the command mode, to run the command as op just add "op:" to the front of the command. Also, there are a few variables available.
${player.name} - The name of the player.
${player.uuid} - The UUID of the player.
${player.coord.x} - The x coordinate of the player.
${player.coord.y} - The y coordinate of the player.
${player.coord.z} - The z coordinate of the player.
${player.coord.world} - The world name the player is in.
Here is an example command: "op:effect ${player.name} minecraft:strength 45"
Commands Variables:
sound: The sound played when detected in the void
sound_volume: The sound volume
sound_pitch: The sound pitch
hybrid: Whether to run in hybrid mode (mode and command)
keep_inventory: Whether players keep inventory
message: Message sent when detected in the void
offset: The offset for the detector
command: The command(s) for either command mode or hybrid
inc_death_stat: Whether to increment the death statistic
vertical_offset: The offset from the top of the world to teleport the player
keep_velocity: Whether the player's velocity should be maintained after being teleported
There is also a worlds.yml all information for world modes and other stuff is set and saved here.
Modes
Spawn - Teleports player back to a set spawn location
Touch - Teleports player back to the spot where they touched the ground last
None - Removes any mode from the world
Island - Teleports player to their own island. Requires IslandWorld or ASkyblock
Command - Execute command(s) when the player enters the void.
Looper - Will teleport player to the top of the world at the same x,z location.
Detectors
Void - (Default) Teleports players when they enter the void
Nether - Teleports players when they enter the void or go above the height of the nether bedrock.
To get the fastest response for issues or questions is to open a new ticket on github. I do not regularly keep an eye on Bukkit
Please make a ticket on github, and I will try to fix it as soon as I can.
PLEASE NOTE(V1.12.2 or below): Not Working? Do you use "*" for permissions? Make sure to negate "vs.override" in your permissions.
Please suggest some new features on github!
Working on a rewrite. Will add some new features.
Edit: Never mind, I had to remove the permission for override
@PresidentBacon
I have finally added Yaw and Pitch Support. I have uploaded the file, just waiting on a mod to approve.
Yaw and pitch support?
@AnorZaken
Thanks for the input I have created a ticket for it and I will implement this possibly on the next update.
Took a look at the new version, looks good. Small tips, use
to add a descriptive comment at the top of the config.
Also (this is just nitpicking) in your foreach-loop inside your MoveEvent class you should stop looping if you find the world the player is in, in your enabled worlds list. There is no need to check the remaining worlds because they obviously wont match when a match has already been found. (So add a return statement after the two teleport method calls and after the performCommand call.)
For the same reason this
should be split into
to prevent unnecessary looping. (just nitpicking...)
@Fuusko
I just pushed an update now waiting for a mod to approve. I believe I fixed it but if it appears again please comment on that ticket.
@Endercrest
Any luck on fixing those error-messages yet?
@Fuusko
I have created a ticket. go to http://dev.bukkit.org/bukkit-plugins/voidspawn/tickets/1-i-get-this-in-console-when-i-fall-to-spawn/. Could you please post your config file there.
I get this in console when I fall to spawn:
http://pastebin.com/bAdtf1st
It appears to be working correctly when I fall to void but those errors shouldn't be there.
Any way to make it so if you fall off u keep your items {go to spawn} But if you are in combat and fall off you lose your stuff?
Edit: Never mind it does it! GOOD!
@mastalol OK I understand now... I'll take a look into it. It is possible. However I want to be able to keep the simplicity of this plugin. So I may end of making something else that hooks in this plugin.
@Wukkit I'll take a look later. I will create a video page later today.
Hey man, nice and simple plugin. I did a review if thats ok! Here's the link to it. https:www.youtube.com/watch?v=amgVUsoi3YI Thanks for the great work!
@Endercrest Think of it like this
if you fall from the SKY world you end up in the MAIN world and if you fall from the MAIN world you end UP in the NETHER World
(using bullets to keep format)
@Keyosuke
Hey,
So are you saying when they enter the void the would be say teleported to nether spawn?? But would you want it so that you can change per world??
Can you add a feature so that falling into a void in one world warps you to a point in another world? I would even take default spawn of another world. This would be very useful for falling out of a "Sky" world and into a normal world, or out of a normal world and into an End world. I've seen plugins that did this years ago, but they are all long dead.
@godleydemon
I will take a look into it. Thanks for the report.
So yeah, does exactly what I need but your yml must be wrong in the config file because I'm getting org.bukkit.configuration.InvalidConfigurationException: expected '<document start>', but found BlockMappingStart in 'string', line 5, column 1: world: on a new config file
V1.0
Has been uploaded. Waiting approval.
V0.4
Has been uploaded. Just waiting for approval.