mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Added Additional Command Perm to Title
This commit is contained in:
parent
3175cc9f5e
commit
e386828167
@ -40,7 +40,8 @@ namespace MCGalaxy.Commands
|
||||
Player.SendMessage(p, "Cannot change the title of someone of greater rank");
|
||||
return;
|
||||
}
|
||||
|
||||
if (who != p && (int)p.group.Permission >= CommandOtherPerms.GetPerm(this))
|
||||
{
|
||||
string query;
|
||||
string newTitle = "";
|
||||
if (message.Split(' ').Length > 1) newTitle = message.Substring(pos + 1);
|
||||
@ -105,6 +106,11 @@ namespace MCGalaxy.Commands
|
||||
who.title = newTitle;
|
||||
who.SetPrefix();
|
||||
}
|
||||
else
|
||||
{
|
||||
Player.SendMessage(p, "Cannot change the title of someone else");
|
||||
}
|
||||
}
|
||||
public override void Help(Player p)
|
||||
{
|
||||
Player.SendMessage(p, "/title <player> [title] - Gives <player> the [title].");
|
||||
|
Loading…
x
Reference in New Issue
Block a user