Changes

Jump to navigation Jump to search
update for SMAPI 3.6 release
Line 340: Line 340:  
  |group = Multiplayer
 
  |group = Multiplayer
 
  |name  = PeerConnected
 
  |name  = PeerConnected
  |desc  = {{SMAPI upcoming|3.6}}
+
  |desc  = Raised after a connection from another player is approved by the game. The event is raised for any player (whether host or farmhand), including when the connecting player doesn't have SMAPI installed. This happens after <tt>PeerContextReceived</tt>.
 
  −
Raised after a connection from another player is approved by the game. The event is raised for any player (whether host or farmhand), including when the connecting player doesn't have SMAPI installed. This happens after <tt>PeerContextReceived</tt>.
      
The player is connected to the game at this point, so methods like <tt>Game1.server.kick</tt> will work.
 
The player is connected to the game at this point, so methods like <tt>Game1.server.kick</tt> will work.
Line 742: Line 740:     
===Custom priority===
 
===Custom priority===
{{SMAPI upcoming|3.6|content=
   
SMAPI calls event handlers in the same order they're registered by default, so the first event handler registered is the first to receive the event each time. This isn't always predictable, since it depends on mod load order and when each mod registers their handlers. This order is also an implementation detail, so it's not guaranteed.
 
SMAPI calls event handlers in the same order they're registered by default, so the first event handler registered is the first to receive the event each time. This isn't always predictable, since it depends on mod load order and when each mod registers their handlers. This order is also an implementation detail, so it's not guaranteed.
   Line 775: Line 772:  
}
 
}
 
</source>
 
</source>
}}
 
translators
8,403

edits

Navigation menu