/protocolsupport command improvements

CommandHelper:
- Moved (args.length == 1) into one enclosing if statement
- Added proper usage message in case of invalid command. onCommand now
always returns true.
- Added checks for new config values (see below)

ProtocolSupport:
- Added two config values
- expose-plugin if set to false will send unknown command message if
someone without permission attempts to execute /ps to avoid exposure of
the plugin if wanted. default value is true (send "no power" message)
- list-only-relevant-versions if set to true will only list versions
that have connected players in /ps list ; default value is false (list
all versions regardless)

These changes should make ProtocolSupport commands more accessible to
users without programming knowledge.
2 files changed
tree: 567651e25ffa7f136abe752a1c06883c86861694
  1. .gitattributes
  2. .gitignore
  3. LICENSE
  4. README.md
  5. build.gradle
  6. buildprocessor/
  7. gradle/
  8. gradlew
  9. gradlew.bat
  10. resources/
  11. settings.gradle
  12. src/protocolsupport/
  13. tests/api/
README.md

ProtocolSupport

Build Status Chat

Support 1.11, 1.10, 1.9, 1.8, 1.7, 1.6, 1.5, 1.4.7 client on Spigot 1.12 and GlowStone

Important notes:

  • Only latest version of this plugin is supported
  • This plugin can't be reloaded or loaded not at server startup
  • This plugin doesn't work with netty native transport

Known issues:

  • [Anything that is not latest] Items in creative mode may not work as expected, or may not work at all

Known wontfix issues:

  • [1.8 and earlier] Thrown potion texture is invalid
  • [1.8 and earlier] Can't control vehicle
  • [1.6 and earlier] Stats are not sent

================

Spigot: http://www.spigotmc.org/resources/protocolsupport.7201/

BukkitDev: https://dev.bukkit.org/projects/protocolsupport/

Jenkins: http://build.true-games.org/job/ProtocolSupport/

================

Licensed under the terms of GNU AGPLv3