Old Description

Delay a command to be executed on the next server tick or after a specified delay in 1/20th of a second (server ticks), as if issued from the console.

This is a simple tool which might help if you have another plugin that dispatches configurable commands from within event handlers, and which creates issues due to that, possibly. You can simply add delayedcommand or dlcmd in front of the command and it will be executed in a delayed manner.

Problems can arise when using an anti-cheat plugin like NoCheat+ which dispatches commands for other complex plugins such as Essentials from within event-handlers, possibly also while cancelling events leading to some complexity.

Usage:

  • To just delay for the next possible spot use "dlcmd ...", adding the normal command + arguments.
  • To specify a specific <delay> use "dlcmd -delay=<delay> ...".
  • If you specify no arguments the command does nothing, which also can be useful.

Be aware that players using this are causing the server console to execute that command (not in the name of the player)!

Example for NocheatPlus: dlcmd jail [player] autojail
Example with delay: dlcmd -delay=40 say Hi!

Permission to use: be OP or delayedcommand.use !

Jar: DelayedCommand 1.0.0

Github: https://github.com/asofold/DelayedCommand


Comments

Posts Quoted:
Reply
Clear All Quotes