Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String header = "§eBienvenue sur GravenMC " + GravenMCAPI.getRank().getRank(p.getUniqueId()).getPrefix() + p.getDisplayName() + "§r§7!";
- String discord = "§an'hésites pas à venir sur notre Discord §3§l→§r §6discord.gravenmc.fr";
- String boutique = "§aet aussi sur notre Boutique §3§l→§r §6shop.gravenmc.fr";
- String forum = "§aou bien encore notre Forum §3§l→§r §6forum.gravenmc.fr";
- String kits = "§bn'oublies pas d'acheter des Kits achetable avec les Coins";
- String footer = "§dBon jeu sur GravenMC!";
- Location loc = new Location(Bukkit.getWorld("world"), -164.5, 93.5, 110.5, -90, 0);
- Location loc1 = new Location(Bukkit.getWorld("world"), -164.5, 93.25, 110.5, -90, 0);
- Location loc2 = new Location(Bukkit.getWorld("world"), -164.5, 93, 110.5, 0, -90);
- Location loc3 = new Location(Bukkit.getWorld("world"), -164.5, 92.75, 110.5, -90, 0);
- Location loc4 = new Location(Bukkit.getWorld("world"), -164.5, 92.5, 110.5, -90, 0);
- Location loc5 = new Location(Bukkit.getWorld("world"), -164.5, 92.25, 110.5, -90, 0);
- // Header + Loc
- WorldServer s = ((CraftWorld) loc.getWorld()).getHandle();
- EntityArmorStand stand = new EntityArmorStand(s);
- stand.setLocation(loc.getX(), loc.getY(), loc.getZ(), 0, 0);
- stand.setCustomName(header);
- stand.setCustomNameVisible(true);
- stand.setNoGravity(true);
- stand.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand);
- // Discord + Loc1
- WorldServer s1 = ((CraftWorld) loc1.getWorld()).getHandle();
- EntityArmorStand stand1 = new EntityArmorStand(s1);
- stand1.setLocation(loc1.getX(), loc1.getY(), loc1.getZ(), 0, 0);
- stand1.setCustomName(discord);
- stand1.setCustomNameVisible(true);
- stand1.setNoGravity(true);
- stand1.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet1 = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand1);
- // boutique + Loc2
- WorldServer s2 = ((CraftWorld) loc2.getWorld()).getHandle();
- EntityArmorStand stand2 = new EntityArmorStand(s2);
- stand2.setLocation(loc2.getX(), loc2.getY(), loc2.getZ(), 0, 0);
- stand2.setCustomName(boutique);
- stand2.setCustomNameVisible(true);
- stand2.setNoGravity(true);
- stand2.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet2 = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand2);
- // forum + loc3
- WorldServer s3 = ((CraftWorld) loc3.getWorld()).getHandle();
- EntityArmorStand stand3 = new EntityArmorStand(s3);
- stand3.setLocation(loc3.getX(), loc3.getY(), loc3.getZ(), 0, 0);
- stand3.setCustomName(forum);
- stand3.setCustomNameVisible(true);
- stand3.setNoGravity(true);
- stand3.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet3 = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand3);
- // kits + loc4
- WorldServer s4 = ((CraftWorld) loc4.getWorld()).getHandle();
- EntityArmorStand stand4 = new EntityArmorStand(s4);
- stand4.setLocation(loc4.getX(), loc4.getY(), loc4.getZ(), 0, 0);
- stand4.setCustomName(kits);
- stand4.setCustomNameVisible(true);
- stand4.setNoGravity(true);
- stand4.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet4 = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand4);
- // footer + Loc5
- WorldServer s5 = ((CraftWorld) loc5.getWorld()).getHandle();
- EntityArmorStand stand5 = new EntityArmorStand(s5);
- stand5.setLocation(loc5.getX(), loc5.getY(), loc5.getZ(), 0, 0);
- stand5.setCustomName(footer);
- stand5.setCustomNameVisible(true);
- stand5.setNoGravity(true);
- stand5.setInvisible(true);
- PacketPlayOutSpawnEntityLiving packet5 = new PacketPlayOutSpawnEntityLiving((EntityLiving) stand5);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet1);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet2);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet3);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet4);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet5);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet);
Advertisement
Add Comment
Please, Sign In to add comment