llGetPermissions
LSLinteger llGetPermissions()
Returns an integer bitmask of the permissions that have been granted to the script. Individual permissions can be determined using a bit-wise "and" operation against the PERMISSION_* constants
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.