Added message for non-OPs

This commit is contained in:
iie 2017-07-06 00:12:05 +02:00 committed by NorbiPeti
parent 20d0e7f0fe
commit c23e4db5e7

View file

@ -69,7 +69,9 @@ 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;
}
/*================================================================================================*/
@ -77,7 +79,7 @@ public class Main extends JavaPlugin
public synchronized boolean rtp(Player player)
{
if (player == null)
return false;
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) ||