Sueta

TpsCommands

1.3.0

With this Plugin you can execute own commands at a specific tps level

·Plugin

This Plugin makes it possible to execute commands at a customizable tps level automatically.
With TpsCommands it is now possible to prevent lags. You won't need a plugin like ClearLagg anymore. Just a command like:

minecraft:kill @e[type=item]

to clear all items on the ground. And Players aren't frustrated anymore that the items on the ground get removed every 5 minutes. With this plugin it is possible to execute the commands only if it's needed

Features:

  • Unlimited Commands
  • Unlimited Messages
  • 100% customizable
  • Lightweight
  • Easy Usage
  • Debug Mode

To Do:

  • Add a /config command to check current configuration
  • Add Console Commands support
  • Add the ability to cancel events instead of using commands
  • ...
  • Do you have a suggestion? Message me on Discord: Just#0001

Commands & Permissions:

'tpscommands help'
  Description: Shows all commands of the plugin
  Permission: tpscommands.help

'tpscommands list'
  Description: Lists all enabled commands
  Permission: tpscommands.list

'tpscommands tps'
  Description: Shows the current tps
  Permission: tpscommands.tps

'tpscommands reload'
  Description: Reloads the configuration
  Permission: tpscommands.reload

'tpscommands version'
  Description: Shows the current plugin version
  Permission: tpscommands.version

'tpscommands execute'
  Description: Starts the execution task manually
  Permission: tpscommands.execute

'(no command)'
  Description: With this Permission you will get notified if an update has been released
  Permission: tpscommands.update

Dependencies:

Support:
If you have any question about this Plugin, feel free to message me on Discord: Just#0001

Configuration File:

# .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .-----------------. .----------------.  .----------------.
#| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
#| |  _________   | || |   ______     | || |    _______   | || |     ______   | || |     ____     | || | ____    ____ | || | ____    ____ | || |      __      | || | ____  _____  | || |  ________    | || |    _______   | |
#| | |  _   _  |  | || |  |_   __ \   | || |   /  ___  |  | || |   .' ___  |  | || |   .'    `.   | || ||_   \  /   _|| || ||_   \  /   _|| || |     /  \     | || ||_   \|_   _| | || | |_   ___ `.  | || |   /  ___  |  | |
#| | |_/ | | \_|  | || |    | |__) |  | || |  |  (__ \_|  | || |  / .'   \_|  | || |  /  .--.  \  | || |  |   \/   |  | || |  |   \/   |  | || |    / /\ \    | || |  |   \ | |   | || |   | |   `. \ | || |  |  (__ \_|  | |
#| |     | |      | || |    |  ___/   | || |   '.___`-.   | || |  | |         | || |  | |    | |  | || |  | |\  /| |  | || |  | |\  /| |  | || |   / ____ \   | || |  | |\ \| |   | || |   | |    | | | || |   '.___`-.   | |
#| |    _| |_     | || |   _| |_      | || |  |`\____) |  | || |  \ `.___.'\  | || |  \  `--'  /  | || | _| |_\/_| |_ | || | _| |_\/_| |_ | || | _/ /    \ \_ | || | _| |_\   |_  | || |  _| |___.' / | || |  |`\____) |  | |
#| |   |_____|    | || |  |_____|     | || |  |_______.'  | || |   `._____.'  | || |   `.____.'   | || ||_____||_____|| || ||_____||_____|| || ||____|  |____|| || ||_____|\____| | || | |________.'  | || |  |_______.'  | |
#| |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | |
#| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
# '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'

config-version: 3
#DO NOT CHANGE THAT

Prefix: "&8[&6TpsCommands&8]: "
#You can use color codes here

no-permission-message: "{Prefix}&cYou don't have the permission to use that command"
#You can use color-codes here
#Placeholders:
#{Prefix} - Returns Prefix

reload-message: "{Prefix}&2The configuration has been reloaded!"
#You can use color-codes here
#Placeholders:
#{Prefix} - Returns Prefix

tps-message: "{Prefix}&rActual Tps: {Tps}"
#You can use color-codes here
#Placeholders:
#{Prefix} - Returns Prefix
#{Tps} - Returns current Tps

manual-execute-message: "{Prefix}&2Successfully executed the commands!"
#You can use color-codes here
#Placeholders:
#{Prefix} - Returns Prefix

check-interval: 20
#In this interval the tps will be checked and the commands
#and messages will be executed/sent
#In Ticks. (20 Ticks = 1 Second)
#REQUIRES RESTART

operator: '=='
#This will be used to execute commands
#It will compare the actual tps to the tps in the commands.yml
#Available: [==;<=;>=;!=]

hooks:
  PlaceholdersAPI: false

update-notify: true
#Change this, if you don't want to get notified when a update is available

Debug: false
#Enable to get a detailed Log what is happening in the console

Commands File:

# .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .-----------------. .----------------.  .----------------.
#| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
#| |  _________   | || |   ______     | || |    _______   | || |     ______   | || |     ____     | || | ____    ____ | || | ____    ____ | || |      __      | || | ____  _____  | || |  ________    | || |    _______   | |
#| | |  _   _  |  | || |  |_   __ \   | || |   /  ___  |  | || |   .' ___  |  | || |   .'    `.   | || ||_   \  /   _|| || ||_   \  /   _|| || |     /  \     | || ||_   \|_   _| | || | |_   ___ `.  | || |   /  ___  |  | |
#| | |_/ | | \_|  | || |    | |__) |  | || |  |  (__ \_|  | || |  / .'   \_|  | || |  /  .--.  \  | || |  |   \/   |  | || |  |   \/   |  | || |    / /\ \    | || |  |   \ | |   | || |   | |   `. \ | || |  |  (__ \_|  | |
#| |     | |      | || |    |  ___/   | || |   '.___`-.   | || |  | |         | || |  | |    | |  | || |  | |\  /| |  | || |  | |\  /| |  | || |   / ____ \   | || |  | |\ \| |   | || |   | |    | | | || |   '.___`-.   | |
#| |    _| |_     | || |   _| |_      | || |  |`\____) |  | || |  \ `.___.'\  | || |  \  `--'  /  | || | _| |_\/_| |_ | || | _| |_\/_| |_ | || | _/ /    \ \_ | || | _| |_\   |_  | || |  _| |___.' / | || |  |`\____) |  | |
#| |   |_____|    | || |  |_____|     | || |  |_______.'  | || |   `._____.'  | || |   `.____.'   | || ||_____||_____|| || ||_____||_____|| || ||____|  |____|| || ||_____|\____| | || | |________.'  | || |  |_______.'  | |
#| |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | |
#| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
# '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'

#Here you can add the commands, which should be executed.


active-commands: #Add the numbers of the commands you want to be executed
  - 1
commands-at-tps:                          #Now add the commands here
  1:                                      #Command Number
    command: "testcommand"                #The Command. You don't need to use the / in front
    tps: 10                               #Tps. Self explaning.
    message: "TestMessage"                #This Message will be broadcasted when the Command is executed. Set it to 'none' to disable

Terms of Service:

  • Decompilation is not allowed
  • Do NOT post any bugs in the review section

Do you enjoy using this Plugin? Don't forget to leave a review ;)

English is NOT my main language. Please keep that in mind. My english might not be perfect.

Similar projects

Plugin →