Skip to content

Commit

Permalink
server_version stat + cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 21, 2019
1 parent e571aae commit c28094f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -104,8 +104,7 @@ public boolean applyDetermination(ScriptPath path, ObjectTag determinationObj) {
List<EntityTag> 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()) {
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit c28094f

Please sign in to comment.