We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Adrigamer2950
Learn more about funding links in repositories.
Report abuse
1 parent bebaa8d commit 2ce8af6Copy full SHA for 2ce8af6
api/src/main/java/me/adrigamer2950/adriapi/api/user/UserImpl.java
@@ -2,7 +2,6 @@
2
3
import me.adrigamer2950.adriapi.api.colors.Colors;
4
import net.kyori.adventure.text.Component;
5
-import org.bukkit.Bukkit;
6
import org.bukkit.command.CommandSender;
7
import org.bukkit.command.ConsoleCommandSender;
8
import org.bukkit.entity.Player;
@@ -28,12 +27,12 @@ public class UserImpl implements User {
28
27
29
@Override
30
public boolean isConsole() {
31
- return Bukkit.getConsoleSender().equals(sender);
+ return sender instanceof ConsoleCommandSender;
32
}
33
34
35
public boolean isPlayer() {
36
- return !isConsole();
+ return sender instanceof Player;
37
38
39
0 commit comments