function procCmd(command) {
var cmd = command.split(" ");
var myCommand = "swords";
if(cmd[0] == myCommand) {
clientMessage("The swords have been added to your inventory!");
Player.addItemInventory(268, 1, 0);
Player.addItemInventory(272, 1, 0);
Player.addItemInventory(267, 1, 0);
Player.addItemInventory(283, 1, 0);
Player.addItemInventory(276, 1, 0);
}
}
I want to add each sword to the player's inventory. When I download it on to BlockLauncher, there's no error, it just gives me this message when I try to type /swords: "Unknown command. Try /help for a list of commands." What's wrong?
Thanks, but that's not it. It is definitely enabled. I've tried everything. It just gives me the "Error: No command found. Type /help for a list of commands." or whatever. Maybe it's the beta BlockLauncher's problem? It looks good to me as well, just weird that it won't work.
Here's the code:
function procCmd(command) {
var cmd = command.split(" ");
var myCommand = "swords";
if(cmd[0] == myCommand) {
clientMessage("The swords have been added to your inventory!");
Player.addItemInventory(268, 1, 0);
Player.addItemInventory(272, 1, 0);
Player.addItemInventory(267, 1, 0);
Player.addItemInventory(283, 1, 0);
Player.addItemInventory(276, 1, 0);
}
}
I want to add each sword to the player's inventory. When I download it on to BlockLauncher, there's no error, it just gives me this message when I try to type /swords: "Unknown command. Try /help for a list of commands." What's wrong?
Thanks, but that's not it. It is definitely enabled. I've tried everything. It just gives me the "Error: No command found. Type /help for a list of commands." or whatever. Maybe it's the beta BlockLauncher's problem? It looks good to me as well, just weird that it won't work.
Okay, thanks! It's nice to know that it works, anyway.