Skip to content

Commit

Permalink
Fix /wset greeting (Thanks 123DMWM)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jul 1, 2017
1 parent 15ea403 commit 026ae2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fCraft/Commands/WorldCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3052,6 +3052,7 @@ static void SetGreeting(Player player, World world, string value) {
File.Delete("./WorldGreeting/" + world.Name + ".txt");
world.Greeting = null;
} else {
world.Greeting = value;
player.Message("Greeting message for world {0}&S set to: {1}", world.ClassyName, world.Greeting);
File.WriteAllText("./WorldGreeting/" + world.Name + ".txt", world.Greeting);
world.Greeting = null;
Expand Down
2 changes: 1 addition & 1 deletion fCraft/Player/Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static void checkBotResponses(Player player, string rawMessage) {
Server.BotMessage("Your next rank is: " + next.ClassyName);
player.LastServerMessageDate = DateTime.UtcNow;
player.Info.TimesUsedBot++;
} else {
} else if (BotTime > 5) {
Server.BotMessage("You are already the highest rank.");
player.LastServerMessageDate = DateTime.UtcNow;
player.Info.TimesUsedBot++;
Expand Down

0 comments on commit 026ae2e

Please sign in to comment.