AutoCommand

Discussion in 'Archived: Plugin Requests' started by TheDeadStar, Jul 26, 2014.

  1. Offline

    TheDeadStar

    Suggested Name:Autocommand

    What I Would Like It To Do:I would like a way to autmatically execute a command and bind that command to an individual player so as soon as they come online something happens like they get a potato and when they log off the potato disappears from their inventory now that is a horrible example but what if would do is have a config that would allow you to set up commands for each player or their rank so when they joined they would be given anything from health to food to protection to anything at all really I know there are plugins for most of this but I would like one that can be a bit more basic and work with any command you want or command from another plugin it would just automatically do it when you joined like say send mail or just anything sorry I said that many times I think the point is made.

    Commands:Just A Config

    Permissions:Just A Condig

    When I Would Like To Have It: Don't Care, Whenever works(relatively speaking)
     
  2. Offline

    timtower Administrator Administrator Moderator

    TheDeadStar I have a plugin that will make the player execute a command when they login, would that fill your needs?
     
  3. Offline

    chrisman0091


    I think what he would need is it being executed from console onto the player, so they could get items or something when they join and they don't need to have access to the /give command. I might be wrong though.
     
  4. If completed by some one could I have the download link thanks
     
  5. Offline

    Twin802

    Shouldn't you just need:
    Code:java
    1. public final class Main extends JavaPlugin implements Listener {
    2. @Override
    3. public void onEnable() {
    4. getServer().getPluginManager().registerEvents(this, this);
    5. }
    6. public void onAchievement(PlayerLoginEvent event){
    7. event.getPlayer().getInventory().addItem("potato");
    8.  
    9. }
    10.  
    11.  
     
  6. Offline

    TheDeadStar

    timtower do you mean they have to execute it when they log log in like excepting rules or something or do you mean when they join the console automatically executes something now I would mean the console one but if you have one based on in game commands like maybe their stuff gets temporarily guarded that would be a player command but it would like go away after they logged out so well if you have the second part that would be great but this would allow me to use concord and in game commands the in game commands I would hope I could bind to a group of people like a rank and the console command maybe that would have to be a different plugin but both would be nice.
     
  7. Offline

    timtower Administrator Administrator Moderator

    TheDeadStar Well, the plugin that I am talking about will force the player to perform a command when they join, not capable of firing console commands.
     
  8. Offline

    TheDeadStar

    Force so they won't even know the command is executed like it will be completely automatic? timtower
     
  9. Offline

    timtower Administrator Administrator Moderator

    Players won't know that they used the command ( unless the command has a message )
    And it will perform the command each time they join so it is automatic
     
  10. Offline

    TheDeadStar

    Which own of your plugins is it I'd be interested in checking it out. Can it also execute a command when they log off automatically if not maybe could you add it? timtower
     
  11. Offline

    timtower Administrator Administrator Moderator

    Sw_aG likes this.
  12. Offline

    Sw_aG

Share This Page