Posts: 343
Threads: 40
Joined: Dec 2013
Reputation:
0
Thank you! Furthermore did you find the reason why the "callback" I mean the event, is called twice?
EDIT: IntelliJ show me that I should use Test. instead the Instance method? Both ways work
Posts: 319
Threads: 4
Joined: Jul 2007
Reputation:
0
@Su37Erich: I pushed an update that fixes the .disallow() method (plugin), but I think the OnPlayerSpawn event is getting called twice when the player first connects. I don't think there is a global solution to this problem.
Posts: 639
Threads: 41
Joined: Sep 2013
Reputation:
0
My path needs 3 "JRE_HOME".
Posts: 319
Threads: 4
Joined: Jul 2007
Reputation:
0
This startup.sh version should work too.
Posts: 319
Threads: 4
Joined: Jul 2007
Reputation:
0
I added a new version of the startup.sh file to the downloadable zip archive that should throw out an error message when the JRE_HOME is not set and also fixed the path.
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
Well does server/shoebill/gamemodes/example-lvdm-1.0-SNAPSHOT.jar exist?
Posts: 319
Threads: 4
Joined: Jul 2007
Reputation:
0
@Urukhay: Remove the .jar from the game mode name in the resources.yml, Shoebill will add it automatically.
Posts: 319
Threads: 4
Joined: Jul 2007
Reputation:
0
If you download the full package of Shoebill and start it without modifying any files except the startup.sh / bat, it will work. You must have modified something.
Posts: 639
Threads: 41
Joined: Sep 2013
Reputation:
0
Can SA:MP server provide 2+ threads by Shoebill?
Posts: 39
Threads: 5
Joined: Dec 2013
Reputation:
0
Why do you want to use two Shoebill Threads? You can use Plugins and Gamemodes written in Java for Shoebill, so if you want to build extensable or something like this, weite plugins and communicate with them through a main gamemode
Posts: 639
Threads: 41
Joined: Sep 2013
Reputation:
0
I mean Java threads (Interface Runnable). Is SA:MP server 1-thread service?
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
SAMP does run on only one thread. You can run tasks in the background with Java threads but once all samp related code must be executed from the main samp thread. For that use Shoebill().get().runOnSampThread().