Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LeonMangler/PremiumVanishAPI
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.9.0-4
Choose a base ref
...
head repository: LeonMangler/PremiumVanishAPI
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.9.18-2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 9, 2025

  1. Add Velocity events

    LeonMangler committed Mar 9, 2025
    Copy the full SHA
    cdf7396 View commit details
  2. Fix pom.xml

    LeonMangler committed Mar 9, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3d7b709 View commit details
Showing with 48 additions and 4 deletions.
  1. +4 −4 pom.xml
  2. +22 −0 src/main/java/de/myzelyam/api/vanish/VelocityPlayerHideEvent.java
  3. +22 −0 src/main/java/de/myzelyam/api/vanish/VelocityPlayerShowEvent.java
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

<groupId>de.myzelyam</groupId>
<artifactId>PremiumVanishAPI</artifactId>
<version>2.9.0-4</version>
<version>2.9.18-2</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -36,8 +36,8 @@
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<repository>
<id>velocity-repo</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
@@ -52,7 +52,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.20-R0.1-SNAPSHOT</version>
<version>1.21-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Velocity API-->
22 changes: 22 additions & 0 deletions src/main/java/de/myzelyam/api/vanish/VelocityPlayerHideEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package de.myzelyam.api.vanish;

import com.velocitypowered.api.proxy.Player;

/**
* Called when an online player vanishes
*/
public class VelocityPlayerHideEvent {

private final Player player;

public VelocityPlayerHideEvent(Player player) {
this.player = player;
}

/**
* @return The player who is vanishing
*/
public Player getPlayer() {
return player;
}
}
22 changes: 22 additions & 0 deletions src/main/java/de/myzelyam/api/vanish/VelocityPlayerShowEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package de.myzelyam.api.vanish;

import com.velocitypowered.api.proxy.Player;

/**
* Called when an online player reappears
*/
public class VelocityPlayerShowEvent {

private final Player player;

public VelocityPlayerShowEvent(Player player) {
this.player = player;
}

/**
* @return The player who is reappearing
*/
public Player getPlayer() {
return player;
}
}