Skip to content

Commit

Permalink
fix player and group meta in depenizen events
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 20, 2020
1 parent 59ca059 commit f556a2c
Show file tree
Hide file tree
Showing 72 changed files with 253 additions and 12 deletions.
Expand Up @@ -26,6 +26,10 @@ public class AreaShopExpiresScriptEvent extends BukkitScriptEvent implements Lis
//
// @Plugin Depenizen, AreaShop
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public AreaShopExpiresScriptEvent() {
Expand Down
Expand Up @@ -32,6 +32,10 @@ public class PlayerCompletesSkyBlockChallengeScriptEvent extends BukkitScriptEve
//
// @Plugin Depenizen, A SkyBlock
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerCompletesSkyBlockChallengeScriptEvent instance;
Expand Down
Expand Up @@ -27,6 +27,10 @@ public class PlayerEntersSkyBlockScriptEvent extends BukkitScriptEvent implement
//
// @Plugin Depenizen, A SkyBlock
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public PlayerEntersSkyBlockScriptEvent instance;
Expand Down
Expand Up @@ -27,6 +27,10 @@ public class PlayerExitsSkyBlockScriptEvent extends BukkitScriptEvent implements
//
// @Plugin Depenizen, A SkyBlock
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerExitsSkyBlockScriptEvent instance;
Expand Down
Expand Up @@ -22,12 +22,15 @@ public class SkyBlockCreatedScriptEvent extends BukkitScriptEvent implements Lis
// @Triggers when a new skyblock is created.
//
// @Context
// <context.owner> Returns the owner of the island.
// <context.location> Returns the location of the island.
// <context.schematic> Returns the name of the schematic used for the island.
//
// @Plugin Depenizen, A SkyBlock
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static SkyBlockCreatedScriptEvent instance;
Expand All @@ -52,15 +55,12 @@ public String getName() {

@Override
public ScriptEntryData getScriptEntryData() {
return new BukkitScriptEntryData(null, null);
return new BukkitScriptEntryData(owner, null);
}

@Override
public ObjectTag getContext(String name) {
if (name.equals("owner")) {
return owner;
}
else if (name.equals("location")) {
if (name.equals("location")) {
return location;
}
else if (name.equals("schematic")) {
Expand Down
Expand Up @@ -21,11 +21,14 @@ public class SkyBlockResetScriptEvent extends BukkitScriptEvent implements Liste
// @Triggers when a new skyblock is reset.
//
// @Context
// <context.owner> Returns the owner of the island.
// <context.location> Returns the location of the island.
//
// @Plugin Depenizen, A SkyBlock
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static SkyBlockResetScriptEvent instance;
Expand All @@ -49,15 +52,12 @@ public String getName() {

@Override
public ScriptEntryData getScriptEntryData() {
return new BukkitScriptEntryData(null, null);
return new BukkitScriptEntryData(owner, null);
}

@Override
public ObjectTag getContext(String name) {
if (name.equals("owner")) {
return owner;
}
else if (name.equals("location")) {
if (name.equals("location")) {
return location;
}
return super.getContext(name);
Expand Down
Expand Up @@ -27,6 +27,10 @@ public class BungeePlayerJoinsScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Player when the player has been on this specific server before.
//
// @Group Depenizen
//
// -->

public BungeePlayerJoinsScriptEvent() {
Expand Down
Expand Up @@ -27,6 +27,10 @@ public class BungeePlayerQuitsScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Player when the player has been on this specific server before.
//
// @Group Depenizen
//
// -->

public BungeePlayerQuitsScriptEvent() {
Expand Down
Expand Up @@ -28,6 +28,10 @@ public class BungeePlayerServerSwitchScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Player when the player has been on this specific server before.
//
// @Group Depenizen
//
// -->

public BungeePlayerServerSwitchScriptEvent() {
Expand Down
Expand Up @@ -30,6 +30,8 @@ public class BungeeProxyServerCommandScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Group Depenizen
//
// -->

public BungeeProxyServerCommandScriptEvent() {
Expand Down
Expand Up @@ -33,6 +33,8 @@ public class BungeeProxyServerListPingScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Group Depenizen
//
// -->

public BungeeProxyServerListPingScriptEvent() {
Expand Down
Expand Up @@ -21,6 +21,8 @@ public class BungeeServerConnectScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Group Depenizen
//
// -->

public BungeeServerConnectScriptEvent() {
Expand Down
Expand Up @@ -21,6 +21,8 @@ public class BungeeServerDisconnectScriptEvent extends BukkitScriptEvent {
//
// @Plugin Depenizen, BungeeCord
//
// @Group Depenizen
//
// -->

public BungeeServerDisconnectScriptEvent() {
Expand Down
Expand Up @@ -31,6 +31,8 @@ public class CrackShotLandmineTriggerEvent extends BukkitScriptEvent implements
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotLandmineTriggerEvent instance;
Expand Down
Expand Up @@ -29,6 +29,8 @@ public class CrackShotPlayerFinishesReloadingWeaponEvent extends BukkitScriptEve
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerFinishesReloadingWeaponEvent instance;
Expand Down
Expand Up @@ -35,6 +35,8 @@ public class CrackShotPlayerFiresAutomaticWeaponEvent extends BukkitScriptEvent
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerFiresAutomaticWeaponEvent instance;
Expand Down
Expand Up @@ -41,6 +41,8 @@ public class CrackShotPlayerFiresProjectileEvent extends BukkitScriptEvent imple
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerFiresProjectileEvent instance;
Expand Down
Expand Up @@ -29,6 +29,8 @@ public class CrackShotPlayerPlacesLandmineEvent extends BukkitScriptEvent implem
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerPlacesLandmineEvent instance;
Expand Down
Expand Up @@ -29,6 +29,8 @@ public class CrackShotPlayerStartsFiringWeaponEvent extends BukkitScriptEvent im
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerStartsFiringWeaponEvent instance;
Expand Down
Expand Up @@ -45,6 +45,8 @@ public class CrackShotPlayerStartsReloadingWeaponEvent extends BukkitScriptEvent
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerStartsReloadingWeaponEvent instance;
Expand Down
Expand Up @@ -36,6 +36,8 @@ public class CrackShotPlayerTogglesWeaponAttachmentEvent extends BukkitScriptEve
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerTogglesWeaponAttachmentEvent instance;
Expand Down
Expand Up @@ -30,6 +30,8 @@ public class CrackShotPlayerZoomsWeaponScopeEvent extends BukkitScriptEvent impl
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotPlayerZoomsWeaponScopeEvent instance;
Expand Down
Expand Up @@ -33,6 +33,8 @@ public class CrackShotWeaponCausesExplosionEvent extends BukkitScriptEvent imple
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotWeaponCausesExplosionEvent instance;
Expand Down
Expand Up @@ -40,6 +40,8 @@ public class CrackShotWeaponDamageEntityEvent extends BukkitScriptEvent implemen
//
// @Player Always
//
// @Group Depenizen
//
// -->

public static CrackShotWeaponDamageEntityEvent instance;
Expand Down
Expand Up @@ -29,6 +29,10 @@ public class PlayerAFKStatusScriptEvent extends BukkitScriptEvent implements Lis
//
// @Plugin Depenizen, Essentials
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerAFKStatusScriptEvent instance;
Expand Down
Expand Up @@ -28,6 +28,10 @@ public class PlayerBalanceChangeScriptEvent extends BukkitScriptEvent implements
//
// @Plugin Depenizen, Essentials
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerBalanceChangeScriptEvent instance;
Expand Down
Expand Up @@ -29,6 +29,10 @@ public class PlayerGodModeStatusScriptEvent extends BukkitScriptEvent implements
//
// @Plugin Depenizen, Essentials
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerGodModeStatusScriptEvent instance;
Expand Down
Expand Up @@ -30,6 +30,10 @@ public class PlayerJailStatusScriptEvent extends BukkitScriptEvent implements Li
//
// @Plugin Depenizen, Essentials
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerJailStatusScriptEvent instance;
Expand Down
Expand Up @@ -30,6 +30,10 @@ public class PlayerMuteStatusScriptEvent extends BukkitScriptEvent implements Li
//
// @Plugin Depenizen, Essentials
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public static PlayerMuteStatusScriptEvent instance;
Expand Down
Expand Up @@ -39,6 +39,11 @@ public class GPClaimEnterEvent extends BukkitScriptEvent implements Listener {
// <context.old_claim> returns the gpclaim being exited.
//
// @Plugin Depenizen, GriefPrevention
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public GPClaimEnterEvent() {
Expand Down
Expand Up @@ -31,6 +31,8 @@ public class EntityDisguisesScriptEvent extends BukkitScriptEvent implements Lis
//
// @Plugin Depenizen, LibsDisguises
//
// @Group Depenizen
//
// -->

public EntityDisguisesScriptEvent() {
Expand Down
Expand Up @@ -31,6 +31,8 @@ public class EntityUndisguisesScriptEvent extends BukkitScriptEvent implements L
//
// @Plugin Depenizen, LibsDisguises
//
// @Group Depenizen
//
// -->

public EntityUndisguisesScriptEvent() {
Expand Down
Expand Up @@ -32,6 +32,10 @@ public class ManaChangeScriptEvent extends BukkitScriptEvent implements Listener
//
// @Plugin Depenizen, MagicSpells
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public ManaChangeScriptEvent() {
Expand Down
Expand Up @@ -54,6 +54,10 @@ public class SpellCastScriptEvent extends BukkitScriptEvent implements Listener
//
// @Plugin Depenizen, MagicSpells
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public SpellCastScriptEvent() {
Expand Down
Expand Up @@ -27,6 +27,10 @@ public class SpellCastedScriptEvent extends BukkitScriptEvent implements Listene
//
// @Plugin Depenizen, MagicSpells
//
// @Player Always.
//
// @Group Depenizen
//
// -->

public SpellCastedScriptEvent() {
Expand Down

0 comments on commit f556a2c

Please sign in to comment.