Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.

Commit 767c3a2

Browse files
committed
Observing & participating filters.
1 parent c69ebe4 commit 767c3a2

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

src/modules/filters.haml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@
172172
%code= html_escape('<can-fly/>')
173173
%td
174174
Match if the player can fly.
175+
%tr
176+
%td
177+
%pre
178+
%code= html_escape('<participating/>')
179+
%td
180+
Filter if the player is participating in the match.
181+
%tr
182+
%td
183+
%pre
184+
%code= html_escape('<observing/>')
185+
%td
186+
Filter if the player is observing the match.
175187
%tr
176188
%td
177189
%pre

src/modules/portals.haml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@
8989
%td
9090
%a{:href => "/modules/filters"} Filter
9191
%td
92+
%code= html_escape('<always/>')
93+
%tr
94+
%td
95+
%code observers
96+
%td
97+
%span.label.label-default{:title => "Can be either this attribute or a sub-element."} Property
98+
Filter portal observer access.
99+
%td
100+
%a{:href => "/modules/filters"} Filter
101+
%td
102+
%code= html_escape('<always/>')
92103
%tr
93104
%td
94105
%code sound
@@ -177,6 +188,15 @@
177188
Filter portal player access.
178189
%td
179190
%a{:href => "/modules/filters"} Filters
191+
%tr
192+
%td
193+
%pre
194+
%code= html_escape('<observers>')
195+
%td
196+
%span.label.label-default{:title => "Can be either this sub-element or an attribute."} Property
197+
Filter portal observer access.
198+
%td
199+
%a{:href => "/modules/filters"} Filters
180200

181201
:markdown
182202
<br/>

src/modules/proto.haml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@
1515
:markdown
1616
`<random>` filters now only respond to instantaneous events, and abstain when used in any persistent context.
1717
This breaks some uses that relied on undefined behavior, but these would likely break anyway as filters gain more dynamic functionality.
18+
19+
%li
20+
%hr
1821
%li
1922
%span.label.label-primary Change
2023
:markdown
2124
As of minecraft 1.9 TNT fuse time is no longer limited to 4 seconds.
2225

26+
%li
27+
%hr
28+
%li
29+
%span.label.label-success New
30+
:markdown
31+
Added `<observing>` and `<participant>` filters. Also added an `observers` filter property to portals to restrict observer access.
2332

2433
%br
2534
%h4 Changes in 1.4.0

0 commit comments

Comments
 (0)