Protection, Placeholder and fix
Add : - PlaceHolder %faction_name_at_location% - Add protection with farm land - Add protection to shulkers, to beacon, cauldron and brewing stand - Add protection with bone meal - Convert permission for the command Fix : - Console /f list - Console /f show - Claim with Wilderness is unclaim the land - Dynmap players.admins and players.admins.count is for co-leader. The leader already have players.leader and a faction have one leader only Optimization
This commit is contained in:
@@ -35,6 +35,7 @@ public class PlayerFactionExpression extends SimpleExpression<String> {
|
||||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parser) {
|
||||
playerExpression = (Expression<Player>) exprs[0];
|
||||
@@ -88,6 +89,7 @@ public class PlayerFactionExpression extends SimpleExpression<String> {
|
||||
}
|
||||
fPlayer.setFaction(faction);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ public class PlayerPowerExpression extends SimpleExpression<Number> {
|
||||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parser) {
|
||||
playerExpression = (Expression<Player>) exprs[0];
|
||||
@@ -84,6 +85,7 @@ public class PlayerPowerExpression extends SimpleExpression<Number> {
|
||||
case RESET:
|
||||
fPlayer.alterPower(fPlayer.getPowerMax() * -1);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ public class PlayerRoleExpression extends SimpleExpression<String> {
|
||||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parser) {
|
||||
playerExpression = (Expression<Player>) exprs[0];
|
||||
@@ -82,6 +83,7 @@ public class PlayerRoleExpression extends SimpleExpression<String> {
|
||||
case SET:
|
||||
fPlayer.setRole(Role.fromString(((String) delta[0]).toLowerCase()));
|
||||
break;
|
||||
default:
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user