Skip to content
Success

Denizen (Jul 26, 2023, 11:21:03 AM)

Started 2 yr 6 mo ago
Took 35 sec
Build Artifacts
denizen-1.2.8-SNAPSHOT.jar3.17 MiB view
denizen-1.2.8-SNAPSHOT.pom4.61 KiB view
`/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)
31237389+tal5 at