Skip to content

Commit

Permalink
Fixes #224
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekanio authored and Brikster committed Jul 29, 2023
1 parent e860641 commit 77373ef
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@

import com.google.gson.*;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import ru.mrbrikster.baseplugin.config.Configuration;
import ru.mrbrikster.chatty.Chatty;
Expand Down Expand Up @@ -111,7 +112,7 @@ public Optional<JsonElement> getProperty(Player player, String property) {
}

public boolean isIgnore(CommandSender recipient, CommandSender sender) {
if (sender != null) {
if (sender != null && !(recipient instanceof ConsoleCommandSender)) {
JsonElement jsonElement = Chatty.instance().getExact(JsonStorage.class)
.getProperty((Player)recipient, "ignore").orElseGet(JsonArray::new);

Expand Down

0 comments on commit 77373ef

Please sign in to comment.