Skip to content

Commit

Permalink
Change freeze message from 'X successfully froze Y' to 'Y was frozen …
Browse files Browse the repository at this point in the history
…by X'
  • Loading branch information
UnknownShadow200 committed Jul 7, 2017
1 parent 72eca73 commit 9202833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fCraft/Commands/CpeCommands.cs
Expand Up @@ -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":
Expand Down
15 changes: 5 additions & 10 deletions fCraft/Player/PlayerInfo.Actions.cs
Expand Up @@ -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
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 9202833

Please sign in to comment.