jmurth1234 / JPanel

A plugin based control panel for Bukkit / Spigot
http://dev.bukkit.org/bukkit-plugins/jpanel/
Do What The F*ck You Want To Public License
25 stars 9 forks source link

[Suggestion] Start, Stop, And Restart Buttons #11

Closed MuhsinunC closed 8 years ago

MuhsinunC commented 8 years ago

The title says it all. Can u add them? They would be extremely helpful! Thanks!

Bayside308 commented 8 years ago

As the plugin requires the server to be online to function, a start and restart button likely wouldn't work, unless you've configured a restart server properly.

MuhsinunC commented 8 years ago

I don't think the start button wud be possible but i think the restart and stop buttons wud be possible correct?

Bayside308 commented 8 years ago

Restart is only possible if you configure a start.sh or start.bat in the spigot.yml, or if you have another script checking constantly to see if the server is down. A stop button is possible, and start is not.

On Sep 29, 2016 7:49 PM, "Muhsinun Chowdhury" notifications@github.com wrote:

I don't think the start button wud be possible but i think the restart and stop buttons wud be possible correct?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rymate1234/JPanel/issues/11#issuecomment-250623869, or mute the thread https://github.com/notifications/unsubscribe-auth/AP_gqWH03cyggjWOKLB4uHXJN08u4Sofks5qvE6igaJpZM4KJdTA .

jmurth1234 commented 8 years ago

A start button is completely impossible, you'd need the JPanel instance to run separately from the server, and as the whole point of JPanel is that it's implemented as a plugin for bukkit I will not be able to add a start button.

As @Bayside308 mentioned, Restarts are only possible if a start.sh or start.bat file is specified in the spigot.yml, and since not all servers will be running on Spigot, creating a restart button that relies on this is not something I intend to do.

There's already a way to stop the server from JPanel - the stop command in the console. If you want admins to be able to stop the server but not run all commands, I have some ideas on how to implement this, specifically a command whitelist so JPanel users can run some, but not all, commands.