fixes & changes

This commit is contained in:
NewGarbo 2015-11-27 20:24:07 +00:00
parent 6ac871f04c
commit d5502500b6
3 changed files with 4 additions and 4 deletions

View File

@ -402,7 +402,7 @@ public class ClanInfo
public Location getHome()
{
return _home;
return _home.clone();
}
public void setHome(Location loc)

View File

@ -615,7 +615,7 @@ public class ClansGame extends MiniPlugin
{
for (int z = -2; z < 2; z++)
{
Block otherBlock = event.getClickedBlock().getLocation().add(x, 0, z).getBlock();
Block otherBlock = event.getClickedBlock().getLocation().clone().add(x, 0, z).getBlock();
if (otherBlock.getType().equals(Material.BED_BLOCK))
{
if (UtilEvent.isAction(event, ActionType.R_BLOCK))

View File

@ -622,7 +622,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
if (client.isClanChat() && clan != null)
{
event.setFormat(rank+ C.cAqua + "%1$s " + (event.getPlayer().getGameMode().equals(GameMode.CREATIVE) ? C.cRed + "Creative " : " ") + C.cDAqua + "%2$s");
event.setFormat(rank+ C.cAqua + "%1$s " + C.cDAqua + "%2$s");
event.getRecipients().clear();
for (ClansPlayer cur : clan.getMembers().values())
@ -636,7 +636,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
}
else if (client.isAllyChat() && clan != null)
{
event.setFormat(rank+ C.cDGreen + clan.getName() + " " + C.cDGreen + "%1$s " + (event.getPlayer().getGameMode().equals(GameMode.CREATIVE) ? C.cRed + "Creative " : " ") + C.cGreen + "%2$s");
event.setFormat(rank+ C.cDGreen + clan.getName() + " " + C.cDGreen + "%1$s " + C.cGreen + "%2$s");
event.getRecipients().clear();
for (ClansPlayer cur : clan.getMembers().values())