Inactive [ADMN] JoinCommand | Version 2.0a | Force 'dem commands! [1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by Kohle, Nov 24, 2011.

  1. Offline

    Kohle

    [​IMG]

    JoinCommand | Version 2.0a | Force 'dem commands! | Download latest version | Source

    Attention ladies and gentlemen, monsters and thugs, I present to you...​
    JOIN COMMAND 2.0a

    The post is ugly and hideous due to dialup being a butt muncher and not loading things I need to properly edit the post. Sorry, this will be fixed soon.
    JoinCommand was a request from a server admin, and I wanted to make a plugin, so I did :)
    This is a very basic plugin - you configure which commands you want a player to do when they join the server. When they join the server, they automatically are forced to do the command. It's lightweight, easy to configure, and mighty useful!

    Installation
    It's quick and easy! Download the plugin, and drop it in your plugins folder! Start the server once to generate the config file. It will be in YourPluginDirectory/JoinCommand. Open it up in a text editor, I suggest Notepad++ as it handles .yml files quite nicely. Edit the config, save, and start your server!

    Sample Config
    The plugin generates a sample config, and if you don't change it, players will be forced to do the command /hi and /hi2 which are in the plugin it's self, for testing purposes.

    Here is the sample config. generated by the server:
    Sample Config (open)

    The following code is the default configuration file generated by the plugin in /plugins/JoinCommand.
    Code:
    Commands:
    - jc
    - version
    Commands-Console:
    - jc
    - version
    FirstCommand:
    - jc
    - version
    FirstCommand-Console:
    - jc
    - version
    

    Yeah, it's that simple. To add another command, simply add another line with the "-" in front of the command, so your config could look something like
    Possible config (open)

    I added "meow" as another command. Remember: do not add the / in the config!
    Code:
    Commands:
    - jc
    - version
    - meow
    Commands-Console:
    - jc
    - version
    FirstCommand:
    - jc
    - version
    FirstCommand-Console:
    - jc
    - version
    

    Very simple! If you have any issues, please tell me below! Or feel free to drop me a PM.

    Features:
    • Forces players to perform a command!
    • Has an easy to edit config file!
    • Permission nodes
    • Helpful commands
    • Command list for first time joiners only
    Commands:
    • /jc-reload - reloads the JoinCommand configuration file.
    • /hi - the command for JoinCommand that is in the default config file. Notifies the user to change the config file to their liking.

    Permissions:

    Code:
    JoinCommand.*:[/SIZE]
    [SIZE=4]        description: Gives access to all JoindCommand[/SIZE]
    [COLOR=#141414][FONT=Georgia]        children:[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]            JoinCommand.reload: true[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]            JoinCommand.FirstCommand: true[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]            JoinCommand.NormalCommand: true[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]            JoinCommand.addcommand: true[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        default: op[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]    JoinCommand.reload:[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        description: Allows you to reload the config[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        default: op[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]    JoinCommand.addcommand:[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        description: Allows you to reload the config[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        default: op[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]    JoinCommand.FirstCommand:[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        description: Allows first time command to pass[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        default: not op[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]    JoinCommand.NormalCommand:[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        description: Allows every logon command[/FONT][/COLOR]
     
    [COLOR=#141414][FONT=Georgia]        default: not op
    [/FONT][/COLOR]








    Todo:




    Add the ability to select different command per user. (Meaning a section in the config for each player(coming soon)





    Add the ability for group/permission commands, such as a list named Group1 would only be the commands for users/groups with the permission JoinCommand.commands.Group1, or perhaps even GroupManager support for groups specifically.



    Bugs:



    None. Found one? Or some? Tell us below!


    Developers:


    Kohle - main developer.




    @Zelif - has helped a lot with the newest version (actually, did it all by themselves ;))


    Changelog:

    Version 1.1-b




    Added a reload config command




    Permission nodes
    First time joining commands




    Fixed the small bug where it says a non-player joined the server


    Version 1.0 l



    Config actually works this time!


    Previous versions (open)
    Previous versions (open)
    Previous versions (open)
    Previous versions (open)

    Version 1.2j


    Cleaned up code a little bit
    Added DCP, auto downloads new versions!


    Versions .1 - 1.0 j



    Basic outline of the plugin, config. issue.
    Found a bug/issue? Please report it below!


    Version 1.0 k



    Config works! Wooooooot!




    A final word

    Hope you all enjoy! Feature request? Bug? Tell me below. Also, if you want to show your thanks just go ahead and leave a friendly thank you, it keeps me working :) Also, feel free to fork or something on GitHub (I'm a noob with GitHub, so I might fail at some things ;))





    Special thanks to DrAgonmoray, tyzoid and especially @ Zelif for helping so much!

    [/code]
     
    lucoatom, kahlilnc, NEO and 1 other person like this.
  2. Offline

    DrAgonmoray

    first

    Edit:
    Went ahead and deleted my other post because I didn't want to derail your thread too much :3
     
    Kohle likes this.
  3. Offline

    Shooty

    THANKS can you add they says automatically a part of the player name ? I see a plugin like this but only on first join @Kohle

    Like the name without the number, only the 3 first letter of the name .. etc
     
  4. Offline

    tyzoid

    @Kohle
    Does this allow per-player configurations?
     
  5. Offline

    Kohle

    I'm not exactly sure what you mean?
    No, not at the moment, but I was looking into this.
     
  6. Offline

    thescreem

    He means this plugin, but to have it happen everytime the player joins, not only the first time. IMO, @Shooty you should ask the creator of the other plugin to add that feature.
     
  7. Offline

    Kohle

    Yes, I agree.
     
  8. Offline

    NEO

    Would really lover per player configurations with superperms support. If you decide to add per player configs, it would also be nice if players could edit there join commands form in game.
     
  9. Offline

    Kohle

    I guess I can start working on this.
     
  10. Offline

    shanko

    So do I have to restart my server twice to make this work or can I reload this somehow?
     
  11. Offline

    Kohle

    What exactly do you mean? If you want to regenerate the config, you need to delete the JoinCommand folder. Then, once you restart the server it will generate the config. Once you make the changes to the config (if you server is running) you can restart the server or reload it. Doesn't really matter ;)
     
  12. Offline

    kahlilnc

    Mm first joins :D !!!???
     
  13. Offline

    Kohle

    Care to explain?
     
  14. Offline

    kahlilnc

    Like on first join. The command only applies then. Maybe a option. And a log to who has joined the server so far.
     
  15. Offline

    user_43347

    Looks like your main post got trolled :p
    Title should be like: [ADMN] JoinCommand v1.0 - Force commands on join [1337]
     
  16. Offline

    Kohle

    Ahh, I see. I'll look into this sometime this weekend, I imagine it can't be too difficult to check if it's a player's first time joining a server.

    Because of the giant banner made by @DrAgonmoray ? I rather like it ;)
    And yes, I know what the title should be, but it looks like shit that way, this way is much more organized :) I don't see a problem with it, but if told to by staff, I will change it :rolleyes:
     
    kahlilnc likes this.
  17. Offline

    user_43347

    It can look nice all it wants, but if it doesn't fit, it doesn't get approved (if they move this last "batch"), and they beat you to it: http://forums.bukkit.org/threads/pl...egory-requirements-updated-july-19-2011.1755/
     
  18. Offline

    Kohle

    Eeh, I really don't care if it doesn't get approved. Chances are the forums are going to be dead anyways. Also, I have looked at the guidelines. It simply does not look good with the default generic title. Too messy. Thanks for the input, though :)
     
  19. Offline

    Kohle

    Just a quick post about the progress:
    I have looked into making a custom section in the config for each player. It doesn't seem that difficult, so expect it sometime this weekend :)
     
  20. Offline

    iffa

    Mod Edit: Removed bad content (Butkicker12)

    At last a useful plugin.
     
  21. Offline

    Kohle

    @iffa

    In response to the spoiler, ohrlly? I didn't know. In fact, I just searched your started threads and didn't find a post you made about it. So, whatever.
     
  22. Offline

    iffa

    Yehrlly.
     
  23. Offline

    Kohle

    Was it on hMod? The person who requested it said there was something like this back on the ol' hMod.
     
  24. Offline

    DrAgonmoray

    noob
     
    WizzleDonker and Kohle like this.
  25. Offline

    Kohle

    I love how he never replied. I even sent him a PM.
     
    DrAgonmoray likes this.
  26. Offline

    md_5

    Latest rb please :)
     
  27. Offline

    worstboy32

    @Kohle
    This is for new players only or every time players log in?
    Would be great if it was for new players only.
    If it is not could you please add a database for it?

    And can you make it so you can add like 40 commands and it random takes one for every player.
    So each player who join for first time get a other command.

    And this wont allow them to chat or do anything?

    If you could make it like this it would be great.
    On this way it could stop bots from spamming the server.
    Because bots are not smart enough to read all commands they have to type and type them if they are different.
     
  28. Offline

    Kohle

    Done.
     
  29. Offline

    md_5

    Approved
     
  30. Offline

    md_5

    That's alright, it's my job :)
     

Share This Page