Skip to content

Commit 9080069

Browse files
authored
Add region utility methods to the docs
1 parent 6658da2 commit 9080069

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/showscript3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,12 @@ Get a list of all running shows
488488
#### `isShowRunning(String showName)` returns `boolean`
489489
Returns `true` if a show of that name is running, otherwise `false`
490490

491+
#### `playersInRegion(String regionName)` returns `Collection\<Player\>`
492+
Returns a collection of players that are in the given WorldGuard region (requires WorldGuard)
493+
494+
### `playerRegions(Player player)` and `playerRegions(String playerName)` returns `Collection\<String\>`
495+
Returns a collection of regions (represented by their String names) that a player is currently in (requires WorldGuard)
496+
491497
### Other convenience methods
492498

493499
#### `sin(double angle)` (returns double)

0 commit comments

Comments
 (0)