poltout.blogg.se

Actions server plugin
Actions server plugin













actions server plugin
  1. #Actions server plugin update
  2. #Actions server plugin code

Name does not matter value is the action. state_file : auto_restart create_state_file : 'true' actions : # You may specify as many of these as you want. # This option is useful for scripts to detect if the server shut down for a restart or crash. # By not deleting it until being disabled, it guarantees that a server crash will cause a restart (as the plugin is not disabled in a crash). restart_time : 3h kick_message : Server is restarting! Come back in a minute or two! # ServerRestarter will create this file in the base server directory # every time the plugin is enabled, and will # delete it upon being disabled given that the server is not restarting. This is an example configuration file (automatically generated by the plugin). Permission node is sr.restart (or server operator). /sr reset Reset the time and message to default settings (restarting the timer)./sr Set both time and message simultaneous.NOTE: If the message starts with a valid time format, it will be treated as the command below. State file creation to indicate to scripts that a server wishes to be restarted.Command to control restarts and restart settings.These can be changed at intervals via action. Optional scoreboard display allows every option to be configured: title, location, text format.Restart actions come as either message, sound, or scoreboard action.

actions server plugin

(Restart actions are dynamic, not by index as in every other restart plugin.) Completely configurable restart actions.NOTE: A script (listed below) is required for the restart to actually work, otherwise the server will simply shut down as usual. NOTE: /restart command is currently broken, as bukkit/spigot override this command yet do not automate it use /sr instead.

#Actions server plugin code

Chat color format in commands and config is &code, where code is the color code. Time format in commands and config is 0d0h0m0s0ms (e.g.

#Actions server plugin update

The /sr command is provided to trigger a restart manually or update the time until next restart and restart message. You can also enable scoreboard display (fully configurable) to inform users continuously about an oncoming restart. Through this plugin, you can set an infinite amount of messages to display and sounds to play at specific intervals. It is not safe to modify or examine the continuation’sĭata because the continuation may have already been destroyed.ServerRestarter is a highly configurable server restart management plugin. Not safe for the continuation to do anything else except return from its You should notice from the above discussion that once a call toĪ function like TSNetConnect is made by a continuation and thatįunction returns a valid action ( TSActionDone returns 0), it is The asynchronous nature of all operations in Traffic Server necessitatesĪctions. Indicate to itself that the operation succeeded. Is called back, the continuation must zero out its action pointer to When the operation actually succeeds and the continuation Also note that an action will never change from non-completed Operation has already completed, so it’s pointless to try to cancel the If that occurs, then TSNetConnect returns a special action thatĬauses TSActionDone to return 1. In the preceding example, it is also possible that the connection willĬomplete and call back the continuation before TSNetConnect returns. The continuation that initiated the connection would not be called back. The connection might still occur if the action is cancelled however,

actions server plugin

Passed into the operation will not be called back. The operation will not occur it simply means that the continuation Cancelling the operation does not necessarily mean that Will return an TSAction structure that the caller can use to cancel TSNetConnect might not call the continuation back immediately and Server, it uses the call TSNetConnect - which takes TSCont as anĪrgument to call back when the connection is established. For example: when a plugin connects to a remote An action is a handle to an operation initiated by a plugin that has















Actions server plugin