[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:
ceulemansl 2011-04-02 23:21:45 +00:00
parent 7a6a0ec775
commit d9f3208d43

View File

@ -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)
{