Minecraft version: 1.8.8 Plugin name: PerWorldSpawn What I want: I'm looking for a simple plugin to setup per-world spawns. You can set a teleport delay in the config. The teleport will cancel ONLY if you either move (w-a-s-d), get hit by another player or hit another player. If you are on a teleport delay and it gets canceled, it will instantly cancel the teleport and send a message saying the teleportation failed. LOOK AT CONFIG EXAMPLE BELOW. Commands: /setspawn (sets the spawn of the world you are in, saves the pitch and yaw too) /spawn (teleport to the spawn of the world you are in) Permissions: pws.spawn pws.spawn.delay.bypass (go instantly to spawn when typing /spawn) Config example: messages: spawnset: '&7Spawn set in world {WORLD}!' delspawn: '&7Spawn removed in world {WORLD}' teleporting: '&8You will be teleported in &a8 seconds&8.' teleported: '&8*whoosh*' teleportcancelmove: '&4Teleporting cancelled because you moved!' nospawnset: '&7There is no spawn set yet in world {WORLD}' settings: seconds: 8 spawns: practice: ==: org.bukkit.Location world: practice x: 124.5 y: 71.5 z: -125.5 pitch: -0.66206497 yaw: 89.818634 ffa: ==: org.bukkit.Location world: ffa x: 0.5 y: 86.0 z: 0.5 pitch: 1.400116 yaw: 179.88403 Thank you so much in advance. Kind regards, FireFlies
Hi there, I have made this for you! <Edit by Moderator: Redacted not allowed paid resource url> the download, hope you enjoy.
I will test it right away thank you! After testing here are the 3 main problems: 1. No teleport delay bypass permission. 2. The teleport cancels if you move your mouse. Could you remove that please? 3. The spawn doesn't register the yaw and pitch, you end up looking straight down when doing /spawn. Other than that, it's perfect and exactly what I asked for!
1. Oops, knew I missed something 2. Sure, I just added it into the PlayerMoveEvent, guess that's a trigger as well. Will add an extra check 3. It does. Maybe I have them in the wrong order
@GiansCode There seems to be a problem, I can't seem to teleport to spawn anymore. After doing /spawn and waiting for the delay to end, this is the exception that pops up in console: https://pastebin.com/MYnsd0Cu
I'm done. Here's a link to the JAR: https://www.dropbox.com/s/e9czw9ufz0emkt7/PerWorldSpawn.jar?dl=0 I added in a /delspawn command (permission: pws.delspawn), a permission for /setspawn (pws.setspawn) and teleport cancel messages for getting hit, and hitting other players. Edit those in the config. Please tell me if you encounter any issues.
It seems to be working flawlessly, however what is the permission to bypass the spawn delay? Nevermind! I found it. Thank you very much again! EDIT by Moderator: merged posts, please use the edit button instead of double posting.