Skip to content
Success

Changes

Summary

  1. `/ex(s)`: remove redundant checks, minor cleanups (commit: 014df1d) (details)
Commit 014df1dfa0c062805a1224f37944f15bec08dba9 by 31237389+tal5
`/ex(s)`: remove redundant checks, minor cleanups

Checks such as checking the command name, permission, etc. are no longer needed, as this is handled by Bukkit internally.
Also few minor cleanups:
- Updated some code to `instanceof` pattern matching
- Cleaned up sending debug to the player; can just use `sender`'s `sendMessage` methods instead of casting it to a player
- Renamed `onTabComplete`'s `cmdName` param to `alias`, as that's what it actually is.
- Removed some old commented out code from `ExCommandHandler`.

Reported on [Discord](https://discord.com/channels/315163488085475337/1133477089606123640).
(commit: 014df1d)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/command/ExSustainedCommandHandler.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/command/ExCommandHandler.java (diff)