update after a decade (+ greet messages, - redundant events)
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.Date;
|
||||
public class PlayerCommandPreprocess implements Listener {
|
||||
@EventHandler
|
||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
||||
Bukkit.getConsoleSender().sendMessage("PlayerCommandPreprocess event triggered");
|
||||
Bukkit.getConsoleSender().sendMessage("%s used a command".formatted(event.getPlayer().getName()));
|
||||
Player player = event.getPlayer();
|
||||
String[] command = event.getMessage().split(" "); // get the command name
|
||||
DiscordWebhook notify = new DiscordWebhook(ServerUtils.webhook_notify);
|
||||
|
||||
Reference in New Issue
Block a user