Line 189: |
Line 189: |
| |old events = MineEvents.MineLevelChanged | | |old events = MineEvents.MineLevelChanged |
| |new events = PlayerEvents.Warped | | |new events = PlayerEvents.Warped |
− | |summary = To know whether the player changed mine level, you can check <code>if (e.NewLocation is MineShaft mine)</code>; the new mine level will be <code>mine.mineLevel</code>. | + | |summary = To know whether the player changed mine level, you can check <code>if (e.NewLocation is MineShaft mine)</code>; the new mine level will be <code>mine.mineLevel</code>. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |
Line 199: |
Line 199: |
| |old events = PlayerEvents.InventoryChanged | | |old events = PlayerEvents.InventoryChanged |
| |new events = Player.InventoryChanged | | |new events = Player.InventoryChanged |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |
| |old events = PlayerEvents.LeveledUp | | |old events = PlayerEvents.LeveledUp |
| |new events = Player.LevelChanged | | |new events = Player.LevelChanged |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |
| |old events = PlayerEvents.Warped | | |old events = PlayerEvents.Warped |
| |new events = Player.Warped | | |new events = Player.Warped |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |