- Timestamp:
- May 11, 2016, 8:54:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/ChatHookExample.cs
r267 r273 7 7 8 8 public static bool Hook (ClientInfo _cInfo, EnumGameMessages _type, string _message, string _playerName) { 9 if ( !string.IsNullOrEmpty (_message)) {9 if (_type == EnumGameMessages.Chat && !string.IsNullOrEmpty (_message)) { 10 10 if (_message.ToLower () == "/alloc") { 11 11 if (_cInfo != null) { 12 12 Log.Out ("Sent chat hook reply to {0}", _cInfo.playerId); 13 13 _cInfo.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, ANSWER, "", false, "", false)); 14 GameManager.Instance.GameMessageServer (_cInfo, EnumGameMessages.Chat, string.Format("!{0}", _message), _playerName, false, "", false); 14 15 } else { 15 16 Log.Error ("Argument _cInfo null on message: {0}", _message);
Note:
See TracChangeset
for help on using the changeset viewer.