Added message for non-OPs
This commit is contained in:
parent
20d0e7f0fe
commit
c23e4db5e7
1 changed files with 5 additions and 3 deletions
|
@ -69,15 +69,17 @@ public class Main extends JavaPlugin
|
||||||
|
|
||||||
if (sender.isOp()) return rtp(Bukkit.getPlayer(args[0]));
|
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)
|
public synchronized boolean rtp(Player player)
|
||||||
{
|
{
|
||||||
if (player == null)
|
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 border has changed, or no positions available, find new location
|
||||||
if ((centerUsed && northUsed && southUsed && eastUsed && westUsed) ||
|
if ((centerUsed && northUsed && southUsed && eastUsed && westUsed) ||
|
||||||
|
|
Loading…
Reference in a new issue