Filled World Spawn Teleport

Discussion in 'Plugin Requests' started by user_91250433, Aug 29, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    user_91250433

    Plugin category: RPG
    Minecraft version: 1.13.1
    Suggested name: WorldSpawn
    What I want: I am looking for simple teleportation command plugin which uses built in world spawn point/ respawn point, (/setworldspawn).

    Ideas for commands:
    /<command in config.yml file>


    Permissions:

    none

    config.yml
    # to make alias add another line with command you want to have
    worldspawn
     
  2. Offline

    KarimAKL

    I'm a little confused as to what exactly you want. Here is what i think you want:
    1. config.yml with command & aliases for setting a spawn. (where you respawn aswell)
    2. No permissions.
    3. Please tell me what exactly you want.
     
  3. Offline

    user_91250433

    @KarimAKL
    There is build in world spawn command "/setworldspawn" when player dies or log in for first time he is spawned there.
    Problem is there is no command to teleport there, I have read other threads and people are suggesting "/kill" command.
    But meh nty :D

    I been searching for plugin like this but all I seen do make their own custom spawnpint.
     
  4. Offline

    KarimAKL

    I can try looking at it, have never tried this so i can't promise anything. :7
     
    user_91250433 likes this.
  5. Offline

    user_91250433

    @KarimAKL
    I found a code which might do this, how do you make plugin from it? :D


    Code:
       public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
            Player player = (Player) sender;
            if(command.getName().equalsIgnoreCase("spawn")) {
             if(player.hasPermission("vitality.spawn")) {
              player.teleport(player.getWorld().getSpawnLocation());
              player.sendMessage("You have been teleported to spawn");
             }
            }
            return false;
        }
    source:
    https://www.spigotmc.org/threads/teleport-to-world-spawn-after-doing-setworldspawn.13355/
     
  6. Offline

    KarimAKL

    I see, i'll try to make a plugin with this code for you. :7 I'll need to get the 1.13.1 version first tho, gonna take some time.
     
  7. Offline

    SavageAvocado

  8. Offline

    user_91250433

    Works great, thanks:)
     
  9. Offline

    user_91250433

    @SavageAvocado @KarimAKL
    Hey guys can any of you make it so it doesn't teleport you if you are I water/ lava?
    Karim you made this in tpa plugin maybe it won't be hard to add this to this plugin aswell?

    Btw, respawn does spawn in random places, is it possible to implement that too in this plugin?
     
  10. Offline

    KarimAKL

    I think i'll leave this to @SavageAvocado because he already made the plugin for you. If he doesn't have time or something i'll try. :)
     
Thread Status:
Not open for further replies.

Share This Page