mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
[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:
parent
b11964dac4
commit
0b92c89ad7
@ -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]");
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user