Fix some messages

This commit is contained in:
Daniel Saukel 2016-08-03 15:35:44 +02:00
parent d5715298fd
commit cb007d736f
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ public class EnterCommand extends BRCommand {
joining.setGameWorld(game.getWorld());
game.addDGroup(joining);
joining.sendMessage(DMessages.CMD_ENTER_SUCCESS.getMessage(joining.getName(), targetName));
joining.sendMessage(DMessages.CMD_ENTER_SUCCESS.getMessage(joining.getName(), target.getName()));
for (Player player : joining.getPlayers()) {
DGamePlayer.create(player, game.getWorld(), true);

View File

@ -61,7 +61,7 @@ public class TeamFlag extends TeamBlock {
return true;
}
owner.getGameWorld().sendMessage(DMessages.GROUP_FLAG_STEALING.getMessage(breaker.getName(), owner.getName()));
owner.getGameWorld().sendMessage(DMessages.GROUP_FLAG_STEALING.getMessage(gamePlayer.getName(), owner.getName()));
gamePlayer.setRobbedGroup(owner);
event.getBlock().setType(Material.AIR);
return true;