Forum: PTT
Here is a forum space for Technical: PTT.
Dear, I'm trying to configure a plugin in the standard version of ProPTT on Linux. I have been trying to do that with the sample provided (PTTPlugin3Sample.jar). The JAR file has been copied to std-server/ptt-server/plugins. It has the correct attributes I think: -rw-rw-r-- 1 peru peru 2530 Mar 5 07:17 PTTPlugin3Sample.jar peru is also the user starting the server I have updated the system.xml the following way: <plugins> <plugin> <name>PTTPlugin</name> <jar>PTTPlugin3Sample.jar</jar> <classname>PTTPlugin3Sample</classname> <arg>1234</arg> </plugin> </plugins> When I start the server I see this logging: 2021-03-05 07:32:56,109 main INFO -SourceFilemain(454)Load plugin(PTTPlugin) 2021-03-05 07:34:56,126 Thread-1 INFO -SourceFiled(501)config update 2021-03-05 07:34:56,204 Thread-1 INFO -SourceFiled(316)config update But no client is able to login anymore on the ptt-server. When I remove the plugin from the system.xml file and restart everything is fine again. Where should I look to see why the plugin is not loading? Thanks Olivier Mar 5 '21 at 07:45 (GMT0) created by Olivier Vanekem |
Dear Olivier, Could you give me your ProPTT2 server's version? Regards, ProPTT2 Mar 5 '21 at 10:58 (GMT0) created by ProPTT2 dev | |
Dear, I am using version 5.2.2 Mar 5 '21 at 11:09 (GMT0) created by Olivier Vanekem | ||
I have sent the patched ptt-server by email. Please check it up. Thanks, ProPTT2 Mar 5 '21 at 11:21 (GMT0) created by ProPTT2 dev | ||
Thanks it is working with the patched ptt-server JAR ! I could run the sample and also my own plugin. I have another question related to plugin: can we define multiple plugins and have them defined as below ? <plugins> <plugin> <name>Plugin1</name> <jar>PTTPlugin1.jar</jar> <classname>Plugin1</classname> <arg></arg> </plugin> <plugin> <name>Plugin2</name> <jar>PTTPlugin2.jar</jar> <classname>Plugin2</classname> <arg></arg> </plugin> </plugins> Mar 5 '21 at 12:30 (GMT0) created by Olivier Vanekem | ||
No, only 1 plugin is possible. But I think you can control it in your plugin side. Regards, ProPTT2 Mar 5 '21 at 12:36 (GMT0) created by ProPTT2 dev | ||
yes indeed I can create my own master/subplugins design, no issue indeed. Mar 5 '21 at 12:54 (GMT0) created by Olivier Vanekem | ||
This is removed. Mar 5 '21 at 12:35 (GMT0) created by ProPTT2 dev | ||