use of com.karanumcoding.adamantineshield.db.queue.ChatQueueEntry in project AdamantineShield by Karanum.
the class ChatListener method onChatCommandEvent.
@Listener
public void onChatCommandEvent(SendCommandEvent e, @Root Player p) {
if (!logCommands)
return;
String command = e.getCommand();
if (!e.getArguments().isEmpty()) {
command += " " + e.getArguments();
}
db.addToQueue(new ChatQueueEntry(p, ChatType.COMMAND, command, new Date().getTime()));
}
Aggregations