-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Thanks for the awesome plugin, Walter! Can't wait to get it working.
The example code doesn't work for me. I've tested with Craftbukkit beta 1.7.9-R0.2 and recommended 1.6.4-R2.0.
Here's the error I get when I try your sample code:
[14:06:13] [Server thread/ERROR]: [scriptcraft] Plugin /Users/andy/Documents/minecraft_server/plugins/scriptcraft/plugins/andy/MQTT.js Error: Error executing module /Users/andy/Documents/minecraft_server/plugins/scriptcraft/plugins/andy/MQTT.js line #95 : Can't find method org.eclipse.paho.client.mqttv3.MqttClient.connect(object). (#95)
It's this line that breaks:
client.connect({ keepAliveInterval: 10000 });
The rest seems to be working. If I comment out that line, I get a more sensible error on the next line complaining that the client is not connected:
16:04:14 [SEVERE] [scriptcraft] Plugin /Users/andy/Documents/minecraft_server/plugins/scriptcraft/plugins/andy/MQTT.js Error: Error executing module /Users/andy/Documents/minecraft_server/plugins/scriptcraft/plugins/andy/MQTT.js line #119 : org.eclipse.paho.client.mqttv3.MqttException: Client is not connected