Skip to content

Commit

Permalink
add some missing 'has linked player' meta lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 31, 2019
1 parent 1bd90c2 commit ec705d1
Show file tree
Hide file tree
Showing 64 changed files with 156 additions and 33 deletions.
Expand Up @@ -2,7 +2,9 @@

import com.denizenscript.denizen.Denizen;
import com.denizenscript.denizen.events.block.*;
import com.denizenscript.denizen.events.core.ListPingScriptEvent;
import com.denizenscript.denizen.events.core.ServerPrestartScriptEvent;
import com.denizenscript.denizen.events.core.TabCompleteScriptEvent;
import com.denizenscript.denizen.events.entity.*;
import com.denizenscript.denizen.events.player.*;
import com.denizenscript.denizen.events.world.*;
Expand Down Expand Up @@ -36,7 +38,9 @@ public static void registerMainEvents() {
ScriptEvent.registerScriptEvent(new RedstoneScriptEvent());

// Core events
ScriptEvent.registerScriptEvent(new ListPingScriptEvent());
ScriptEvent.registerScriptEvent(new ServerPrestartScriptEvent());
ScriptEvent.registerScriptEvent(new TabCompleteScriptEvent());

// Entity events
ScriptEvent.registerScriptEvent(new CreeperPoweredScriptEvent());
Expand Down Expand Up @@ -105,7 +109,6 @@ public static void registerMainEvents() {
ScriptEvent.registerScriptEvent(new ExperienceBottleBreaksScriptEvent());
ScriptEvent.registerScriptEvent(new ItemRecipeFormedScriptEvent());
ScriptEvent.registerScriptEvent(new ItemScrollScriptEvent());
ScriptEvent.registerScriptEvent(new ListPingScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerAnimatesScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerBreaksBlockScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerBreaksItemScriptEvent());
Expand Down Expand Up @@ -162,7 +165,6 @@ public static void registerMainEvents() {
ScriptEvent.registerScriptEvent(new PlayerSteersEntityScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerStepsOnScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerSwapsItemsScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerTabCompleteScriptEvent());
ScriptEvent.registerScriptEvent(new PlayerTakesFromFurnaceScriptEvent());
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_14)) {
ScriptEvent.registerScriptEvent(new PlayerTakesFromLecternScriptEvent());
Expand Down
@@ -1,4 +1,4 @@
package com.denizenscript.denizen.events.player;
package com.denizenscript.denizen.events.core;

import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizencore.objects.core.ElementTag;
Expand Down
@@ -1,4 +1,4 @@
package com.denizenscript.denizen.events.player;
package com.denizenscript.denizen.events.core;

import com.denizenscript.denizen.objects.PlayerTag;
import com.denizenscript.denizen.utilities.implementation.BukkitScriptEntryData;
Expand All @@ -16,7 +16,7 @@
import org.bukkit.event.Listener;
import org.bukkit.event.server.TabCompleteEvent;

public class PlayerTabCompleteScriptEvent extends BukkitScriptEvent implements Listener {
public class TabCompleteScriptEvent extends BukkitScriptEvent implements Listener {

// <--[event]
// @Events
Expand All @@ -42,11 +42,11 @@ public class PlayerTabCompleteScriptEvent extends BukkitScriptEvent implements L
//
// -->

public PlayerTabCompleteScriptEvent() {
public TabCompleteScriptEvent() {
instance = this;
}

public static PlayerTabCompleteScriptEvent instance;
public static TabCompleteScriptEvent instance;
public TabCompleteEvent event;
public String buffer;
public ListTag completions;
Expand Down
Expand Up @@ -37,6 +37,8 @@ public class BiomeEnterExitScriptEvent extends BukkitScriptEvent implements List
// <context.old_biome> returns the biome being left.
// <context.new_biome> returns the biome being entered.
//
// @Player Always.
//
// -->

public BiomeEnterExitScriptEvent() {
Expand Down
Expand Up @@ -48,6 +48,8 @@ public class ChatScriptEvent extends BukkitScriptEvent implements Listener {
// "RAW_FORMAT:" + ElementTag to set the format directly (without a format script). (Use with caution, avoid if possible).
// "RECIPIENTS:" + ListTag(PlayerTag) to set the list of players that will receive the message.
//
// @Player Always.
//
// -->

public ChatScriptEvent() {
Expand Down
Expand Up @@ -36,6 +36,8 @@ public class ItemRecipeFormedScriptEvent extends BukkitScriptEvent implements Li
// @Determine
// ItemTag to change the item that is formed in the result slot.
//
// @Player Always.
//
// -->

public ItemRecipeFormedScriptEvent() {
Expand Down
Expand Up @@ -31,6 +31,8 @@ public class ItemScrollScriptEvent extends BukkitScriptEvent implements Listener
// <context.new_slot> returns the number of the new inventory slot.
// <context.previous_slot> returns the number of the old inventory slot.
//
// @Player Always.
//
// -->

public ItemScrollScriptEvent() {
Expand Down
Expand Up @@ -28,6 +28,8 @@ public class PlayerAnimatesScriptEvent extends BukkitScriptEvent implements List
// @Context
// <context.animation> returns the name of the animation.
//
// @Player Always.
//
// -->

public PlayerAnimatesScriptEvent() {
Expand Down
Expand Up @@ -40,6 +40,8 @@ public class PlayerBreaksBlockScriptEvent extends BukkitScriptEvent implements L
// ListTag(ItemTag) to make the block drop a specified list of items.
// Element(Number) to set the amount of xp to drop.
//
// @Player Always.
//
// -->

public PlayerBreaksBlockScriptEvent() {
Expand Down
Expand Up @@ -37,6 +37,8 @@ public class PlayerBreaksItemScriptEvent extends BukkitScriptEvent implements Li
// <context.item> returns the item that broke.
// <context.slot> returns the slot of the item that broke.
//
// @Player Always.
//
// -->

public PlayerBreaksItemScriptEvent() {
Expand Down
Expand Up @@ -26,8 +26,10 @@ public class PlayerChangesGamemodeScriptEvent extends BukkitScriptEvent implemen
// @Triggers when a player's gamemode is changed.
//
// @Context
// <context.gamemode> returns an ElementTag of the gamemode.
// Game Modes: <@link url http://bit.ly/1KHab43>
// <context.gamemode> returns an ElementTag of the gamemode. Game Modes: <@link url http://bit.ly/1KHab43>
//
// @Player Always.
//
// -->

public PlayerChangesGamemodeScriptEvent() {
Expand Down
Expand Up @@ -40,6 +40,8 @@ public class PlayerChangesSignScriptEvent extends BukkitScriptEvent implements L
// @Determine
// ListTag to change the lines (Uses escaping, see <@link language Property Escaping>)
//
// @Player Always.
//
// -->

public PlayerChangesSignScriptEvent() {
Expand Down
Expand Up @@ -28,6 +28,8 @@ public class PlayerChangesWorldScriptEvent extends BukkitScriptEvent implements
// <context.origin_world> returns the WorldTag that the player was previously on.
// <context.destination_world> returns the WorldTag that the player is now in.
//
// @Player Always.
//
// -->

public PlayerChangesWorldScriptEvent() {
Expand Down
Expand Up @@ -33,6 +33,8 @@ public class PlayerChangesXPScriptEvent extends BukkitScriptEvent implements Lis
// @Determine
// Element(Number) to set the amount of changed experience.
//
// @Player Always.
//
// -->

public PlayerChangesXPScriptEvent() {
Expand Down
Expand Up @@ -42,6 +42,8 @@ public class PlayerClicksBlockScriptEvent extends BukkitScriptEvent implements L
// <context.click_type> returns an ElementTag of the Spigot API click type <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/Action.html>.
// <context.hand> returns an ElementTag of the used hand.
//
// @Player Always.
//
// -->

public PlayerClicksBlockScriptEvent() {
Expand Down
Expand Up @@ -94,6 +94,8 @@ public class PlayerClicksInInventoryScriptEvent extends BukkitScriptEvent implem
// "CANCELLED" to stop the player from clicking.
// ItemTag to set the current item for the event.
//
// @Player Always.
//
// -->

public PlayerClicksInInventoryScriptEvent() {
Expand Down
Expand Up @@ -28,6 +28,8 @@ public class PlayerClosesInvScriptEvent extends BukkitScriptEvent implements Lis
// @Context
// <context.inventory> returns the InventoryTag.
//
// @Player Always.
//
// -->

public PlayerClosesInvScriptEvent() {
Expand Down
Expand Up @@ -25,6 +25,8 @@ public class PlayerCompletesAdvancementScriptEvent extends BukkitScriptEvent imp
// @Context
// <context.criteria> returns all the criteria present in this advancement.
//
// @Player Always.
//
// -->

public PlayerCompletesAdvancementScriptEvent() {
Expand Down
Expand Up @@ -35,6 +35,8 @@ public class PlayerConsumesScriptEvent extends BukkitScriptEvent implements List
// @Determine
// ItemTag to change the item being consumed.
//
// @Player Always.
//
// -->

public PlayerConsumesScriptEvent() {
Expand Down
Expand Up @@ -40,6 +40,8 @@ public class PlayerCraftsItemScriptEvent extends BukkitScriptEvent implements Li
// @Determine
// ItemTag to change the item that is crafted.
//
// @Player Always.
//
// -->

public PlayerCraftsItemScriptEvent() {
Expand Down
Expand Up @@ -34,6 +34,8 @@ public class PlayerDamagesBlockScriptEvent extends BukkitScriptEvent implements
// @Determine
// "INSTABREAK" to make the block get broken instantly.
//
// @Player Always.
//
// -->

public PlayerDamagesBlockScriptEvent() {
Expand Down
Expand Up @@ -41,6 +41,8 @@ public class PlayerDragsInInvScriptEvent extends BukkitScriptEvent implements Li
// <context.slots> returns a ListTag of the slot numbers dragged through.
// <context.raw_slots> returns a ListTag of the raw slot numbers dragged through.
//
// @Player Always.
//
// -->

public PlayerDragsInInvScriptEvent() {
Expand Down
Expand Up @@ -34,6 +34,8 @@ public class PlayerDropsItemScriptEvent extends BukkitScriptEvent implements Lis
// <context.entity> returns a EntityTag of the item.
// <context.location> returns a LocationTag of the item's location.
//
// @Player Always.
//
// -->

public PlayerDropsItemScriptEvent() {
Expand Down
Expand Up @@ -19,28 +19,30 @@
import org.bukkit.event.player.PlayerEditBookEvent;
import org.bukkit.inventory.meta.BookMeta;

// <--[event]
// @Events
// player edits book
// player signs book
//
// @Regex ^on player (edits|signs) book$
//
// @Triggers when a player edits or signs a book.
// @Context
// <context.title> returns the name of the book, if any.
// <context.pages> returns the number of pages in the book.
// <context.book> returns the book item being edited.
// <context.signing> returns whether the book is about to be signed.
//
// @Determine
// "NOT_SIGNING" to prevent the book from being signed.
// dScript to set the book information to set it to instead.
//
// -->

public class PlayerEditsBookScriptEvent extends BukkitScriptEvent implements Listener {

// <--[event]
// @Events
// player edits book
// player signs book
//
// @Regex ^on player (edits|signs) book$
//
// @Triggers when a player edits or signs a book.
// @Context
// <context.title> returns the name of the book, if any.
// <context.pages> returns the number of pages in the book.
// <context.book> returns the book item being edited.
// <context.signing> returns whether the book is about to be signed.
//
// @Determine
// "NOT_SIGNING" to prevent the book from being signed.
// ScriptTag to set the book information to set it to instead.
//
// @Player Always.
//
// -->

PlayerEditsBookScriptEvent instance;
PlayerEditBookEvent event;
ElementTag signing;
Expand Down
Expand Up @@ -33,6 +33,8 @@ public class PlayerEmptiesBucketScriptEvent extends BukkitScriptEvent implements
// <context.location> returns the LocationTag of the block clicked with the bucket.
// <context.relative> returns the LocationTag of the block in front of the clicked block.
//
// @Player Always.
//
// -->


Expand Down
Expand Up @@ -29,6 +29,8 @@ public class PlayerEntersBedScriptEvent extends BukkitScriptEvent implements Lis
// @Context
// <context.location> returns the LocationTag of the bed.
//
// @Player Always.
//
// -->

public PlayerEntersBedScriptEvent() {
Expand Down
Expand Up @@ -33,6 +33,8 @@ public class PlayerFillsBucketScriptEvent extends BukkitScriptEvent implements L
// <context.location> returns the LocationTag of the block clicked with the bucket.
// <context.material> returns the MaterialTag of the LocationTag.
//
// @Player Always.
//
// -->


Expand Down
Expand Up @@ -37,7 +37,9 @@ public class PlayerFishesScriptEvent extends BukkitScriptEvent implements Listen
// <context.item> returns a ItemTag of the item gotten, if any.
//
// @Determine
// "caught:" + ItemTag to change the the item that was caught (only if an item was already being caught).
// "CAUGHT:" + ItemTag to change the the item that was caught (only if an item was already being caught).
//
// @Player Always.
//
// -->

Expand Down
Expand Up @@ -31,6 +31,8 @@ public class PlayerFlyingScriptEvent extends BukkitScriptEvent implements Listen
// @Context
// <context.state> returns an Element(Boolean) with a value of "true" if the player is now flying and "false" otherwise.
//
// @Player Always.
//
// -->

public PlayerFlyingScriptEvent() {
Expand Down
Expand Up @@ -40,6 +40,8 @@ public class PlayerItemTakesDamageScriptEvent extends BukkitScriptEvent implemen
// @Determine
// Element(Number) to set the amount of damage the item will take.
//
// @Player Always.
//
// -->

public static PlayerItemTakesDamageScriptEvent instance;
Expand Down
Expand Up @@ -31,6 +31,8 @@ public class PlayerJoinsScriptEvent extends BukkitScriptEvent implements Listene
// ElementTag to change the join message.
// "NONE" to cancel the join message.
//
// @Player Always.
//
// -->

public PlayerJoinsScriptEvent() {
Expand Down
Expand Up @@ -30,6 +30,8 @@ public class PlayerJumpScriptEvent extends BukkitScriptEvent implements Listener
// @Context
// <context.location> returns the location the player jumped from.
//
// @Player Always.
//
// -->

public PlayerJumpScriptEvent() {
Expand Down
Expand Up @@ -37,6 +37,8 @@ public class PlayerKickedScriptEvent extends BukkitScriptEvent implements Listen
// "REASON:" + ElementTag to change the kick reason.
// "FLY_COOLDOWN:" + DurationTag to cancel the automatic fly kick and set its next cooldown.
//
// @Player Always.
//
// -->

public PlayerKickedScriptEvent() {
Expand Down
Expand Up @@ -30,6 +30,8 @@ public class PlayerLeashesEntityScriptEvent extends BukkitScriptEvent implements
// <context.entity> returns the EntityTag of the leashed entity.
// <context.holder> returns the EntityTag that is holding the leash.
//
// @Player Always.
//
// -->

public PlayerLeashesEntityScriptEvent() {
Expand Down

0 comments on commit ec705d1

Please sign in to comment.