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

Commit

Permalink
Added registration for EffUnlinkReference effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Syst3ms authored Jan 2, 2017
1 parent a605933 commit bbaedbe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fr/syst3ms/quarsk/QuarSk.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static java.lang.Math.PI;

/**
* Created by ARTHUR on 29/12/2016.
* Created by Syst3ms on 29/12/2016.
*/
public class QuarSk extends JavaPlugin {

Expand All @@ -30,8 +30,9 @@ public void onEnable() {
getLogger().log(Level.INFO, "Enabling QuarSk " + this.getConfig().get("version") + " to give these numbers a boost !");
Skript.registerAddon(this);
Skript.registerEffect(EffOrientTowards.class, "(orient %entity%|(make %entity%|force %entity% to) (face|look)) (0¦towards|1¦away from) %location%");
Skript.registerEffect(EffLinkReference.class, "link @<.+?> to %object%");
Skript.registerExpression(SExprReference.class,Object.class, ExpressionType.SIMPLE, "@<.+>");
Skript.registerEffect(EffLinkReference.class, "link @<\\S+> to %object%");
Skript.registerEffect(EffUnlinkReference.class, "unlink @<\\S+>");
Skript.registerExpression(SExprReference.class,Object.class, ExpressionType.SIMPLE, "@<\\S+>");
getLogger().log(Level.INFO, "Now, there are " + Skript.getEvents().size() + " events, " + Skript.getConditions().size() + " conditions and " + Skript.getEffects().size() + " effects registered ! Good game !");
}

Expand Down

0 comments on commit bbaedbe

Please sign in to comment.