You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== scriptas ==
Runs the specified script in the context of a given player or ~console. A script that runs player(), for instance, would return the specified player's name, not the player running the command. Setting the label allows you to dynamically set the label this script is run under as well (in regards to permission checking)
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| scriptas
|-
! scope="row" | Returns
| void
|-
! scope="row" | Usages
| sender, [label], script
|-
! scope="row" | Throws
| [[../objects/com.commandhelper.PlayerOfflineException|com.commandhelper.PlayerOfflineException]]
|-
! scope="row" | Since
| 3.3.0
|-
! scope="row" | Restricted
| Yes
|-
! scope="row" | Optimizations
| None
|}
=== Usages ===
scriptas(sender, [label], script)=== Examples === Sorry, there are no examples for this function! :(
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)