scripts.conditions.player.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
//@Condition()
Coerce = static("Coerce");
key = "player";
names = ["持有者: (?.*)"];
function parameters(matcher, text) {
const player = matcher.group("player");
return mapOf({ player: player });
}
function condition(entity, map) {
if (entity == null) return true;
const player = map.get("player");
return entity.name == player;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy