[Plugin] Shoebill 1.1 - SA-MP Java Development Kit
#61

How I can use a group of cmds for group of some players?
Reply
#62

@SetupDLL: mk124 is making a @BeforeCheck Annotation for that, so please wait.
Reply
#63

What about gameworld limitations? SAMP have the limits here: https://sampwiki.blast.hk/wiki/Limits
Because of this I have to use Streamer plugin: https://sampforum.blast.hk/showthread.php?tid=102865

Will Java gamemode have the same limitaions about amout of objects on the map? If so, is there any way to stream the objects as in Streamer plugin?
Reply
#64

limits still apply, but you can code streamer inside gamemode in java.
Reply
#65

Quote:
Originally Posted by grekon
View Post
What about gameworld limitations? SAMP have the limits here: https://sampwiki.blast.hk/wiki/Limits
Because of this I have to use Streamer plugin: https://sampforum.blast.hk/showthread.php?tid=102865

Will Java gamemode have the same limitaions about amout of objects on the map? If so, is there any way to stream the objects as in Streamer plugin?
Quote:
Originally Posted by CoaPsyFactor
View Post
limits still apply, but you can code streamer inside gamemode in java.
CoaPsyFactor's answer is right, and Shoebill 1.1 in future will support to use other sa-mp plugins included Streamer.
Reply
#66

Quote:
Originally Posted by SetupDLL
View Post
How I can use a group of cmds for group of some players?
@BeforeCheck / @CustomCommand added.

Usage example: https://github.com/Shoebill/example-...19ef24e33323d5
Code:
@BeforeCheck
public boolean checkPremission(Player p, String cmd, String params)
{
	return p.isAdmin();
}

@CustomCommand
public boolean customHandler(Player p, String cmd, String params)
{
	// If the command has been processed, return true
	return false;
}
Reply
#67

Wow! This is so good!
Keep up the good work, I hope you'll continue this with newer SAMP versions too
Reply
#68

I created VehicleManager (like a PlayerManager). There I have a repeated timer. When I try to register cmds in VehicleManager and connect to my server, timer stops. Without registering cmd it works. Is it a bug or I do smth wrong?
Reply
#69

@SetupDLL: You need to declare your timer global, or else it will dispose.
Reply
#70

Thank you!
Reply
#71

enableStuntBonusForAll(false) is not working for me. I can still get bonuses. On server without this plugin it works normal
Reply
#72

Quote:
Originally Posted by SetupDLL
View Post
enableStuntBonusForAll(false) is not working for me. I can still get bonuses. On server without this plugin it works normal
Can you give us the full code you used, please?
Reply
#73

Quote:
Originally Posted by 123marvin123
View Post
Can you give us the full code you used, please?
You can watch code of example-lvdm, There is the same problem there.
Reply
#74

Quote:
Originally Posted by SetupDLL
View Post
You can watch code of example-lvdm, There is the same problem there.
Ok, I reported the bug to mk124, he will take a look at it.
Reply
#75

Can I use GetVehicleModelInfo function? I cant find it in plugin.
Reply
#76

@SetupDLL: Yes, there is: "getServer().getVehicleModelInfo"
Reply
#77

@123marvin123: oh, thank you!
Reply
#78

This api looks like the Bukkit one.
Reply
#79

@stokdam: Maybe because they are both written in java.
Reply
#80

Nice for Java Lovers. +REP

OffTopic: I Hate Java.
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)