This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
forked from GamlinUK/ClansLite
-
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.
Updated GitHub repository. Changed Spigot API version to
1.19.2
. Ad…
…ded `PlayerConnectionEvent.java`. Added `PlayerDisconnectEvent.java`. Added new clan creation broadcast system. Added new clan join broadcast system. Fixed clan prefix length limits. Added new values to `config.yml`. Added new values to `messages.yml`. Added numerical value to clan members list. Changed PlaceholderAPI expansion version to `1.2.4`. Changed plugin version to `1.2.4`.
- Loading branch information
BuildTools
committed
Aug 28, 2022
1 parent
b20a0e4
commit beeb98d
Showing
11 changed files
with
132 additions
and
20 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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/xyz/gamlin/clans/listeners/PlayerConnectionEvent.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,16 @@ | ||
package xyz.gamlin.clans.listeners; | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.event.player.PlayerJoinEvent; | ||
import xyz.gamlin.clans.Clans; | ||
|
||
public class PlayerConnectionEvent implements Listener { | ||
|
||
@EventHandler | ||
public void onPlayerJoin(PlayerJoinEvent event){ | ||
Player player = event.getPlayer(); | ||
Clans.connectedPlayers.put(player, player.getName()); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/xyz/gamlin/clans/listeners/PlayerDisconnectEvent.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,16 @@ | ||
package xyz.gamlin.clans.listeners; | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.event.player.PlayerQuitEvent; | ||
import xyz.gamlin.clans.Clans; | ||
|
||
public class PlayerDisconnectEvent implements Listener { | ||
|
||
@EventHandler | ||
public void onPlayerQuit(PlayerQuitEvent event){ | ||
Player player = event.getPlayer(); | ||
Clans.connectedPlayers.remove(player); | ||
} | ||
} |
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
Oops, something went wrong.