Aw has world right all
Jump to navigation
Jump to search
Minimum requirements | ||
---|---|---|
Added in version 4.1 |
int aw_has_world_right_all (AW_ATTRIBUTE right)
Description
Checks if everyone has been granted a certain world right.
Callback
None (returns immediately)
Notes
Instance must have entered a world in order to execute this method successfully.
Argument
- right
- World right attribute.
The provided world right attribute must be one of the following:
- AW_WORLD_BOTS_RIGHT
- AW_WORLD_BUILD_RIGHT
- AW_WORLD_EJECT_RIGHT
- AW_WORLD_EMINENT_DOMAIN_RIGHT
- AW_WORLD_ENTER_RIGHT
- AW_WORLD_PUBLIC_SPEAKER_RIGHT
- AW_WORLD_SPEAK_RIGHT
- AW_WORLD_SPECIAL_COMMANDS_RIGHT
- AW_WORLD_SPECIAL_OBJECTS_RIGHT
- AW_WORLD_TERRAIN_RIGHT
- AW_WORLD_VOIP_RIGHT
- AW_WORLD_V4_OBJECTS_RIGHT
Argument attributes
None
Return values
- 0
- Not everyone has been granted the right. Also returned if an error occurred.
- 1
- Everyone has been granted the right.
Returned attributes
None
Usage
Check build rights in world.
if (aw_has_world_right_all (AW_WORLD_BUILD_RIGHT)) printf ("Everyone may build in this world\n"); else printf ("Building is restricted in this world\n");