Filled Plugin NEEDED

Discussion in 'Archived: Plugin Requests' started by CrispyLipz, Oct 19, 2013.

  1. Offline

    CrispyLipz

    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
     
  2. Offline

    _Filip

    It would take me a minute, but I want you to learn.
    Look up the plugin variable triggers.
     
  3. Offline

    AndyMcB1

    Please post your code.
     
  4. Offline

    CrispyLipz

    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
     
  5. Offline

    Famous Guy

    You can create a kit with essentials ^-^
     
  6. Offline

    CrispyLipz

    Can anyone do this? pleeea :3
     
  7. Offline

    AndyMcB1

    Please only bump after 24 hours. If someone can post code for running a command via console I should be able to do this.
     
  8. Offline

    CrispyLipz

    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
    1. Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "command");
     
  9. Offline

    AndyMcB1

    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 ;)
     
  10. Offline

    CrispyLipz

    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.
     
    Last edited by a moderator: Jun 4, 2016
  11. Offline

    CrispyLipz

    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!
     
  12. @CrispyLiz No problem, I'll post it on dev.bukkit.org
     
  13. Offline

    Henzz

  14. Offline

    CrispyLipz

  15. Offline

    Henzz

    CrispyLipz
    No problem, just around 5-10 minutes
     
  16. Offline

    CrispyLipz

    -...- Jeeez.... I call hax!111!!! :3 Thank you
     
    Henzz likes this.
  17. Offline

    AndyMcB1

    Code:java
    1. @EventHandler
    2. public void onPlayerJoin(PlayerJoinEvent event){
    3. //whatever you want done
    4. }


    However you also have to register that listener in the onEnable method

    :p
     

Share This Page