mirror of
https://github.com/Ste3et/furniture.git
synced 2024-11-22 02:25:44 +01:00
remove noPermission message campfire#2 tent#1 tent#2 tent#3
This commit is contained in:
parent
b4c7ed693b
commit
44e2b93e21
@ -69,7 +69,7 @@ public class campfire_2 extends Furniture {
|
||||
return;
|
||||
if (player == null)
|
||||
return;
|
||||
if (canBuild(player)) {
|
||||
if (canBuild(player, false)) {
|
||||
List<fEntity> aspList = getManager().getfArmorStandByObjectID(getObjID());
|
||||
final ItemStack itemStack = player.getInventory().getItemInMainHand();
|
||||
fArmorStand packet = null;
|
||||
@ -91,7 +91,7 @@ public class campfire_2 extends Furniture {
|
||||
}
|
||||
}
|
||||
|
||||
if(canInteract(player)) {
|
||||
if(canInteract(player, false)) {
|
||||
final ItemStack itemStack = player.getInventory().getItemInMainHand();
|
||||
|
||||
fArmorStand packet = null;
|
||||
|
@ -21,7 +21,7 @@ public class tent_1 extends Furniture{
|
||||
if(getObjID() == null) return;
|
||||
if(getObjID().getSQLAction().equals(SQLAction.REMOVE)) return;
|
||||
if(player == null) return;
|
||||
if(canBuild(player)) {
|
||||
if(canBuild(player, false)) {
|
||||
if(FurnitureHook.isNewVersion()) {
|
||||
if(DyeColor.getDyeColor(player.getInventory().getItemInMainHand().getType()) != null){
|
||||
getLib().getColorManager().color(player, true, "_CARPET", getObjID(), ColorType.BLOCK, 1);
|
||||
|
@ -36,7 +36,7 @@ public class tent_2 extends Furniture{
|
||||
if(getObjID() == null) return;
|
||||
if(getObjID().getSQLAction().equals(SQLAction.REMOVE)) return;
|
||||
if(player == null) return;
|
||||
if(canBuild(player)) {
|
||||
if(canBuild(player, false)) {
|
||||
if(FurnitureHook.isNewVersion()) {
|
||||
if(DyeColor.getDyeColor(player.getInventory().getItemInMainHand().getType()) != null){
|
||||
getLib().getColorManager().color(player, true, "_CARPET", getObjID(), ColorType.BLOCK, 1);
|
||||
|
@ -34,7 +34,7 @@ public class tent_3 extends Furniture{
|
||||
if(getObjID() == null) return;
|
||||
if(getObjID().getSQLAction().equals(SQLAction.REMOVE)) return;
|
||||
if(player == null) return;
|
||||
if(canBuild(player)) {
|
||||
if(canBuild(player, false)) {
|
||||
if(FurnitureHook.isNewVersion()) {
|
||||
if(DyeColor.getDyeColor(player.getInventory().getItemInMainHand().getType()) != null){
|
||||
getLib().getColorManager().color(player, true, "BANNER", getObjID(), ColorType.BANNER, 1);
|
||||
@ -48,11 +48,12 @@ public class tent_3 extends Furniture{
|
||||
}
|
||||
}
|
||||
|
||||
if(canInteract(player)) {
|
||||
if(canInteract(player, false)) {
|
||||
for(fEntity packet : getManager().getfArmorStandByObjectID(getObjID())){
|
||||
if(packet.getName().equalsIgnoreCase("#SITZ#")){
|
||||
packet.setPassenger(player);
|
||||
packet.update();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user