Added /off
This commit is contained in:
parent
e599e985b3
commit
bb45ebf74f
1 changed files with 11 additions and 0 deletions
|
|
@ -953,6 +953,7 @@
|
||||||
string str9 = str7.ToLower();
|
string str9 = str7.ToLower();
|
||||||
int x = (int)Main.player[this.whoAmI].position.X;
|
int x = (int)Main.player[this.whoAmI].position.X;
|
||||||
int y = (int)Main.player[this.whoAmI].position.Y;
|
int y = (int)Main.player[this.whoAmI].position.Y;
|
||||||
|
//TODO: Clean this shit up
|
||||||
if (str9 == "/hardcore")
|
if (str9 == "/hardcore")
|
||||||
{
|
{
|
||||||
if (!ShankShock.isAdmin(ShankShock.findPlayer(this.whoAmI)))
|
if (!ShankShock.isAdmin(ShankShock.findPlayer(this.whoAmI)))
|
||||||
|
|
@ -969,6 +970,16 @@
|
||||||
ShankShock.broadcast(ShankShock.findPlayer(this.whoAmI) + " has spawned all 3 bosses and started an invasion!!!");
|
ShankShock.broadcast(ShankShock.findPlayer(this.whoAmI) + " has spawned all 3 bosses and started an invasion!!!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (str9 == "/off")
|
||||||
|
{
|
||||||
|
if (!ShankShock.isAdmin(ShankShock.findPlayer(this.whoAmI)))
|
||||||
|
{
|
||||||
|
ShankShock.sendMessage(this.whoAmI, "You aren't allowed to do that.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Netplay.disconnect = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (str9 == "/skeletron")
|
if (str9 == "/skeletron")
|
||||||
{
|
{
|
||||||
if (!ShankShock.isAdmin(ShankShock.findPlayer(this.whoAmI)))
|
if (!ShankShock.isAdmin(ShankShock.findPlayer(this.whoAmI)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue