Solved Running a command while offline

Discussion in 'Plugin Development' started by Letroy11, Sep 27, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Letroy11

    Is it possible to run a command while the player who is executing the command is offline? I'm looking to set up the console to do something like player.chat("/run command") and if set to a timer that runs even when the player is offline
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Letroy11 Not possible, there is no player object anymore.
    And if there is: it is probably corrupted.
     
  3. Offline

    Zombie_Striker

    @Letroy11 @timtower
    Though the player object no longer exists when the player is offline, that is not actually his problem:
    Use the Bukkit.dispatchCommand(.....) command to make the console dispatch commands.
     
  4. Offline

    Letroy11

    I've tried this but the plugin I am looking to run must be executed by a player and the player needs to have the proper permissions to execute
     
  5. @Letroy11
    That is simply not possible. You're going to have to find a workaround.
     
  6. Offline

    timtower Administrator Administrator Moderator

    Why not store the commands and run on join?
     
Thread Status:
Not open for further replies.

Share This Page