mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 00:51:34 +01:00
Use slf4j logger instead of direct print
This commit is contained in:
parent
5610b1a72a
commit
2f99567edf
@ -2,6 +2,8 @@ package net.minestom.server.command;
|
||||
|
||||
import net.minestom.server.permission.Permission;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CopyOnWriteArraySet;
|
||||
@ -11,11 +13,13 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
||||
*/
|
||||
public class ConsoleSender implements CommandSender {
|
||||
|
||||
private final static Logger LOGGER = LoggerFactory.getLogger(ConsoleSender.class);
|
||||
|
||||
private final Set<Permission> permissions = new CopyOnWriteArraySet<>();
|
||||
|
||||
@Override
|
||||
public void sendMessage(@NotNull String message) {
|
||||
System.out.println(message);
|
||||
LOGGER.info(message);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
Loading…
Reference in New Issue
Block a user