I want all player when they spawn they get a item in this case a clock.Im using #CompassNavigation plugin to teleport to areas.The problem is when they join a game they will loose the clock so i want to make it so that they have the clock everytime they are in lobby or spawn.
I'll try this out. PM me your skype name so I know where to send it to. (currently in school when I posted this)
If you use Essentials, just make a kit with the stuff you want. You can do so they start with some stuff, and / or make kits so they kan use /kit "name" to get that kit, If you use economysystem then you also can set prices on kit, permissions can be used to give certain ppl or groups other stuff. So.. for you its easiest to setup that ppl get a kit with clock when they respawn, (after death and ect..) and maybe even make so they can do /kit clock they get a clock http://wiki.ess3.net/wiki/Command_Reference/Kits
TheCombatCA Just noticing that you have a random "if" statement in you sig, causing some errors with my console:
I have essentials im saying like when a player chooses a kit for kit pvp the player looses the clock so when he wants to go back he looses the clock.
Hmm im not sure what you mean, But if you want them to loose that item in a area, just use Worldedit/worldguard and set a flag denying to use that item. And if i remember right you can even make items dissapear in that zone to comeback in inventory when out of the area (if there is room in inventory)
Are you using Multiverse? If so, just use MultiverseInventories (I believe it's something like that) and try experimenting with that. I've personally never used it though so I'm not sure if it can even do this. If you're using BungeeCord or Lilypad, I can make a plugin for you that would would need to put onto the Hub/Lobby server.
I do have multiverse and I did have seperated enventorys before I wiped out the my plugins folder. But that was like 5 months ago That would work but if they play mob arena or any mini game they will loose it The clock is the item i replaced the compass with
LavaAndy Hey, this is simple enough for me to do I think, any devs that can help me? I need a Listener for a player death event and something that when they die it gives them a Clock? It seems really simple but I will probably overthink it... xD I will try :3 If I get snagged I will upload the code and see if anyone else can remedy it ;P
CrispyLipz That code also triggers when somebody wakes up from his / her bed and I am not sure about joining the server
LavaAndy Hey, I'm done It was super simple to do(ish) got confused for a min but it's ready! There is no config or permissions. It gives a "Clock" on respawn :3 There is the link: https://www.dropbox.com/s/mximr0ebag3avh4/DeathClock v1.0.jar Enjoy EDIT: I misread the OP... I made it so it's on player Join! Sorry... I guess you can use both? xD here is the link: https://www.dropbox.com/s/jwhd66yk7okkvnk/SpawnClock.jar
Mark as filled please! I've made you a couple and Yebol suggested one too! Oh if you want to customize the item here is the source: Code:java package info.crispylipz.deathclock; import org.bukkit.event.EventHandler;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerJoinEvent;import org.bukkit.inventory.ItemStack;import org.bukkit.plugin.java.JavaPlugin; public class DeathClock extends JavaPlugin implements Listener { @Override public void onEnable() { getServer().getPluginManager().registerEvents(this, this); } @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { int item = getConfig().getInt("item", 347); event.getPlayer().getInventory().addItem(new ItemStack(item)); } } EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thanks by the way how do i mark as filled. I'm kind of new to the threads EDIT by Moderator: merged posts, please use the edit button instead of double posting.