Commits

md_5 authored a4b56a40cf4
SPIGOT-3456: Expand calling of ServerCommandEvent

Existing usage preserved by checking sender.
No tags

src/main/java/org/bukkit/event/server/ServerCommandEvent.java

Modified
1 1 package org.bukkit.event.server;
2 2
3 3 import org.bukkit.command.CommandSender;
4 4 import org.bukkit.event.Cancellable;
5 5 import org.bukkit.event.HandlerList;
6 6
7 7 /**
8 - * This event is called when a command is run from the server console. It is
8 + * This event is called when a command is run by a non-player. It is
9 9 * called early in the command handling process, and modifications in this
10 10 * event (via {@link #setCommand(String)}) will be shown in the behavior.
11 11 * <p>
12 12 * Many plugins will have <b>no use for this event</b>, and you should
13 13 * attempt to avoid using it if it is not necessary.
14 14 * <p>
15 15 * Some examples of valid uses for this event are:
16 16 * <ul>
17 17 * <li>Logging executed commands to a separate file
18 18 * <li>Variable substitution. For example, replacing <code>${ip:Steve}</code>

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut