Sueta
SI

Simple Command Delay

2020-08-30

A plugin to add delays between command execution

·Plugin

Description:
This is a simple plugin which can add delays between command execution so players cant spam a command too much.
Installation:
Simply put the plugin in your plugins folder & reload the server
Setup:
Open up the config.yml after it is generated. All instructions are already written inside it.

Exaple config.yml
commands:
   sell: #name for the command you want to check ( can be anything)
      command-perm: 'essentials.sell'  #permission needed to execute the command (so players who dont have pers arent delayed)
      bypass-perm: 'commanddelay.bypass' #permission to bypass the delay
      command-aliases: # alias beginning with - will include any subcommand
                       # for example
                       # -sell will also include commands like sell hand sell emeralds etc
         - '-esell'
         - '-sell'
      message-on-deny:
         - '&cCant use /sell for %time%'
      delays: #different delays & permission for the delay
              # for any player the minimum delay perm is used
              # if a player doesnt have any perm the highest delay value is used
         '1':
            permission: 'sellcommand.basic'
            time-secs: 300
         '2':
            permission: 'sellcommand.fast'
            time-secs: 60

Note:
This was a rather old project of mine which i decided to release today. Although it doesnt have any known bugs but i will gladly fix any that you can find.

Similar projects

Plugin →