Added message for non-OPs
This commit is contained in:
parent
20d0e7f0fe
commit
c23e4db5e7
1 changed files with 5 additions and 3 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue