Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by TheGamerPlayz

  1. Hello, I'm new to forge modding (But not to java), but have never really messed with servers and clients. I am using a method of packets that use the ServerCustomPacketEvent however it is not firing. I have a KeyInputEvent being registered in the same way and it is firing just fine. This would be the ServerCustomPackEvent: This is the ProccessPacketServerSide: This is how I am sending the packet: And this is where I am registering the event: Does anyone see any reason it would not be receiving the Packet?
  2. Sorry, but could you show me what you mean? Every time I try to override checkPermission it says that it is not a proper method and removes @Override
  3. I think I misunderstood you or the otherway around, but here is what I have so far. I extended CommandBase, but let Eclipse automatically add everything public class Commands extends CommandBase{ ICommandManager icommandmanager; HashMap<String, HashMap<String, Integer>> plyrStats; public Commands(HashMap<String, HashMap<String, Integer>> plyrStats){ this.plyrStats = plyrStats; } @Override public String getCommandName(){ return "resetstats"; } @Override public String getCommandUsage(ICommandSender icommandsender){ return "ResetStats"; } @Override public void processCommand(ICommandSender icommandsender, String[] args) { resetStats((EntityPlayer) icommandsender); } }
  4. When It auto-implemented the needed methods checkPermissions never appeared. Also what would be the necessary checks? Sorry if I sound like a "noob" I'm used to Spigot.
  5. So I swapped to CommandBase and I have to say its a bit simpler. I mean a server-side command. It seems that by default you must have OP to use them
  6. Using ICommand how would I add permissions to a command?
  7. Almost nothing. It speaks of events yet never explains what calls them nor what they do. It never tells how to store or get data as well. Also it rarely speaks of a player entity usually only speaking of items.
  8. I read the docs, but they never said how to do anything that a new forge-learner would know
  9. Ok how would I attach this data to a player? By data I mean numbers with a label such as 'STR: 99'
  10. What would I use as a means to store and get data?
  11. Sorry I thought I made it clear. The problem is that it is needed for both the client and the server and I want it to be Server-side only. I have not made a Server-Side only mod, so I am wondering if someone could look it over and tell my what is causing it to be so. I am currently testing acceptableRemoteVersions now
  12. What is wrong with my code that makes it non Serverside-only? main Commands I haven't made a server side only mod before and am relatively new to forge, so if you see something wrong or inefficient with my code please tell me
  13. I saw this and it never explained how to declare the dependencies
  14. Where would I add an external Jar file to import it into my project?
  15. I am trying to add an external forge mod to mine and when I try to import it it tells me this I know that I have added it to the build path. Does anyone know the solution to this? warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\theno\Desktop\forge\build\sources\java\me\xthegamerplayz\ResetStats\main.java:5: error: package JinRyuu.JRMCore does not exist import JinRyuu.JRMCore.JRMCoreH; ^ C:\Users\theno\Desktop\forge\build\sources\java\me\xthegamerplayz\ResetStats\main.java:25: error: cannot find symbol int[] PlyrAttrbts = JRMCoreH.PlyrAttrbts(par1EntityPlayer); ^ symbol: variable JRMCoreH location: class main 2 errors 1 warning FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  16. I am new to forge modding and whenever I try thread.sleep or some other form of it, it freezes the game instead of pausing the script. Does anyone know a way for this?
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.