Update to the new version

This commit is contained in:
Matthias 2017-05-01 17:10:37 +02:00
parent d4f65240eb
commit e79674efcc
5 changed files with 40 additions and 230 deletions

View File

@ -1,13 +0,0 @@
Sofa:
system-ID: 'Sofa'
name: '&cSofa'
material: 383
glow: false
lore: ''
crafting:
disable: false
recipe: +0+,+++,X0X
index:
'0': 0
+: 171
X: 69

View File

@ -1,14 +0,0 @@
Tent1:
system-ID: 'Tent1'
name: '&cTent #1'
material: 383
glow: false
lore: ''
crafting:
disable: false
recipe: 0X0,XEX,EAE
index:
'0': 0
E: 35
A: 58
X: 280

39
src/Models/Sofa.yml Normal file
View File

@ -0,0 +1,39 @@
Sofa:
system-ID: Sofa
name: '&cSofa'
material: 383
glow: false
creator: 80f94595-e1f5-3520-b48c-c07d9f03274e
lore: ''
PlaceAbleSide: TOP
crafting:
disable: true
recipe: xxx,xxx,xxx
index:
'0': 0
+: 171
X: 69
x: '7'
ProjectModels:
ArmorStands:
'0': H4sIAAAAAAAAAI2Sv0/CQBTHX6GUow6uTg7uTjq5YLG/SKBFIEpZyIkHaby2yVEh/gEOjk5G/xKdiItxNNHdPwD/BROv9AqoMfFN733vfT9377UqQB7WHByQI3/kn1ACkCilCh6RBsWxqAutAFOa5rLpMyHLGgtGwlENxwuClAeljtkZYelh0aLRxA+HSaWCapxTwrRwSIkKqGaY7V7NsBSQOtPrd2vrbb/Hcw9E8Lyb6dws24amJ70r5996sxwyttasz9lPxxuzq8b4F1voCbvi6t4/2aVm1bKX8JfHxs0zqvw0lJdwYRCTlv+YNNPnV/CVkjCO2AWCwoFttNogO65jiCUgyPmnsB74IekzPIj3KBkTJvHW6DyMpRwoOg7wMPkeCIquadqao6cEBKiuVZ1VQeYPay0K0zDEZdwrJ79Hus+oj2M/ChVAnW13MBiRePq6w2OXPx51hVR+uOVxl0he1vU5u9y8P/woQN7Dk3TcL/jfH1h7AgAA
'1': H4sIAAAAAAAAAI2Sv0/CQBTHX6GUow6uTg7u/gMuUOy1JYEWgShlISdeSWN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rZlZnMsON1lWhFod9AHJbmhWiqbN0lWULESpAQa+ZTQzkwWjBqA+tsazPrZ1qE3WD2/20evZjMchyMPjqfJ5s+Zgsydq9/LfalUMim2OBlv28+Xh+/1w+YstfcHu+r3wn+zWyLWdHXzzNHx8Qd2fDZ0dXDbISTt/TKr87RV8pTQp0uwOQePcwcEYNM/3MCqXoETTtyzH9CqNBqbr7RsavzOohIWx5ABX4udBbwfueNoWC0uvSRGliQ5ocuzP5zktOp+n4vDXoamyNurBKJTW+mNbddKAekhWZfoLSAfKHlwCAAA=
'19': H4sIAAAAAAAAAI2RT07CQBTGH6GUoV6Atay9gBscYNqS0D+hVSmbZjQDaRzapK0Qj+DSlccxboxLF+49gJdwSqcFISbO6vu+mfd7M280gCac2HTFrqIsuuEMoEg6A5oxl9Nc+pa3opyXWtGjVMYKTleZrBjH65rQaIJq0fSOpeVm2+DJJoqXhdNAI/ecpThecqYBmhDdDyfEUKExe3n6Mk4/L0KhA5BL6HmVi2LFJHhUnN3b/3W20lCx8dTast+uu9+P7vqILfOCPXBGwT/ZnenYMHfwj1f3+R0NDgv6O7gskC/t//HSKt+2ECNlcZ6kDwhaQ5N4Pii2YxNUDqEybUfXTWzXHll4bO8Hiujp1UYnRHJAuOLnodsbBSQc4qlL/POhY3uXFglF1CtGmNzSPEpiFdDszFksMpbv7ovmx1FwELWgGdBNqX8ArNB0JW4CAAA=
Block: ''

