⛏️ The Bridge [1.8 - 1.21] ⚔️ icon

⛏️ The Bridge [1.8 - 1.21] ⚔️ -----

The bridge game easy to set up!



To get the plugin object "The Bridge" just use this:
Code (Java):
TheBridge theBridge = (TheBridge ) Bukkit. getPluginManager ( ). getPlugin ( "TheBridge" ) ;
Events:
Code (Java):
#GameEndEvent (Game game )
Called when the game ends.

#GameStartEvent (Game game )
Called when the game starts.

#GameStateChangeEvent (Game game, GameState stageFrom, GameState stageTo )
Called when the game changes its state.

#PlayerKilledInGameEvent (Player player, Game game, String gameName, String message )
Called when a player kills another player in game.

#PlayerScoreGameEvent (Player player, Game game )
Called when a player scores in game.
Example how to use:
Code (Java):
@EventHandler
public void OnGameEndEvent (GameEndEvent e ) {
  for (Entry < String, TeamPlayer > entryPlayer : e. getGame ( ). teamPlayers. entrySet ( ) ) {
    String playerName = entryPlayer. getKey ( ) ;
    TeamPlayer teamPlayer = entryPlayer. getValue ( ) ;
    Bukkit. broadcastMessage (playerName + " scored " + teamPlayer. scores + " goals and got " + teamPlayer. kills + " kills!" ) ;
  }
}
Resource Information
Author:
----------
Total Downloads: 57,272
First Release: Aug 23, 2018
Last Update: Nov 8, 2024
Category: ---------------
All-Time Rating:
54 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings