Line 545: |
Line 545: |
| <tt>this.Helper.Events.Player</tt> has events raised when the player data changes. | | <tt>this.Helper.Events.Player</tt> has events raised when the player data changes. |
| | | |
− | '''Currently these events are only raised for the current player. That will likely change in a future version, so make sure to check <tt>e.Player</tt>, <tt>e.Player.IsLocalPlayer</tt>, or <tt>e.Player.IsMainPlayer</tt> if needed.''' | + | '''Currently these events are only raised for the current player. That will likely change in a future version, so make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player.''' |
| | | |
| {| class="wikitable" | | {| class="wikitable" |
Line 571: |
Line 571: |
| |arg type 4 = <tt>IEnumerable<ItemStackSizeChange></tt> | | |arg type 4 = <tt>IEnumerable<ItemStackSizeChange></tt> |
| |arg desc 4 = The item stacks whose quantity changed. Each <tt>ItemStackSizeChange</tt> instance includes <tt>Item</tt> (the affected item stack), <tt>OldSize</tt> (the previous stack size), and <tt>NewSize</tt> (the new stack size). | | |arg desc 4 = The item stacks whose quantity changed. Each <tt>ItemStackSizeChange</tt> instance includes <tt>Item</tt> (the affected item stack), <tt>OldSize</tt> (the previous stack size), and <tt>NewSize</tt> (the new stack size). |
| + | |
| + | |arg name 5 = <tt>e.IsLocalPlayer</tt> |
| + | |arg type 5 = <tt>bool</tt> |
| + | |arg desc 5 = Whether the affected player is the local one. |
| }} | | }} |
| {{/event | | {{/event |
Line 592: |
Line 596: |
| |arg type 4 = <tt>int</tt> | | |arg type 4 = <tt>int</tt> |
| |arg desc 4 = The player's new level for that skill. | | |arg desc 4 = The player's new level for that skill. |
| + | |
| + | |arg name 5 = <tt>e.IsLocalPlayer</tt> |
| + | |arg type 5 = <tt>bool</tt> |
| + | |arg desc 5 = Whether the affected player is the local one. |
| }} | | }} |
| {{/event | | {{/event |
Line 609: |
Line 617: |
| |arg type 3 = <tt>GameLocation</tt> | | |arg type 3 = <tt>GameLocation</tt> |
| |arg desc 3 = The player's new location. | | |arg desc 3 = The player's new location. |
| + | |
| + | |arg name 4 = <tt>e.IsLocalPlayer</tt> |
| + | |arg type 4 = <tt>bool</tt> |
| + | |arg desc 4 = Whether the affected player is the local one. |
| }} | | }} |
| |} | | |} |