Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Minor documentation additions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuke-Nuke committed Nov 5, 2017
1 parent f47e043 commit 88b6f20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<Player> p;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<Double>{
static {
if (ReflectionUtils.hasClass("org.bukkit.event.entity.EntityDamageEvent.DamageModifier"))
Expand Down

0 comments on commit 88b6f20

Please sign in to comment.