is there a plugin that you teleport to the spawn when you join or login ? can you make it for me ? THANX
https://www.dropbox.com/s/ezgkeqbx5jg4n1c/JoinSpawn.jar There we go this will teleport the player when he joins the game to spawn.
it works but I use a plugin (world portal) that you teleport to other worlds, is it possible that the plugin teleports you to the global spawn ? srry it's oké THANX EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Sorry but i am not a very good coder. I hope someone else could help you with that. Anyway here is the code: Code:java package me.Venican.JoinSpawn; import org.bukkit.Bukkit;import org.bukkit.entity.Player;import org.bukkit.event.EventHandler;import org.bukkit.event.EventPriority;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerJoinEvent;import org.bukkit.plugin.java.JavaPlugin; public class JoinSpawn extends JavaPlugin implements Listener { public void onEnable() { Bukkit.getServer().getPluginManager().registerEvents(this, this); } public void onDisable() { } @EventHandler(priority = EventPriority.HIGHEST) public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); player.performCommand("spawn"); }}
Venican Use this.getServer().getWorld(<worldname here>).getSpawnLocation() Then teleport the player to that spot
You can use this plugin: http://dev.bukkit.org/bukkit-plugins/tplogin/ It will tp every player to the designated spawn no matter which world they are in or if they are new or old. I use it on my server and I can guarantee that it works.