Improve some messages in /chatroom and help of /awardmod

This commit is contained in:
UnknownShadow200 2020-04-04 17:54:49 +11:00
parent 1cefde13ff
commit f937205206
3 changed files with 10 additions and 11 deletions

View File

@ -133,7 +133,7 @@ namespace MCGalaxy.Commands.CPE {
static bool CheckName(Player p, string arg) {
if (Colors.Parse(arg).Length > 0) {
p.Message("There is already an existing color with the name \"{0}\".", arg);
p.Message("There is already an existing color named \"{0}\".", arg);
return false;
}
return true;

View File

@ -112,13 +112,10 @@ namespace MCGalaxy.Commands.Chatting {
if (!Check(p, parts, data, "chatroom to delete")) return;
string room = parts[1];
if (!Chatrooms.CaselessContains(room)) {
if (!Chatrooms.CaselessRemove(room)) {
p.Message("There is no chatroom named '{0}'", room); return;
}
Chat.MessageGlobal("{0} is being deleted", room);
Chatrooms.CaselessRemove(room);
Player[] online = PlayerInfo.Online.Items;
foreach (Player pl in online) {
if (pl.Chatroom != null && pl.Chatroom.CaselessEq(room)) {
@ -143,12 +140,12 @@ namespace MCGalaxy.Commands.Chatting {
}
if (p.Chatroom != null && p.Chatroom.CaselessEq(room)) {
p.Message("You cannot spy on your own room");
p.Message("You cannot spy on your own chatroom");
} else if (p.spyChatRooms.CaselessContains(room)) {
p.Message("'{0}' is already in your spying list.", room);
p.Message("You are already spying on chatroom '{0}'", room);
} else {
p.spyChatRooms.Add(room);
p.Message("'{0}' has been added to your chat room spying list", room);
p.Message("You are now spying on chatroom '{0}'", room);
}
}
@ -163,7 +160,7 @@ namespace MCGalaxy.Commands.Chatting {
if (pl == null) return;
if (!Chatrooms.CaselessContains(room)) {
p.Message("There is no chatroom with the name '{0}'", room); return;
p.Message("There is no chatroom named '{0}'", room); return;
}
if (!CheckRank(p, data, pl, "force-join", false)) return;

View File

@ -54,9 +54,11 @@ namespace MCGalaxy.Commands.Eco {
}
public override void Help(Player p) {
p.Message("%T/AwardMod add/del [award name] : [description]");
p.Message("%HAdds or deletes a reward with the name [award name]");
p.Message("%T/AwardMod add [name] : [description]");
p.Message("%HAdds a new award");
p.Message("%H e.g. %T/AwardMod add Bomb voyage : Blow up a lot of TNT");
p.Message("%T/AwardMod del [name]");
p.Message("%HDeletes the given award");
}
}
}