geforkt von Mirrors/Paper
Fix some messages
Addresses BUKKIT-5272, BUKKIT-5282, and BUKKIT-5283 By: Wesley Wolfe <weswolf@aol.com>
Dieser Commit ist enthalten in:
Ursprung
32f2dca3ed
Commit
038c99a7f4
@ -14,7 +14,7 @@ import com.google.common.collect.ImmutableList;
|
|||||||
public class SayCommand extends VanillaCommand {
|
public class SayCommand extends VanillaCommand {
|
||||||
public SayCommand() {
|
public SayCommand() {
|
||||||
super("say");
|
super("say");
|
||||||
this.description = "Broadcasts the given message as the console";
|
this.description = "Broadcasts the given message as the sender";
|
||||||
this.usageMessage = "/say <message ...>";
|
this.usageMessage = "/say <message ...>";
|
||||||
this.setPermission("bukkit.command.say");
|
this.setPermission("bukkit.command.say");
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ final class PluginClassLoader extends URLClassLoader {
|
|||||||
Validate.notNull(javaPlugin, "Initializing plugin cannot be null");
|
Validate.notNull(javaPlugin, "Initializing plugin cannot be null");
|
||||||
Validate.isTrue(javaPlugin.getClass().getClassLoader() == this, "Cannot initialize plugin outside of this class loader");
|
Validate.isTrue(javaPlugin.getClass().getClassLoader() == this, "Cannot initialize plugin outside of this class loader");
|
||||||
if (this.plugin != null || this.pluginInit != null) {
|
if (this.plugin != null || this.pluginInit != null) {
|
||||||
throw new IllegalArgumentException("Plugin already intialized!", pluginState);
|
throw new IllegalArgumentException("Plugin already initialized!", pluginState);
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginState = new IllegalStateException("Initial initialization");
|
pluginState = new IllegalStateException("Initial initialization");
|
||||||
|
@ -10,6 +10,6 @@ public class ChannelNotRegisteredException extends RuntimeException {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ChannelNotRegisteredException(String channel) {
|
public ChannelNotRegisteredException(String channel) {
|
||||||
super("Attempted to send a plugin message through an unregistered channel ('" + channel + "'.");
|
super("Attempted to send a plugin message through the unregistered channel `" + channel + "'.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren