Aw has world right all

From ActiveWiki
Jump to: navigation, 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:

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");

See also