geforkt von SteamWar/BungeeCore
Fix command logging, Discord ticket log
Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
dbe27e92d2
Commit
ff6fe9eeb5
@ -103,7 +103,7 @@ public class DiscordTicketHandler extends ListenerAdapter {
|
|||||||
})
|
})
|
||||||
.collect(Collectors.toCollection(LinkedList::new));
|
.collect(Collectors.toCollection(LinkedList::new));
|
||||||
|
|
||||||
messages.add(new StringBuilder().append("<t:").append(Instant.now().getEpochSecond()).append("> **").append(event.getUser().getName()).append("**: Ticket closed"));
|
messages.addFirst(new StringBuilder().append("<t:").append(Instant.now().getEpochSecond()).append("> **").append(event.getUser().getName()).append("**: Ticket closed"));
|
||||||
|
|
||||||
LinkedList<StringBuilder> messageBuilders = new LinkedList<>();
|
LinkedList<StringBuilder> messageBuilders = new LinkedList<>();
|
||||||
messageBuilders.add(new StringBuilder());
|
messageBuilders.add(new StringBuilder());
|
||||||
|
@ -50,7 +50,7 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
public class ChatListener extends BasicListener {
|
public class ChatListener extends BasicListener {
|
||||||
|
|
||||||
private static final Logger rootLogger = Logger.getGlobal();
|
private static final Logger cmdLogger = Logger.getLogger("Command logger");
|
||||||
|
|
||||||
private static final List<String> rankedModes = ArenaMode.getAllModes().stream().filter(ArenaMode::isRanked).map(ArenaMode::getSchemType).toList();
|
private static final List<String> rankedModes = ArenaMode.getAllModes().stream().filter(ArenaMode::isRanked).map(ArenaMode::getSchemType).toList();
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ public class ChatListener extends BasicListener {
|
|||||||
else
|
else
|
||||||
name = source.toString();
|
name = source.toString();
|
||||||
|
|
||||||
rootLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
|
cmdLogger.log(Level.INFO, "%s -> executed command /%s".formatted(name, command));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren