fixes & changes
This commit is contained in:
parent
6ac871f04c
commit
d5502500b6
@ -402,7 +402,7 @@ public class ClanInfo
|
||||
|
||||
public Location getHome()
|
||||
{
|
||||
return _home;
|
||||
return _home.clone();
|
||||
}
|
||||
|
||||
public void setHome(Location loc)
|
||||
|
@ -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))
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user