Everything posted by TheGamerPlayz
-
[1.7.10] ServerCustomPacketEvent not firing
How unfortunate.
-
[1.7.10] ServerCustomPacketEvent not firing
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?
-
How to add permissions to a Command
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
-
How to add permissions to a Command
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); } }
-
How to add permissions to a Command
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.
-
How to add permissions to a Command
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
-
How to add permissions to a Command
Using ICommand how would I add permissions to a command?
-
Storing and getting data
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.
-
Storing and getting data
I read the docs, but they never said how to do anything that a new forge-learner would know
-
Storing and getting data
Ok how would I attach this data to a player? By data I mean numbers with a label such as 'STR: 99'
-
Storing and getting data
What would I use as a means to store and get data?
-
Help with Server Side mods
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
-
Help with Server Side mods
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
-
Adding projects to Gradle
Yes I just found that thanks
-
Adding projects to Gradle
I saw this and it never explained how to declare the dependencies
-
Adding projects to Gradle
Where would I add an external Jar file to import it into my project?
-
error: package does not exist
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.
-
How to add a delay
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?
IPS spam blocked by CleanTalk.