-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 7.12.7
- 7.11.10
- 7.10.13
- 7.10.6
- 7.10.2
- 7.9.17
- 7.9.16
- 7.9.15
- 7.9.14
- 7.8.10
- 7.8.5
- 7.6.1
- 7.5.3
- 7.1.12
- 7.0.2
- 7.0.0
- 6.44.14
- 6.44.13
- 6.44.12
- 6.44.11
- 6.44.10
- 6.44.9
- 6.44.8
- 6.44.7
- 6.44.6
- 6.44.0
- 6.42.15
- 6.42.14
- 6.42.13
- 6.42.8
- 6.42.7
- 6.42.0
- 6.37.1
- 6.37.0
- 6.35.0
- 6.34.0
- 6.33.17
- 6.33.16
- 6.33.15
- 6.33.14
- 6.33.13
- 6.33.11
- 6.33.10
- 6.33.9
- 6.33.8
- 6.33.6
- 6.29.12
- 6.29.11
- 6.28.11
1 parent
9000702
commit 43808f3
Showing
19 changed files
with
83 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/ChunkPostClaimEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/ChunkPreClaimEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/LandCreateEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/LandDeleteEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/LandRenameEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/land/bank/BankEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/land/bank/LandBankBalanceChangedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
src/main/java/me.angeschossen.lands.api/events/land/bank/LandBankDepositEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/java/me.angeschossen.lands.api/events/land/claiming/LandUnclaimAllEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/java/me.angeschossen.lands.api/events/land/spawn/LandSpawnRemoveEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/me.angeschossen.lands.api/events/land/spawn/LandSpawnTeleportEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package me.angeschossen.lands.api.events.land.spawn; | ||
|
||
import me.angeschossen.lands.api.events.internal.LandEvent; | ||
import me.angeschossen.lands.api.land.Land; | ||
import me.angeschossen.lands.api.player.LandPlayer; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.HandlerList; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Objects; | ||
|
||
public class LandSpawnTeleportEvent extends LandEvent implements Cancellable { | ||
public static HandlerList handlerList = new HandlerList(); | ||
private boolean cancelled; | ||
|
||
public LandSpawnTeleportEvent(@NotNull Land land, @NotNull LandPlayer landPlayer) { | ||
super(land, landPlayer); | ||
|
||
Objects.requireNonNull(landPlayer, "LandPlayer can't be null"); | ||
} | ||
|
||
@Override | ||
public @NotNull LandPlayer getLandPlayer() { | ||
assert super.getLandPlayer() != null; | ||
return super.getLandPlayer(); | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return handlerList; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return handlerList; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() { | ||
return cancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean cancel) { | ||
this.cancelled = cancel; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters