remove noPermission message campfire#2 tent#1 tent#2 tent#3

This commit is contained in:
Ste3et_C0st 2020-03-26 16:54:12 +01:00
parent b4c7ed693b
commit 44e2b93e21
4 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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;
}
}
}