
daneleo5
Members-
Posts
25 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
daneleo5's Achievements

Tree Puncher (2/8)
0
Reputation
-
ohhhh haha thx a bunch Mew
-
@Override public boolean isUsernameIndex(int astring) { return false; } seemed to have fixed it. i also added in this to display text when you type /gold help but it doesn't do noting @Override public void processCommand(ICommandSender icommandsender, String[] astring) { if (astring[0].equals("StringOfSubCommand1")) { EntityPlayer player = (EntityPlayer)icommandsender; player.addChatMessage("test"); //Just send a simple message to player } else if (astring[0].equals("StringOfSubcommand2")) { // execute code for second sub command } // etc.
-
i put it back to yours because it just didn't do anything just this part of your code doesn't like me lol [] - errors @Override public boolean [isUsernameIndex(String[] astring, int i)] { return false; The method isUsernameIndex(String[], int) of type commands must override or implement a supertype method public class [commands] implements ICommand{ The type commands must implement the inherited abstract method ICommand.isUsernameIndex(int) java.lang.Error: Unresolved compilation problem: The type commands must implement the inherited abstract method ICommand.isUsernameIndex(int) at daneleo5.commands.isUsernameIndex(commands.java:14) at net.minecraft.command.CommandHandler.getUsernameIndex(CommandHandler.java:231) at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:35) at net.minecraft.network.NetServerHandler.handleSlashCommand(NetServerHandler.java:769) at net.minecraft.network.NetServerHandler.handleChat(NetServerHandler.java:735) at net.minecraft.network.packet.Packet3Chat.processPacket(Packet3Chat.java:60) at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:80) at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:136) at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:57) at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:108) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:599) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:123) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:497) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) --- END ERROR REPORT adbfaca6 ----------
-
Thx Mew the only problem i have now is The method isUsernameIndex(String[], int) of type commands must override or implement a supertype method but i just put it to @Override public boolean isUsernameIndex(int var1) { // TODO Auto-generated method stub return false; } which fixed it i think since it loads up the only problem is if i type /gold it "an unknown error occurred while attempting to perform this command" Also thx a bunch Mew if it wasn't for u i would't have got this far
-
oh that's good felt like an idiot haha, yer sure PlayerInfo info = Database.getPlayerInfo(player.username); Playerinfo & database cant be resolved TheMod - cant be resolved(gussing its my client proxy? tried that and it erred EnumChatFormatting - cannot be resolved to a variable @Override public boolean isUsernameIndex(String[] astring, int i) { return false; } must override supertype or method
-
sorry to be even more of a pain but i really should of said im working with 1.4.7 until some mods i have got updates for redpower, ic2 etc, really sorry about that im guessing thats why some of them are red for me once again my apologies for u writing all that code
-
Yer that's right sorry i though they were called alias, thx Mew and also thx d4rkfly3r for the effort really appreciate it but yer how would i go about doing that and im liking the alias now as well sorry to be a pain
-
i have added commands to my project but i was wondering how i go about making alias like /mt Help /mt add etc i have already created the commands class and its registered in my proxy's and so on. so if its possible would you be able to show an example thank you
-
I'm making these npc's for a project I'm working on with friends and I'm adding commands to it now eg i have already added /npcv but i was wonder if there is anyway to add one to remove all Created npcs and aim at one with the cursor and remove it?
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...) ahha thank you Draco for the help
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here What Darknesschaos said, plus: ModLoader.addName(Knife,"Knife"); Knife.iconIndex = ModLoader.addOverride(...); ModLoader.addRecipe(...) Doing that with Forge looks like this: LanguageRegistry.addName(Knife,"Knife"); GameRegistry.registerItem(Knife,"Knife"); Knife.iconIndex = //stuff I've forgotten since I moved away from 1.4.x GameRegistry.addShapedRecipe(...) ahha thank you Draco for the help
-
i feel like punching my self now since i made an npc with modloader oh well back to the drawing board thx for all the help guys. time to look for a tut on the wiki for an npc anyways i'l just dlete the whole MCP and re install forge, still don't know how modloader got in there
-
i feel like punching my self now since i made an npc with modloader oh well back to the drawing board thx for all the help guys. time to look for a tut on the wiki for an npc anyways i'l just dlete the whole MCP and re install forge, still don't know how modloader got in there
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here
-
I don't wanna sound stupid or anything but i don't understand how my code is modloader? I got MCP setup with Forge and installed it with the 'Install.bat' I though that it was FML, when i start the 'startclient.bat' and 'startserver.bat' it says its running FML, just confused me a little i understand it says 'Modloader.' but i though it gets it from FML since i import it from here