From cb007d736fc0b4c816d9cae242d377d2b7895e0b Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Wed, 3 Aug 2016 15:35:44 +0200 Subject: [PATCH] Fix some messages --- .../java/io/github/dre2n/dungeonsxl/command/EnterCommand.java | 2 +- .../java/io/github/dre2n/dungeonsxl/world/block/TeamFlag.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/github/dre2n/dungeonsxl/command/EnterCommand.java b/core/src/main/java/io/github/dre2n/dungeonsxl/command/EnterCommand.java index c03052f9..32ccea28 100644 --- a/core/src/main/java/io/github/dre2n/dungeonsxl/command/EnterCommand.java +++ b/core/src/main/java/io/github/dre2n/dungeonsxl/command/EnterCommand.java @@ -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); diff --git a/core/src/main/java/io/github/dre2n/dungeonsxl/world/block/TeamFlag.java b/core/src/main/java/io/github/dre2n/dungeonsxl/world/block/TeamFlag.java index a9e35ee4..6a97c4ce 100644 --- a/core/src/main/java/io/github/dre2n/dungeonsxl/world/block/TeamFlag.java +++ b/core/src/main/java/io/github/dre2n/dungeonsxl/world/block/TeamFlag.java @@ -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;