[trunk] Warp signs

Since we can charge for warping now, Free is wrong, changed to Everyone.
So if you want everyone to use the sign use either "Everyone" or leave the third line empty.
In the latter case per Warp permission may apply, if enabled and the user needs essentials.signs.warp.use permission.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1098 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-03 12:15:22 +00:00
parent b11964dac4
commit 0b92c89ad7
2 changed files with 3 additions and 3 deletions

View File

@ -135,8 +135,8 @@ public class EssentialsBlockListener extends BlockListener
return;
} else {
Essentials.getWarps().getWarp(event.getLine(1));
if (event.getLine(2).equalsIgnoreCase("Free")) {
event.setLine(2, "§2Free");
if (event.getLine(2).equalsIgnoreCase("Everyone")) {
event.setLine(2, "§2Everyone");
}
event.setLine(0, "§1[Warp]");
}

View File

@ -370,7 +370,7 @@ public class EssentialsPlayerListener extends PlayerListener
}
}
if (!sign.getLine(2).isEmpty()) {
if (sign.getLine(2).equals("§2Free")) {
if (sign.getLine(2).equals("§2Everyone")) {
user.teleportCooldown();
user.warpTo(sign.getLine(1));
return;