Skip to content
Permalink
Browse files

Change freeze message from 'X successfully froze Y' to 'Y was frozen …

…by X'
  • Loading branch information...
UnknownShadow200 committed Jul 7, 2017
1 parent 72eca73 commit 92028330a9417522f22aa19659f413874375a38f
Showing with 6 additions and 11 deletions.
  1. +1 −1 fCraft/Commands/CpeCommands.cs
  2. +5 −10 fCraft/Player/PlayerInfo.Actions.cs
@@ -164,7 +164,7 @@ static class CpeCommands {
player.Message("No more free ids left! Remove an entity first.");
} else {
entity = Entity.Create(entityName, skinString1, requestedModel, player.World, player.Position, newEntityId);
player.Message("Successfully created entity {0}&S with id:{1} and skin {2}.", entity.Name, entity.ID, entity.Skin, entity.Name);
player.Message("Successfully created entity {0}&S with id:{1} and skin {2}.", entity.Name, entity.ID, entity.Skin, entity.Name);
}
break;
case "remove":
@@ -896,16 +896,13 @@ public sealed partial class PlayerInfo {
if( target != null ) target.IsDeaf = false;

// Log and announce
Logger.Log( LogType.UserActivity,
"{0} froze {1}",
player.Name, Name );
Logger.Log( LogType.UserActivity, "{0} froze {1}", player.Name, Name );
if( announce ) {
if (target != null)
{
if (target != null) {
target.Message( "&WYou were &bfrozen&W by {0}", player.ClassyName );
}
Server.Message( target, "{0}&S successfully &bfroze&S: {1}",
player.ClassyName, ClassyName );
Server.Message( target, "{0}&S was frozen by {1}",
ClassyName, player.ClassyName );
}

// Raise PlayerInfo.FreezeChanged event
@@ -954,9 +951,7 @@ public sealed partial class PlayerInfo {
Unfreeze();

// Log and announce unfreeze
Logger.Log( LogType.UserActivity,
"{0} unfroze {1}",
player.Name, Name );
Logger.Log( LogType.UserActivity, "{0} unfroze {1}", player.Name, Name );
if( announce ) {
Player target = PlayerObject;
if( target != null ) {

0 comments on commit 9202833

Please sign in to comment.
You can’t perform that action at this time.