Killing someone with gun/missile should only show that message to the current level, not the whole server.

This commit is contained in:
UnknownShadow200 2016-08-31 09:31:37 +10:00
parent 6e10b22bbb
commit f169240c3a
2 changed files with 9 additions and 4 deletions

View File

@ -32,8 +32,9 @@ namespace MCGalaxy.Commands.Building {
public override bool museumUsable { get { return false; } }
public override LevelPermission defaultRank { get { return LevelPermission.Admin; } }
public override CommandAlias[] Aliases {
get { return new[] { new CommandAlias("imgprint"), new CommandAlias("printimg"),
new CommandAlias("imgdraw"), new CommandAlias("drawimg") }; }
get { return new[] { new CommandAlias("imgprint"), new CommandAlias("printimg"),
new CommandAlias("imgdraw"), new CommandAlias("drawimg"),
new CommandAlias("drawimage"), new CommandAlias("printimage") }; }
}
public CmdImageprint() { }

View File

@ -404,8 +404,12 @@ return;
if (b == Block.rockethead) level.MakeExplosion(x, y, z, 0);
if (b == Block.creeper) level.MakeExplosion(x, y, z, 1);
if (b == Block.rock || b == Block.stone) {
if (explode) level.MakeExplosion(x, y, z, 1);
SendChatFrom(this, ColoredName + "%S" + customMessage, false);
if (explode) level.MakeExplosion(x, y, z, 1);
if (b == Block.rock) {
SendChatFrom(this, ColoredName + "%S" + customMessage, false);
} else {
Chat.GlobalChatLevel(this, ColoredName + "%S" + customMessage, false);
}
}
if ( Game.team != null && this.level.ctfmode ) {