diff --git a/src/main/java/com/github/tukenuke/tuske/effects/EffExecutePermission.java b/src/main/java/com/github/tukenuke/tuske/effects/EffExecutePermission.java index 11f0dee..ebff5dc 100644 --- a/src/main/java/com/github/tukenuke/tuske/effects/EffExecutePermission.java +++ b/src/main/java/com/github/tukenuke/tuske/effects/EffExecutePermission.java @@ -1,5 +1,9 @@ package com.github.tukenuke.tuske.effects; +import ch.njol.skript.doc.Description; +import ch.njol.skript.doc.Examples; +import ch.njol.skript.doc.Name; +import ch.njol.skript.doc.Since; import com.github.tukenuke.tuske.util.CommandUtils; import com.github.tukenuke.tuske.util.Registry; import org.bukkit.entity.Player; @@ -11,12 +15,17 @@ import ch.njol.skript.lang.SkriptParser.ParseResult; import ch.njol.util.Kleenean; +@Name("Command with Permission") +@Description("Make the player execute a command with a temporary permission, when the player finishes executing the " + + "command, the permission is removed.") +@Examples("make all players execute command \"example\" with permissions \"permission.one\" and \"permission.two\"") +@Since("1.6.9.7") public class EffExecutePermission extends Effect{ static { Registry.newEffect(EffExecutePermission.class, - "[execute] [the] command %strings% by %players% with perm[ission] %strings%", - "[execute] [the] %players% command %strings% with perm[ission] %strings%", - "(let|make) %players% execute [[the] command] %strings% with perm[ission] %strings%"); + "[execute] [the] command %strings% by %players% with perm[ission][s] %strings%", + "[execute] [the] %players% command %strings% with perm[ission][s] %strings%", + "(let|make) %players% execute [[the] command] %strings% with perm[ission][s] %strings%"); } private Expression p; diff --git a/src/main/java/com/github/tukenuke/tuske/expressions/ExprDamageModifier.java b/src/main/java/com/github/tukenuke/tuske/expressions/ExprDamageModifier.java index 7209fd6..31405cb 100644 --- a/src/main/java/com/github/tukenuke/tuske/expressions/ExprDamageModifier.java +++ b/src/main/java/com/github/tukenuke/tuske/expressions/ExprDamageModifier.java @@ -1,9 +1,6 @@ package com.github.tukenuke.tuske.expressions; -import ch.njol.skript.doc.Description; -import ch.njol.skript.doc.Events; -import ch.njol.skript.doc.Examples; -import ch.njol.skript.doc.Name; +import ch.njol.skript.doc.*; import com.github.tukenuke.tuske.util.ReflectionUtils; import com.github.tukenuke.tuske.util.Registry; import org.bukkit.event.Event; @@ -31,7 +28,7 @@ "\tset armor damage to armor damage + 1", "\tclear armor damage", "\treset armor damage"}) -@Events("") +@Since("1.7-beta.2") public class ExprDamageModifier extends SimpleExpression{ static { if (ReflectionUtils.hasClass("org.bukkit.event.entity.EntityDamageEvent.DamageModifier"))