This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -18,18 +18,18 @@ public class CmdHelp : ClientCommand, ServerCommand
publicvoidUse(Clientclient, string[] tokens)
{
if (tokens.Length==1)
if (tokens.Length==0)
{
client.SendMessage("Use "+ChatColor.Teal+"/help build"+ChatColor.White+" for a list of building commands.");
client.SendMessage("Use "+ChatColor.Teal+"/help mod"+ChatColor.White+" for a list of moderation commands.");
client.SendMessage("Use "+ChatColor.Teal+"/help information"+ChatColor.White+" for a list of information commands.");
client.SendMessage("Use "+ChatColor.Teal+"/help other"+ChatColor.White+" for a list of other commands.");
client.SendMessage("Use "+ChatColor.Teal+"/help short"+ChatColor.White+" for a list of shortcuts.");
}
elseif (tokens.Length>1)
elseif (tokens.Length>0)
{
stringmessage;
switch (tokens[1].ToLower())
switch (tokens[0].ToLower())
{
case"build":
message= (from ClientCommand c in ClientCommandHandler.GetCommands() where c.Type == CommandType.Build && client.Owner.CanUseCommand(c) select c).Aggregate("", (current, c) =>current+ (", "+c.Name));
@@ -86,7 +86,7 @@ public void Use(Client client, string[] tokens)
message= (from ServerCommand c in ServerCommandHandler.GetCommands() where c.Type == CommandType.Build select c).Aggregate("", (current, c) =>current+ (", "+c.Name));
if (message=="")
{
server.Logger.Log(Logger.LogLevel.Info, "There are no commands of this type that you can use.");
@@ -151,14 +144,7 @@ public void Use(Server server, string[] tokens)
message= (from ServerCommand c in ServerCommandHandler.GetCommands() where c.Type == CommandType.Build select c).Aggregate("", (current, c) =>current+ (", "+c.Name));
if (message=="")
{
server.Logger.Log(Logger.LogLevel.Info, "There are no commands of this type that you can use.");
@@ -169,14 +155,7 @@ public void Use(Server server, string[] tokens)
message= (from ServerCommand c in ServerCommandHandler.GetCommands() where c.Type == CommandType.Build select c).Aggregate("", (current, c) =>current+ (", "+c.Name));
if (message=="")
{
server.Logger.Log(Logger.LogLevel.Info, "There are no commands of this type that you can use.");
@@ -186,14 +165,7 @@ public void Use(Server server, string[] tokens)
message= (from ServerCommand c in ServerCommandHandler.GetCommands() where c.Type == CommandType.Build select c).Aggregate("", (current, c) =>current+ (", "+c.Name));
if (message=="")
{
server.Logger.Log(Logger.LogLevel.Info, "There are no commands of this type that you can use.");
@@ -203,14 +175,7 @@ public void Use(Server server, string[] tokens)
message= (from ServerCommand c in ServerCommandHandler.GetCommands() where !string.IsNullOrEmpty(c.Shortcut) select c).Aggregate("", (current, c) =>current+ (", "+c.Shortcut));
if (message=="")
{
server.Logger.Log(Logger.LogLevel.Info, "There are no commands of this type that you can use.");
@@ -243,7 +208,7 @@ public void Use(Server server, string[] tokens)
publicvoidHelp(Serverserver)
{
server.Logger.Log(Logger.LogLevel.Info, "WOW, really? Wow... just wow.");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters