Hello, I did a search for this, but i still cant see the problem.
I have 2 extensions installed from the Unity3d examples (avatar chat and rts game). After getting things to work, I watched this video:
http://www.youtube.com/watch?v=2Elug...eature=related
I tried to follow it as best I can using Eclipse instead of NetBeans. Here at work, everyone uses eclipse for java development, so this is why I went with eclipse. To create my jar, I right click on the project and click export. This allows me to create a jar file. Also, there doesn't seem to be an option to creat a java lib, like in net beans. Anyway, when i try to install the hello world plugin I created (and i remove the other plugins) my plugin does not show up. (yes i restart ES5)
If i dont remove the 2 extensions, and try to add in the plugin i created, I get this error:
faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]. URL: http://localhost:8080/jmx/read/com.e...09462912753224'
Here is java my code
here is my Extension.xmlCode:import com.electrotank.electroserver5.extensions.BasePlugin; import com.electrotank.electroserver5.extensions.api.value.EsObject; import com.electrotank.electroserver5.extensions.api.value.EsObjectRO; public class main extends BasePlugin { @Override public void request(String playerName, EsObjectRO requestOb) { getApi().getLogger().debug(playerName+" sent request"); if(requestOb.getString("action").equals("requestHello")) { EsObject sendOb = new EsObject(); sendOb.setString("action","hello sent"); sendOb.setString("message", "hello buddy!"); getApi().sendPluginMessageToUser(playerName, sendOb); } } }
im not sure what I did wrong, but any help is appreciated.Code:<?xml version="1.0" encoding="utf-8" ?> <Extension> <Name>HelloWorldExtension</Name> <Plugins> <Plugin> <Handle>helloWorld</Handle> <Type>Java</Type> <Path>main</Path> </Plugin> </Plugins> </Extension>


Reply With Quote
