Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PocketMine_Ctrl - Script to manage PocketMine server on linux.

Comments in 'Tools' started by marlboromoo, Sep 6, 2013.

  1. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    Control script for PocketMine server :D

    Features
    • Manage PocketMine server with tmux session.
    • Remap `Ctrl+c` key to prevent killing PocketMine server.
    • Control script with convenient functions(see [below](#usage)).
    • ...
    Usage
    Code:
    ____            _        _   __  __ _     
    |  _ \ ___   ___| | _____| |_|  \/  (_)_ __   ___
    | |_) / _ \ / __| |/ / _ \ __| |\/| | | `_ \ / _ \
    |  __/ (_) | (__|   <  __/ |_| |  | | | | | |  __/
    |_|   \___/ \___|_|\_\___|\__|_|  |_|_|_| |_|\___|_Ctrl
    
    
    Usage: pocketmine.sh [CMD]
    
    Available CMDs:
      start                 Start PocketMine server.
      attach                Attach PocketMine server console.
      console               Alias for attach.
      stop                  Stop PocketMine server. (graceful)
      restart               Restart PocketMine server. (graceful)
      kill                  Kill the PocketMine server.
      cmd "MY COMMAND"      Send command to PocketMine server.
      plainlog "LOGFILE"    Strip color code from log file.
      log-rotate            Log rotate.
      remake-world          Regenerate worlds and keep old worlds. (need restart)
      purge-world           Regenerate worlds. (need restart)
    
    Source/Document
    http://marlboromoo.github.io/PocketMine_Ctrl/
    Last edited: Sep 12, 2013
    LDX, iJoshuaHD and wies like this.
  2. 99leonchang
    Offline

    99leonchang Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    165
    Plugins:
    2
    Minecraft User:
    99leonchang
    This sounds really cool, i guess you can call it a wrapper.
    This also completely defeats the purpose of my AutoRestart plugin, although mine doesn't need cron jobs.
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    How can I install this on my linux server? And how do I use it? This is all I was searching for!

    Thanks for replying
  4. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    It will be awesome for you if shoghi help you to make this script more easy to implement to PocketMine-MP
  5. raul
    Offline

    raul New Member

    Joined:
    Aug 29, 2013
    Posts:
    10
    Minecraft User:
    XxRGBxX
    thats not the first script i see for pocketmine but is the most complete GOOD JOB!!
  6. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    this require root access :( bad for me :'(
  7. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    Yea, it's a wrapper :3
    I prefer to use script + crontab to do the daily job, thanks for your appreciation!
  8. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    Thank you :D
  9. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
  10. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    Hey! I come from Taiwan too, nice to meet you ;)
  11. 99leonchang
    Offline

    99leonchang Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    165
    Plugins:
    2
    Minecraft User:
    99leonchang
    Nice to meet you too!
  12. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    But to install tmux I need root acces :(
  13. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I get it work! I get how to install tmux without root... can you publish the instructions? If yes... I can send you the instructions to publish them on github ;)
  14. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    Sure! You can send me a pull request or PM me :D
  15. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    But I don't know how to use the script commands with tmux... Can you help me?
  16. marlboromoo
    Offline

    marlboromoo New Member

    Joined:
    Sep 6, 2013
    Posts:
    7
    Minecraft User:
    marlboromoo
    What do you mean ? Could you give me an example ?
  17. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I will send you a PM ;)
  18. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Can I use this in a control panel to control PM servers?
  19. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I use this, but it only support 1 server at time, you can't run multiple server using this.
  20. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Which is exactly why I modified this script to support multiple servers with single PHP binary :) I'll keep it to myself until the said CP is finished.

Share This Page

Advertisement