Advertisement
ZP4RKER

Nexus.java

Sep 22nd, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package zplugin.znexusfactions.api;
  2.  
  3. import org.bukkit.Location;
  4. import org.bukkit.entity.EnderCrystal;
  5. import org.bukkit.entity.EntityType;
  6. import org.bukkit.entity.Player;
  7.  
  8. public class Nexus {
  9.  
  10.     private Location location;
  11.     private EnderCrystal nexus;
  12.     public boolean hasVault = false;
  13.  
  14.     public Nexus(Location location) {
  15.         this.location = location;
  16.         nexus = (EnderCrystal) location.getWorld().spawnEntity(location.clone().add(.5, .75, .5), EntityType.ENDER_CRYSTAL);
  17.     }
  18.  
  19.     public Location getLocation() {
  20.         return location;
  21.     }
  22.  
  23.     public Vault createVault(Player player) {
  24.         return new Vault(this, player);
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement