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
@@ -48,11 +48,10 @@ public class PublicHomeCommand extends CommandBase implements TabCompleter {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (!(sender instanceof Player)) {
|
||||
if (!(sender instanceof Player p)) {
|
||||
handleConsolePublicHomeTeleport(sender, args);
|
||||
return true;
|
||||
}
|
||||
Player p = (Player) sender;
|
||||
if (args.length == 0) {
|
||||
PublicHomeListCommand.displayPublicHomeList(p, 1);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user