Added /herobrine position
Will return Herobrine's X Y Z position
This commit is contained in:
parent
6f057720c5
commit
343d1cc23e
23
.classpath
23
.classpath
@ -2,18 +2,15 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="lib" path="libs/craftbukkit-1.8.3.jar">
|
||||
<attributes>
|
||||
<attribute name="javadoc_location" value="https://hub.spigotmc.org/javadocs/spigot/"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="lib" path="libs/CustomItems.jar"/>
|
||||
<classpathentry kind="lib" path="libs/Factions.jar"/>
|
||||
<classpathentry kind="lib" path="libs/GriefPrevention.jar"/>
|
||||
<classpathentry kind="lib" path="libs/MassiveCore.jar"/>
|
||||
<classpathentry kind="lib" path="libs/PreciousStones.jar"/>
|
||||
<classpathentry kind="lib" path="libs/Residence.jar"/>
|
||||
<classpathentry kind="lib" path="libs/Towny.jar"/>
|
||||
<classpathentry kind="lib" path="libs/WorldGuard.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/CustomItems.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/Factions.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/GriefPrevention.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/MassiveCore.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/PreciousStones.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/Residence.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Downloads/Towny.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/jjbat_000/Desktop/worldguard-6.0.0-beta-05.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Spigot/Spigot/Spigot-API/target/spigot-api-1.8.3-R0.1-SNAPSHOT-shaded.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Spigot/Spigot/Spigot-Server/target/spigot-1.8.3-R0.1-SNAPSHOT-remapped.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
9
.project
9
.project
@ -1,17 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Herobrine for Bukkit or Spigot</name>
|
||||
<name>herobrine-for-bukkit-or-spigot</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
|
@ -92,6 +92,8 @@ public class AICore {
|
||||
public void disableAll() {
|
||||
resetLimits.disable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void playerBedEnter(final Player player) {
|
||||
final int chance = new Random().nextInt(100);
|
||||
|
@ -142,6 +142,8 @@ public class HerobrineAI extends JavaPlugin implements Listener {
|
||||
HerobrineAI.herobrineNPC.getBukkitEntity().setMetadata("NPC", new FixedMetadataValue(this, true));
|
||||
HerobrineAI.herobrineEntityID = HerobrineAI.herobrineNPC.getBukkitEntity().getEntityId();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void removeHerobrine() {
|
||||
HerobrineAI.herobrineEntityID = 0L;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -50,6 +50,8 @@ public class HumanNPC {
|
||||
public void moveTo(final Location loc) {
|
||||
teleport(loc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void teleport(final Location loc) {
|
||||
if (loc.getWorld().getName().equals(getNMSEntity().world.getWorld().getName())) {
|
||||
|
Reference in New Issue
Block a user