From 1f75e7cbf3fb5307698a5ca41248960043e6a823 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Wed, 21 Dec 2016 23:32:27 -0500 Subject: [PATCH] Adjustments --- .../components/hotfix/hotfixes/CreativeKillLoop.java | 7 +++---- .../components/magic/tricks/CannonBowSettings.java | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java b/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java index d127982..cd7e045 100644 --- a/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java +++ b/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java @@ -1,23 +1,22 @@ package buttondevteam.alipresents.components.hotfix.hotfixes; import org.bukkit.GameMode; -import org.bukkit.Server; import org.bukkit.entity.Player; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scheduler.BukkitRunnable; public class CreativeKillLoop extends BukkitRunnable implements Listener { - private Server server; + private JavaPlugin plugin; public CreativeKillLoop(JavaPlugin plugin){ - this.server = plugin.getServer(); + this.plugin = plugin; this.runTaskTimer(plugin, 40, 40); } @Override public void run() { - for (Player player : server.getOnlinePlayers()){ + for (Player player : plugin.getServer().getOnlinePlayers()){ if(player.getGameMode() != GameMode.SURVIVAL && player.getWorld().getName() == "World" && player.isOp() == false){ player.sendMessage("[Hotfix] Every Gamemode other than survival is disabled in the new world!"); player.setGameMode(GameMode.SURVIVAL); diff --git a/src/buttondevteam/alipresents/components/magic/tricks/CannonBowSettings.java b/src/buttondevteam/alipresents/components/magic/tricks/CannonBowSettings.java index d781203..8aa8655 100644 --- a/src/buttondevteam/alipresents/components/magic/tricks/CannonBowSettings.java +++ b/src/buttondevteam/alipresents/components/magic/tricks/CannonBowSettings.java @@ -31,7 +31,8 @@ public class CannonBowSettings extends ModCommand { break; default: player.sendMessage("That isn't a valid setting!"); - player.sendMessage("Valid Settings are: "); + player.sendMessage("Valid Settings are: speedmultiplier, minforce, fuseticks, recoil"); + player.sendMessage("Use argument 'display' to disply current settings"); return false; } }