mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 18:48:24 +01:00
Fix /sudo message display.
This commit is contained in:
parent
9bd0c33fef
commit
ed7fe9213f
@ -1,6 +1,7 @@
|
|||||||
package com.earth2me.essentials.commands;
|
package com.earth2me.essentials.commands;
|
||||||
|
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
|
import com.earth2me.essentials.Util;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.PluginCommand;
|
import org.bukkit.command.PluginCommand;
|
||||||
@ -36,7 +37,7 @@ public class Commandsudo extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Translate this.
|
//TODO: Translate this.
|
||||||
sender.sendMessage("Forcing " + user.getDisplayName() + " to run: /" + command + " " + arguments);
|
sender.sendMessage("Forcing " + user.getDisplayName() + " to run: /" + command + " " + getFinalArg(arguments, 0));
|
||||||
|
|
||||||
final PluginCommand execCommand = ess.getServer().getPluginCommand(command);
|
final PluginCommand execCommand = ess.getServer().getPluginCommand(command);
|
||||||
if (execCommand != null)
|
if (execCommand != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user