Beispiel #1
0
 void ChannelHooks_ChannelRemoved(ChannelEventArgs e)
 {
     e.Channel.Broadcast("The channel has been closed!");
 }
Beispiel #2
0
 void ChannelHooks_ChannelJoin(ChannelEventArgs e)
 {
     e.Channel.Broadcast("{0} has joined the channel!", e.TSPlayer.Name);
 }
Beispiel #3
0
 void ChannelHooks_ChannelLeave(ChannelEventArgs e)
 {
     e.Channel.Broadcast(e.TSPlayer.Name + " has left the channel");
     e.TSPlayer.SendInfoMessage($"You have left {e.Channel.Name}");
 }
Beispiel #4
0
 void ChannelHooks_ChannelCreated(ChannelEventArgs e)
 {
     e.TSPlayer.SendSuccessMessage(string.Format("Your channel ({0}) has been successfully created!", e.Channel.Name));
     TSPlayer.All.SendInfoMessage(string.Format("{0} has created a new channel: {1}.", e.TSPlayer.Name, e.Channel.Name));
 }