From c23e4db5e7077ef707222792641e16e0ef048b89 Mon Sep 17 00:00:00 2001 From: iie Date: Thu, 6 Jul 2017 00:12:05 +0200 Subject: [PATCH] Added message for non-OPs --- src/randomTP/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/randomTP/Main.java b/src/randomTP/Main.java index 92947f0..7040e2d 100644 --- a/src/randomTP/Main.java +++ b/src/randomTP/Main.java @@ -69,15 +69,17 @@ public class Main extends JavaPlugin if (sender.isOp()) return rtp(Bukkit.getPlayer(args[0])); - else return false; + else sender.sendMessage("ยง7 hmm, " + sender.getName() + "... " + sender.getName() + "... nope, no operator permissions."); + + return false; } /*================================================================================================*/ public synchronized boolean rtp(Player player) { - if (player == null) - return false; + if (player == null) + return false; //Pretend it rtp'd an imaginary player successfully //if border has changed, or no positions available, find new location if ((centerUsed && northUsed && southUsed && eastUsed && westUsed) ||