mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Java 16 optimisations
This commit is contained in:
1 parent
46dd32d5c2
commit
e1113efeac
23 files changed
+116
-173
No files matched your search
@@ -27,11 +27,10 @@ public class WarpCommand extends CommandBase {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (!(sender instanceof Player)) {
|
||||
if (!(sender instanceof Player p)) {
|
||||
handleConsoleWarp(sender, args);
|
||||
return true;
|
||||
}
|
||||
Player p = (Player) sender;
|
||||
if (!HuskHomes.getSettings().doWarpCommand()) {
|
||||
MessageManager.sendMessage(p, "error_command_disabled");
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user