Skip to content

Commit

Permalink
Implement CommandSender in CraftFakeArrow
Browse files Browse the repository at this point in the history
Stupid Spigot updates
  • Loading branch information
mcmonkey4eva committed Jan 5, 2015
1 parent b8f5f3e commit 7382ca7
Showing 1 changed file with 17 additions and 0 deletions.
@@ -1,5 +1,6 @@
package net.aufdemrand.denizen.utilities.entity;

import net.aufdemrand.denizen.utilities.debugging.dB;
import net.minecraft.server.v1_8_R1.EntityArrow;
import org.bukkit.Location;
import org.bukkit.craftbukkit.v1_8_R1.CraftServer;
Expand All @@ -14,6 +15,7 @@ public CraftFakeArrow(CraftServer craftServer, EntityArrow entityArrow) {
super(craftServer, entityArrow);
}

@Override
public void setShooter (LivingEntity livingEntity) {
}

Expand All @@ -30,4 +32,19 @@ public static Arrow createArrow(Location location) {
EntityArrow arrow = new FakeArrowEntity(world, location);
return (Arrow) arrow.getBukkitEntity();
}

@Override
public String getName() {
return "FakeArrow";
}

@Override
public void sendMessage(String message) {
dB.log("Message sent to FakeArrow: " + message);
}

@Override
public void sendMessage(String[] messages) {
dB.log("Messages sent to FakeArrow: " + messages);
}
}

0 comments on commit 7382ca7

Please sign in to comment.