Posted May 25, 201411 yr Is there any way to more efficiently make the server run a command? Currently when I use String command = ("/eco give " + auctioner.getDisplayName() + " " + highBid); ((ServerCommandManager) MinecraftServer.getServer().executeCommand(command); It tells me that the command is not known, because the command is not vanilla minecraft i'm assumin, I do know if you manually type out the command /eco give playername number in console it does work. How would I hook this mod to work along side this bukkit plugin? String command = ("/eco give " + auctioner.getDisplayName() + " " + highBid); ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).executeCommand(BaseMod.fakePlayer, command); I've even tried setting up a fake player to run the command.
May 26, 201411 yr --------------------- Edited August 18, 20187 yr by chimera27 Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more! http://i.imgur.com/ghgWmA3.jpg[/img]
May 26, 201411 yr Author yeah, i've also tried that, except it literally prints out "/eco give playername number"
May 26, 201411 yr Have you tried removing the / in front of the command? This is normally not used when typing commands in console, so it might not be used here either? http://jacobschwartz.net/
May 30, 201411 yr Author I have tried that before, but I think the issue MAY be MCPC screwin up the command.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.