mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix inconsistencies with /tpignore, close #238
This commit is contained in:
1 parent
ca70ed4ae9
commit
febb177f6c
4 files changed
+34
-9
No files matched your search
@@ -19,6 +19,12 @@ public class TpaAllCommand extends CommandBase {
|
||||
|
||||
@Override
|
||||
public void onExecute(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
|
||||
if (plugin.getRequestManager().isIgnoringRequests(onlineUser)) {
|
||||
plugin.getLocales().getLocale("error_ignoring_teleport_requests")
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.length != 0) {
|
||||
plugin.getLocales().getLocale("error_invalid_syntax", "/tpaall")
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
|
||||
Reference in new issue
Block a user