mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Fix format parsing in /spawner (Fixes #5680)
This commit is contained in:
parent
dfc5c49f56
commit
14125d9c4c
@ -873,7 +873,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
|||||||
sender.sendMessage(command.getUsage().replace("<command>", commandLabel));
|
sender.sendMessage(command.getUsage().replace("<command>", commandLabel));
|
||||||
}
|
}
|
||||||
if (!ex.getMessage().isEmpty()) {
|
if (!ex.getMessage().isEmpty()) {
|
||||||
sender.sendMessage(ex.getMessage());
|
sender.sendComponent(AdventureUtil.miniMessage().deserialize(ex.getMessage()));
|
||||||
}
|
}
|
||||||
if (ex.getCause() != null && settings.isDebug()) {
|
if (ex.getCause() != null && settings.isDebug()) {
|
||||||
ex.getCause().printStackTrace();
|
ex.getCause().printStackTrace();
|
||||||
|
@ -39,7 +39,7 @@ public class Commandbroadcastworld extends EssentialsCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {
|
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {
|
||||||
if (args.length < 2) {
|
if (args.length < 2) {
|
||||||
throw new NotEnoughArgumentsException("world");
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
final World world = ess.getWorld(args[0]);
|
final World world = ess.getWorld(args[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user