mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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");
|
Player.SendMessage(p, "Cannot change the title of someone of greater rank");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (who != p && (int)p.group.Permission >= CommandOtherPerms.GetPerm(this))
|
||||||
|
{
|
||||||
string query;
|
string query;
|
||||||
string newTitle = "";
|
string newTitle = "";
|
||||||
if (message.Split(' ').Length > 1) newTitle = message.Substring(pos + 1);
|
if (message.Split(' ').Length > 1) newTitle = message.Substring(pos + 1);
|
||||||
@ -105,6 +106,11 @@ namespace MCGalaxy.Commands
|
|||||||
who.title = newTitle;
|
who.title = newTitle;
|
||||||
who.SetPrefix();
|
who.SetPrefix();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Player.SendMessage(p, "Cannot change the title of someone else");
|
||||||
|
}
|
||||||
|
}
|
||||||
public override void Help(Player p)
|
public override void Help(Player p)
|
||||||
{
|
{
|
||||||
Player.SendMessage(p, "/title <player> [title] - Gives <player> the [title].");
|
Player.SendMessage(p, "/title <player> [title] - Gives <player> the [title].");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user