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
Posts by King Nothing
Latest hotfix: 0.9 (2025-11-05)
-
-
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
-
Display MoreJavadb.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
-
SELECT * FROM XXXXX WHERE Player_user = GetPlayer
db.executeUpdate("INSERT INTO `XXXXX` (Player_user,PLayer_money) VALUES (GetPlayer, 2000);");
(GetPLayer is String GetPlayer = p.getName();)
Caused by: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such column: GetPlayer)
at org.sqlite.DB.newSQLException(DB.java:383)
at org.sqlite.DB.newSQLException(DB.java:387)
at org.sqlite.DB.throwex(DB.java:374)
at org.sqlite.NativeDB.prepare(Native Method)
at org.sqlite.DB.prepare(DB.java:123)
at org.sqlite.Stmt.executeQuery(Stmt.java:121)
at pluginapi.objects.SQLiteDatabaseAPI.executeQuery(SourceFile:57)
at EffNet.EffNet.onConnect(EffNet.java:68)
... 8 more -
actualluy I'm making EffNet its loosely based on Vornet, so if you want to butt heads and collaborate its up to you.
-
thank you , I never know I could define variables outside an event
-
what I am trying to do is
type /XXXX and an editable text field with an OK button pops up
I set the ok button to clickable, but I need the "onGuiElementClickEvent" in order for it to work, I am confused on how to do this.
Display MoreCode -
I tried Adding a Text Field and all i got was a white Screen
I tried Adding a database, that gave me errors
What I am trying to do is NOT possible or the API is full of bugs.Display MoreCode
This Code should NOT make the Screen Completly Whiteif any one can chat with me on steam, feel free.
-
I'm assuming this is Normal when you add a text Field? i scaled it down and i get a big white screen
Display MoreCode
-
heres a color chart that may help http://www.nthelp.com/colorcodes.htm
thank you. i've been googling the color codes with NO luck.
-
thanks and sorry for the caps, I was just getting frustrated because my database won't work so now I'm working on a different Project and this GUI Thing is getting on my nerves
and when I think of RGBA I think of
this: rgba(255, 0, 0, 0.3)I don't know where you are coming up with (Oox000000BB) it looks like an extended version of the hexadecimal colors.
-
I read and pulled apart Red's Guestbook Plugin and of course it didn't show up in the game.
all I Want is to place a simple Box on the screen so the player can enter info..
any help would be appreciated.
-
the above code SHOULD work and update the record.
-
the VALUES are variables, not fixed values.
-
Display MoreJavadb.execute("CREATE TABLE IF NOT EXISTS 'MailPeople' ('player_name' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'recipient_name' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'time' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'text' CHAR(64) NOT NULL DEFAULT('[NoTime]'), 'read');");
Now the console says "Recpiant is a "Column," it is clearly in the VALUES I've tried everything to write a variable, coukd someone please tell me what the heck I am doing wrong?
-
Display MoreJava
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.ArrayIndexOutOfBoundsException: 1
at Commands.Commands.onCommand(Commands.java:79)
... 9 more
Mirrawe helped me and I still cannont figure this out.... -
Never mind.. I moved the bracket and it worked
-
package Mail;
import net.risingworld.api.Plugin;
import net.risingworld.api.events.EventMethod;
import net.risingworld.api.events.Listener;
import net.risingworld.api.events.player.PlayerCommandEvent;
import net.risingworld.api.objects.Player;
public class Mail extends Plugin implements Listener{
@Override
public void onEnable(){
registerEventListener(this);
}
@Override
public void onDisable(){
//...
}
@EventMethod
public void onPlayerCommand(PlayerCommandEvent event){
Player player = event.getPlayer();
String command = event.getCommand();
//split the command
String[] cmd = command.split(" ");
//check the command
if(cmd[0].equals("/mail")){
//check if player Entered a Recipeant
if(cmd.length > 1){
String towhom = command.substring(5);
player.sendTextMessage("Sent Mail to:" + towhom);
}}
else{
//inform player that he has to enter the recpiant
player.sendTextMessage("[#FF0000]You Need to Specify Who You are Mailing!");
player.sendTextMessage("[#FF0000]USAGE: /mail UncleBob");}
}
}
It will say "Mail sent to: XXXX" but when I just type in "/mail" it won't see the Else Command, it doesn't say anything i the chat
-
I was Informed by Yahgiggle that is Possible to make Your own Vehicle with the api?? all you have to do is lock to your screen. that sounds awesome