Code
when a user tries to to do Creative, it is disabled.
when a user tries to to do Creative, it is disabled.
Stink Bombs --- WHOO HOOO
I used Miarre's help, Red's help, yahgiggle's help, It will NOT work, it stopped the Null error, that went away, It seems to completely ignore the
block.
Iwish I knew what the problem is, Everyone has their database working, My plugin doesn;t want to work for some reason
I am at a loss right now, i want to get the basic Mecahincs working so I can move on. if anyone has the time to go line by line and see why it will not work please feel free to do so. i will fix the line at player spwan, that is an easy fix.. pleade help me get this working, it has been a week nd stil getting NOTHING
that's why I'm Cramming everything into one plugin, no sense of making 20 plugins when all you have to do is keep adding featues to the one you currently have, I was going to make a separate mail plugin but that will put into EffNet, along with money and shopping.,
We are cleaning up and removing defunct areas, i am currently Working out the bugs In EffNet (currency and other Cool Features), We Currently have 5 levels, you can build anywhere you want, you may build roads going to the main roads. we have Admins that are wiling to help you, we will answer any questions you may have.
I temporalily took that out, i am aware of that, The database works like its supposed to., it reads Writes and updates, I get this error:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at pluginapi.PluginEventHandler.triggerEvent(SourceFile:166)
at aF.b.a(SourceFile:171)
at aF.b.messageReceived(SourceFile:121)
at k.e.a(SourceFile:109)
at k.c.run(SourceFile:65)
Caused by: java.lang.NullPointerException
at Test.Test.onCommand(Test.java:83)
... 9 more
when i Comment it out, the plugin works, when i put it in, it Errors out.
i looked up the error, how do I set it to null???
There is data in the database, i put some in for testing, i have to check if the user is new that is why onSpawn isn't finished.
db.execute("CREATE TABLE IF NOT EXISTS 'Money' ('player_name' CHAR(64) NOT NULL DEFAULT ('[NoName]'), 'Player_money' INTEGER NOT NULL DEFAULT ( 0 ));");
String query = "INSERT INTO Money ('player_name', 'Player_money') VALUES ('"+playerName+"', 2000);";
db.executeUpdate("UPDATE Money SET player_name = '"+playerName+"', Player_money=666 WHERE player_name = '"+playerName+"'");
//db.executeUpdate ("INSERT INTO EffNet ('Player_user','Player_money') VALUES ('"+playerName+"','"+totalmoney+"');");
Why is there an error in on 80?
ok I just used my test code plugin, inserted the command, issued it in RW, it worked, but it completly igorned the IF statement and wrote it anyway. how do I make so it will see the IF statement?
ok is there a way to call it from "onCommand"? I'm Tring to make it Write some data after I issue a /command.
Windows 10, and OK, that was weird, I called it in onSpawn and it wrote the File, I used onCommand and it didn't do anything...
File data = new File(getPath() + "/data.txt");
boolean content = Utils.FileUtils.writeStringToFile("hi",data);
there is NO file data.txt anywhere
sorry, it screwed up my plugins, had to take it out
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at pluginapi.PluginEventHandler.triggerEvent(SourceFile:166)
at aF.b.a(SourceFile:171)
at aF.b.messageReceived(SourceFile:121)
at k.e.a(SourceFile:109)
at k.c.run(SourceFile:65)
Caused by: java.lang.IllegalStateException: No serializer found for class l.x
at de.jiw.network.serializing.Serializer.getClone(Serializer.java:125)
at k.c.b(SourceFile:51)
at k.e.a(SourceFile:113)
at k.b.send(SourceFile:48)
at k.b.send(SourceFile:43)
at pluginapi.manager.PluginGuiManager.updateGuiTextField(SourceFile:167)
at net.risingworld.api.gui.GuiTextField.updateTextField(GuiTextField.java:201)
at net.risingworld.api.gui.GuiTextField.setText(GuiTextField.java:53)
at EffNet.EffNet.onCommand(EffNet.java:133)
... 9 more
Thank you, and Sorry for double Posting... I honestly forgot i posted the same Thing, all I wanted was to get this stupid database working. I was on the verge of shooting my Computer. thats how fustrated was
db.execute("CREATE TABLE IF NOT EXISTS `EffNet` (`Player_user` VARCHAR(64), 'PLayer_money' INTEGER);");
db.executeUpdate ("INSERT INTO EffNet ('Player_user','PLayer_money') VALUES ('"+GetPlayer+"',2000);");
db.executeUpdate ("INSERT INTO EffNet ('Player_user','PLayer_money') VALUES ('"+GetPlayer+"',2000);");
and I did reply to my old topic and no one answered
i used your example in the Javadoc,
i'm just Getting Fustrate and Cannot think straight.. this is really draining me
its still giving me the same EXACT error