I need a plugin to execute a command on join. Just one command every time they join the server lightweight one permission node. Permissions Node: • cmdjoin.givetorch = Executed command /iv give When the players join I need the plugin to execute the command /iv give, only once. I need this to be done for every player and every time players join the server. And only for "ONE WORLD" please, I really need it for one world only I have many many worlds that this can't be used in. The world for the ONE WORLD is called Hub. I've tried to code this and it's aggravating me. I'm sure for a experienced dev it would only take a few minutes? When I would Like it by: ASAP
I deleted all of it, I just gave up after 3 hours of trying it just failed and made massive errors... I don't any of the code :/ Sorry I am really trying to start coding better but I keep forgetting stuff is case-sensitive and all that jazz... :c bump
Please only bump after 24 hours. If someone can post code for running a command via console I should be able to do this.
What do you mean by console? I also tried this... I tried using player join event but once again I fail at coding so... it failed -...- Would this be it? Code:java Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "command");
Yeah lol.. not sure why I was thinking I'd need that. Give the plugin a go yourself.. I'm here if you have questions
OMG, I'm sooooo done T_T an hour of coding just for it to completely fail AGAIN!Rage quit... 4 hours of my life gone xD darn I thought this would be easy :c EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thank.... YOU! Jeez how easy is it? I've spent like 2 hours looking at Bukkit packages to fine how to do this... I love you!
CrispyLipz You can try this out if you like, world name and command to execute are configurable, since you wanted this asap. https://www.dropbox.com/s/onba4nxezrt62dx/ExecuteCommand.jar
Thank you, It actually works better than what I hoped for! <3 Clean and simple, and if you don't mind how long did it take you to make?
Code:java @EventHandlerpublic void onPlayerJoin(PlayerJoinEvent event){//whatever you want done} However you also have to register that listener in the onEnable method