All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.conditions.player.js Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
//@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