Skip to content

Commit 70dcbf1

Browse files
committed
Update /RankInfo
Now shows how many personal worlds a rank can have. Suggested by cybertoon
1 parent d19a647 commit 70dcbf1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

fCraft/Commands/InfoCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ static void RankInfoHandler( Player player, CommandReader cmd ) {
625625
if( rank.IdleKickTimer > 0 ) {
626626
player.Message( "Idle kick after {0}", TimeSpan.FromMinutes( rank.IdleKickTimer ).ToMiniString() );
627627
}
628+
player.Message("Can have {0} personal world{1}.", rank.MaxPersonalWorlds, rank.MaxPersonalWorlds == 1 ? "" : "s");
628629
if (!Directory.Exists(Paths.RankReqDirectory) || !player.IsStaff) return;
629630

630631
string rankReqFile = null;

fCraft/Commands/WorldCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3676,7 +3676,7 @@ static bool ReadMWNumber(CommandReader cmd, out int number) {
36763676

36773677
static readonly CommandDescriptor CdMaxPW = new CommandDescriptor {
36783678
Name = "MaxPWorlds",
3679-
Aliases = new[] { "MPW" },
3679+
Aliases = new[] { "MPW", "maxpw" },
36803680
Permissions = new[] { Permission.Chat },
36813681
Category = CommandCategory.New | CommandCategory.Moderation | CommandCategory.Chat,
36823682
Help = "Changes/Displays the max amount of personal worlds a rank may have.",

0 commit comments

Comments
 (0)