mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
[Warp] signes.
Format: [Warp] warp-name Free/group/empty(then need permission to use) git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1094 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
7a6a0ec775
commit
d9f3208d43
@ -339,9 +339,31 @@ public class EssentialsPlayerListener extends PlayerListener
|
||||
}
|
||||
if (sign.getLine(0).equals("§1[Balance]") && user.isAuthorized("essentials.signs.balance.use"))
|
||||
{
|
||||
user.sendMessage("§7Balance: $" + user.getMoney());
|
||||
user.sendMessage("§7Balance: $" + user.getMoney());
|
||||
return;
|
||||
}
|
||||
if (sign.getLine(0).equals("§1[Warp]"))
|
||||
{
|
||||
if (!sign.getLine(2).isEmpty())
|
||||
{
|
||||
if (sign.getLine(2).equals("§2Free"))
|
||||
{
|
||||
user.teleportCooldown();
|
||||
user.warpTo(sign.getLine(1));
|
||||
return;
|
||||
}
|
||||
if (user.getGroup() == sign.getLine(2))
|
||||
{
|
||||
user.teleportCooldown();
|
||||
user.warpTo(sign.getLine(1));
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (user.isAuthorized("essentials.signs.warp.use"))
|
||||
user.teleportCooldown();
|
||||
user.warpTo(sign.getLine(1));
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (Throwable ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user