Correction of an error with the placement of spawners
You can also add your own plugin like this:
Code (Java):
public
class ClassExemple
implements Listener
{
@EventHandler
public
void onRegister
(SpawnerRegisterEvent event
)
{
event.
setFactionListener
(
new LegacyFaction
(
)
)
;
}
public
class LegacyFaction
extends FactionListener
{
@Override
public
boolean canBuild
(Player player, Location location
)
{
@SuppressWarnings
(
"deprecation"
)
String tag
= Board.
get
(
).
getFactionAt
(
new FLocation
(location
)
).
getTag
(
)
;
String playerTag
= FPlayerColl.
get
(player
).
getFaction
(
).
getTag
(
)
;
return tag.
equals
(playerTag
)
;
}
}
}