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

TheGamerPlayz

Members
  • Posts

    18
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

TheGamerPlayz's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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
×
×
  • Create New...

Important Information

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