Skip to content

Commit

Permalink
added docs and renamed file
Browse files Browse the repository at this point in the history
  • Loading branch information
aabssmc committed Nov 16, 2023
1 parent 5a677cd commit ca09486
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package lol.aabss.skuishy.elements.events;

import ch.njol.skript.Skript;
import ch.njol.skript.doc.*;
import ch.njol.skript.lang.Literal;
import ch.njol.skript.lang.SkriptEvent;
import ch.njol.skript.lang.SkriptParser;
Expand All @@ -14,14 +15,21 @@

import javax.annotation.Nullable;

public class EvtShieldBlock extends SkriptEvent {
@Name("Player - On Shield Break")
@Description("Thrown when someone's shield gets broken.")
@Examples({
"on shield break:",
"\tbroadcast \"%player%'s shield broke!!\""
})
@Since("1.5")
public class EvtShieldBreak extends SkriptEvent {

static{
Skript.registerEvent(
"On Shield Block",
"On Shield Break",
SimpleEvent.class,
ShieldBreakEvent.class,
"[on] [player] shield (block|disable|break)"
"[on] [player] shield (disable|break)"
);
EventValues.registerEventValue(ShieldBreakEvent.class, Player.class, new Getter<Player, ShieldBreakEvent>() {
@Override
Expand Down

0 comments on commit ca09486

Please sign in to comment.