From c28094fe1e09125c9089e2eefa5a0d8308724826 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Fri, 20 Dec 2019 21:52:24 -0800 Subject: [PATCH] server_version stat + cleaning --- .../denizen/events/entity/EntityShootsBowEvent.java | 3 +-- .../denizenscript/denizen/utilities/debugging/StatsRecord.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityShootsBowEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityShootsBowEvent.java index d9189fbc98..b59d85862e 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityShootsBowEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityShootsBowEvent.java @@ -104,8 +104,7 @@ public boolean applyDetermination(ScriptPath path, ObjectTag determinationObj) { List newProjectiles = ListTag.getListFor(determinationObj).filter(EntityTag.class, path.container, true); // Go through all the entities, spawning/teleporting them for (EntityTag newProjectile : newProjectiles) { - newProjectile.spawnAt(entity.getEyeLocation() - .add(entity.getEyeLocation().getDirection())); + newProjectile.spawnAt(entity.getEyeLocation().add(entity.getEyeLocation().getDirection())); // Set the entity as the shooter of the projectile, // where applicable if (newProjectile.isProjectile()) { diff --git a/plugin/src/main/java/com/denizenscript/denizen/utilities/debugging/StatsRecord.java b/plugin/src/main/java/com/denizenscript/denizen/utilities/debugging/StatsRecord.java index e9a044bec7..28fce96a8c 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/utilities/debugging/StatsRecord.java +++ b/plugin/src/main/java/com/denizenscript/denizen/utilities/debugging/StatsRecord.java @@ -26,6 +26,7 @@ public void run() { // Safely connected at this point // Create the final message pack and upload it uc.getOutputStream().write(("postid=pluginstats&plugin_st_players=" + Bukkit.getOnlinePlayers().size() + + "&plugin_st_server_version=" + URLEncoder.encode(Bukkit.getVersion()) + "&plugin_st_motd=" + URLEncoder.encode(Bukkit.getServer().getMotd().replace(ChatColor.COLOR_CHAR, (char) 0x01))) .getBytes(StandardCharsets.UTF_8)); // Wait for a response from the server