View File

@ -32,7 +32,6 @@ import de.Ste3et_C0st.Furniture.Objects.garden.graveStone;
import de.Ste3et_C0st.Furniture.Objects.garden.log;
import de.Ste3et_C0st.Furniture.Objects.garden.sunshade;
import de.Ste3et_C0st.Furniture.Objects.indoor.largeTable;
import de.Ste3et_C0st.Furniture.Objects.indoor.sofa;
import de.Ste3et_C0st.Furniture.Objects.light.WaxCandle;
import de.Ste3et_C0st.Furniture.Objects.outdoor.barrels;
import de.Ste3et_C0st.Furniture.Objects.outdoor.campfire_1;
@ -75,7 +74,6 @@ public class main extends JavaPlugin implements Listener{
*/
new Project("LargeTable", this,getResource("Crafting/LargeTable.yml"),PlaceableSide.TOP, largeTable.class).setSize(2, 1, 2, CenterType.RIGHT);
new Project("Sofa", this,getResource("Crafting/Sofa.yml"),PlaceableSide.TOP, sofa.class).setSize(1, 1, 3, CenterType.RIGHT);
new Project("Campfire1", this,getResource("Crafting/Campfire1.yml"),PlaceableSide.TOP, campfire_1.class).setSize(1, 1, 1, CenterType.RIGHT);
new Project("Campfire2", this,getResource("Crafting/Campfire2.yml"),PlaceableSide.TOP, campfire_2.class).setSize(1, 1, 1, CenterType.RIGHT);
new Project("Tent2", this,getResource("Crafting/Tent2.yml"),PlaceableSide.TOP, tent_2.class).setSize(4, 3, 5, CenterType.RIGHT);
@ -123,6 +121,7 @@ public class main extends JavaPlugin implements Listener{
new Project("Tent1", this,getResource("Models/Tent1.yml")).setSize(4, 3, 5, CenterType.RIGHT).setEditorProject(false);
new Project("GraveStone", this,getResource("Models/GraveStone.yml")).setSize(1, 2, 3, CenterType.CENTER).setEditorProject(false);
new Project("Camera", this, getResource("Models/Camera.yml")).setSize(1, 1, 1, CenterType.RIGHT).setEditorProject(true);
new Project("Sofa", this, getResource("Models/Sofa.yml")).setSize(1, 1, 3, CenterType.RIGHT).setEditorProject(true);
addDefault("fence", "whiteList", "config.yml");
addDefault("bearTrap", "damage", "damage.yml");
addDefault("catapult", "range", "range.yml");

View File

@ -1,201 +0,0 @@
package de.Ste3et_C0st.Furniture.Objects.indoor;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.inventory.ItemStack;
import org.bukkit.util.EulerAngle;
import de.Ste3et_C0st.Furniture.Main.main;
import de.Ste3et_C0st.FurnitureLib.Events.FurnitureBreakEvent;
import de.Ste3et_C0st.FurnitureLib.Events.FurnitureClickEvent;
import de.Ste3et_C0st.FurnitureLib.main.Furniture;
import de.Ste3et_C0st.FurnitureLib.main.ObjectID;
import de.Ste3et_C0st.FurnitureLib.main.Type.BodyPart;
import de.Ste3et_C0st.FurnitureLib.main.Type.ColorType;
import de.Ste3et_C0st.FurnitureLib.main.Type.EventType;
import de.Ste3et_C0st.FurnitureLib.main.Type.SQLAction;
import de.Ste3et_C0st.FurnitureLib.main.entity.fArmorStand;
import de.Ste3et_C0st.FurnitureLib.main.entity.fEntity;
public class sofa extends Furniture implements Listener {
public sofa(ObjectID id){
super(id);
if(isFinish()){
Bukkit.getPluginManager().registerEvents(this, main.getInstance());
return;
}
place = .3;
spawn(id.getStartLocation());
}
ItemStack is;
Double place;
public void spawn(Location loc){
List<fArmorStand> aspList = new ArrayList<fArmorStand>();
List<fArmorStand> sitz = new ArrayList<fArmorStand>();
Integer lengt = 3;
is = new ItemStack(Material.CARPET);
BlockFace b = getLutil().yawToFace(loc.getYaw()).getOppositeFace();
Integer x = (int) loc.getX();
Integer y = (int) loc.getY();
Integer z = (int) loc.getZ();
loc.setX(x);
loc.setY(y);
loc.setZ(z);
if(b.equals(BlockFace.WEST)){loc = getLutil().getRelativ(loc, b, .0, -1.0);}
if(b.equals(BlockFace.SOUTH)){loc = getLutil().getRelativ(loc, b, -1.0, -1.0);}
if(b.equals(BlockFace.EAST)){loc = getLutil().getRelativ(loc, b, -1.0, .0);}
Location looking = new Location(loc.getWorld(), loc.getBlockX(), loc.getBlockY() -1.4 , loc.getBlockZ());
Location feet1 = getLutil().getRelativ(looking, b, place + .3, .2D).add(0, -.47, 0);
Location feet2 = getLutil().getRelativ(looking, b, place + .3, lengt.doubleValue()-.2D).add(0, -.47, 0);
Location feet3 = getLutil().getRelativ(looking, b, place + .8, .2D).add(0, -.47, 0);
Location feet4 = getLutil().getRelativ(looking, b, place + .8, lengt.doubleValue()-.2D).add(0, -.47, 0);
fArmorStand asp = getManager().createArmorStand(getObjID(), feet1);
asp.getInventory().setHelmet(new ItemStack(Material.LEVER));
asp.setMarker(false);
aspList.add(asp);
asp = getManager().createArmorStand(getObjID(), feet2);
asp.getInventory().setHelmet(new ItemStack(Material.LEVER));
asp.setMarker(false);
aspList.add(asp);
asp = getManager().createArmorStand(getObjID(), feet3);
asp.getInventory().setHelmet(new ItemStack(Material.LEVER));
asp.setMarker(false);
aspList.add(asp);
asp = getManager().createArmorStand(getObjID(), feet4);
asp.getInventory().setHelmet(new ItemStack(Material.LEVER));
asp.setMarker(false);
aspList.add(asp);
Location carpetHight = new Location(looking.getWorld(), loc.getBlockX(), loc.getBlockY() -1 , loc.getBlockZ());
carpetHight.setYaw(getLutil().FaceToYaw(b));
carpetHight = getLutil().getRelativ(carpetHight, b, .25,.3);
Double d = .02;
float facing = getLutil().FaceToYaw(b);
Integer j = 0;
for(Double i = .0; i<=lengt; i+=0.65){
Location carpet = getLutil().getRelativ(carpetHight, b, place,(double) d);
carpet.setYaw(facing);
String s = "";
if(j==0||j==1){s="#SITZPOS:1#";}
if(j==2){s="#SITZPOS:2#";}
if(j==3||j==4){s="#SITZPOS:3#";}
asp = getManager().createArmorStand(getObjID(), carpet);
asp.getInventory().setHelmet(is);
asp.setName(s);
aspList.add(asp);
sitz.add(asp);
Location location = getLutil().getRelativ(carpetHight, b, place-.25,(double) d);
location.setYaw(facing);
asp = getManager().createArmorStand(getObjID(), location);
asp.setPose(new EulerAngle(1.57, .0, .0), BodyPart.HEAD);
asp.getInventory().setHelmet(is);
asp.setName(s);
aspList.add(asp);
if(d<=0D){d = 0.00;}
d+=.58;
j++;
}
Float yaw1= facing;
Float yaw2= facing;
Location last = getLutil().getRelativ(sitz.get(sitz.size()-1).getLocation(), b, 0D, 0.26D);
last.setYaw(yaw1+90);
Location first = getLutil().getRelativ(new Location(loc.getWorld(), loc.getX(), last.getY(), loc.getZ()), b, place+.25, 0.07D);
first.setYaw(yaw2-90);
asp = getManager().createArmorStand(getObjID(), first.add(0,-.05,0));
asp.getInventory().setHelmet(is);
asp.setPose(new EulerAngle(1.57, .0, .0), BodyPart.HEAD);
asp.setMarker(false);
asp.setName("#SITZPOS:1#");
aspList.add(asp);
asp = getManager().createArmorStand(getObjID(), last.add(0,-.05,0));
asp.getInventory().setHelmet(is);
asp.setPose(new EulerAngle(1.57, .0, .0), BodyPart.HEAD);
asp.setMarker(false);
asp.setName("#SITZPOS:3#");
aspList.add(asp);
Location start = getLutil().getRelativ(looking, b, .45, .55);
for(int i = 0; i<=2;i++){
Location location = getLutil().getRelativ(start, b, place, i*.95D);
location.setYaw(getLutil().FaceToYaw(b));
location.add(0,.2,0);
asp = getManager().createArmorStand(getObjID(), location);
asp.setName("#SITZ" + i + "#");
aspList.add(asp);
}
for(fArmorStand asps : aspList){
asps.setInvisible(true);
asps.setBasePlate(false);
}
send();
Bukkit.getPluginManager().registerEvents(this, getPlugin());
}
@EventHandler
public void onFurnitureClick(FurnitureClickEvent e){
if(e.getID() == null || getObjID() == null) return;
if(getObjID().getSQLAction().equals(SQLAction.REMOVE)){return;}
if(!e.getID().equals(getObjID())){return;}
final Player p = e.getPlayer();
if(p.getInventory().getItemInMainHand().getType().equals(Material.INK_SACK)){
getLib().getColorManager().color(p, e.canBuild(), Material.CARPET, getObjID(), ColorType.BLOCK, 12);
}else{
fArmorStand packet = e.getfArmorStand();
switch (packet.getName()) {
case "#SITZPOS:1#": sit("#SITZ0#", p);break;
case "#SITZPOS:2#": sit("#SITZ1#", p);break;
case "#SITZPOS:3#": sit("#SITZ2#", p);break;
case "#SITZ0#" : sit("#SITZ0#", p);break;
case "#SITZ1#" : sit("#SITZ1#", p);break;
case "#SITZ2#" : sit("#SITZ2#", p);break;
default: sit("#SITZ0#", p);break;
}
}
}
private void sit(String s, Player p){
for(fEntity packet : getManager().getfArmorStandByObjectID(getObjID())){
if(packet.getName().equalsIgnoreCase(s) && packet.getPassanger() == null){
packet.setPassanger(p);
packet.update();
return;
}
}
}
@EventHandler
public void onFurnitureBreak(FurnitureBreakEvent e){
if(e.getID() == null || getObjID() == null) return;
if(e.getID()==null){return;}
if(!e.getID().equals(getObjID())){return;}
if(!getLib().canBuild(e.getPlayer(), getObjID(), EventType.BREAK)){return;}
for(fEntity packet : getManager().getfArmorStandByObjectID(getObjID())){
if(packet.getPassanger()!=null){
packet.eject();
packet.update();
}
}
e.remove();
delete();
}
}