Glass Bridge Event

Glass Bridge Event 1.6.1

Glass Bridge is an event inspired by the famous netflix series: Squid Game

• The event consists of creating a glass bridge where players must jump over them and reach the finish line to be the winner of the game;
• However, players will have some challenges for this. The event can have PVP combat during gameplay, as well as giving random weapons to players (set by config file) so they can kill each other;
• In addition, it is possible to disable the PVP or even make it more hardcore, activating the system of dying after the fall;

Demonstration video:

★ Features:
★ It is possible to add a different announcement for each weapon given to the user during the course of the event!
★ UI for event entry and exit fully customizable by configuration file.
★ Give customized prizes to users, in addition to executing commands on the server when a user is the winner of the event!
★ Manage the size of the arena and define the amount of glass that will be broken for each row!

Chat commands:
/gb start
- To start a new event
/gb stop - To stop the current event
/gb join - To join the event
/gb leave - To leave the event

<API/>
C#:
// Returns whether the event is currently active
private bool IsActive();

// Returns whether a player is currently participating in the event.
private bool IsPlaying(string playerId);
private bool IsPlaying(ulong playerId);

// Remove a player from the event
private void RemovePlayer(string playerId);
private void RemovePlayer(ulong playerId);

// Get a list of event players
private List<BasePlayer> PlayingList();

// Hook when the event is started
private void OnGlassBridgeEventStarted();

// Hook when the event is finished
private void OnGlassBridgeEventEnded(BasePlayer? winner);

Formatting:
{winner_id}
- Event winner steam ID
{winner_name} - Event winner display name

Default configuration file:
JSON:
{
  "Commands": [
    "glassbridge",
    "gb"
  ],
  "Permission name": "glassbridge.admin",
  "Allowed console commands ('*' to allow all commands)": [],
  "Blocked chat commands ('*' to block all commands)": [],
  "Event settings": {
    "Auto start cooldown in seconds (0 = disabled)": 3600,
    "Waiting duration (seconds)": 120,
    "Auto stop after seconds (0 = disabled)": 300,
    "Minimum players": 1,
    "Lose when fall": false,
    "PVP Enabled": true,
    "Rollback players to start point when die": true,
    "Spawn position": {
      "x": 300.0,
      "y": 800.0,
      "z": 300.0
    },
    "Give times": [
      {
        "Tiem after the event started": 30.0,
        "Item shortname": "arrow.wooden",
        "Item amount": 3,
        "Item skin ID": 0,
        "Loaded ammo (0 = disabled)": 0,
        "Container to give (wear/belt/main)": "main",
        "Show warn for this item?": false,
        "Warn background color": "0 0.52 1 1",
        "Lang message key": ""
      },
      {
        "Tiem after the event started": 30.0,
        "Item shortname": "bow.hunting",
        "Item amount": 1,
        "Item skin ID": 0,
        "Loaded ammo (0 = disabled)": 1,
        "Container to give (wear/belt/main)": "belt",
        "Show warn for this item?": true,
        "Warn background color": "0.12 0.46 0.21 1",
        "Lang message key": "ReceivedNewItem"
      },
      {
        "Tiem after the event started": 120.0,
        "Item shortname": "pistol.revolver",
        "Item amount": 1,
        "Item skin ID": 0,
        "Loaded ammo (0 = disabled)": 4,
        "Container to give (wear/belt/main)": "belt",
        "Show warn for this item?": true,
        "Warn background color": "0 0.52 1 1",
        "Lang message key": "ReceivedNewItem"
      },
      {
        "Tiem after the event started": 180.0,
        "Item shortname": "rifle.ak",
        "Item amount": 1,
        "Item skin ID": 0,
        "Loaded ammo (0 = disabled)": 12,
        "Container to give (wear/belt/main)": "belt",
        "Show warn for this item?": true,
        "Warn background color": "0.58 0.25 0.25 1",
        "Lang message key": "ReceivedNewItem"
      }
    ]
  },
  "Glasses settings": {
    "columns": 18,
    "rows": 24,
    "Broken glasses by row (need to be less than columns)": 9
  },
  "Prize settings": {
    "Commands to execute on server": [
      "oxide.usergroup add {winner_id} glassbridge_event_winner"
    ],
    "Items to give": [
      {
        "Item shortname": "rifle.ak",
        "Item amount": 1,
        "Item skin ID": 1826520371,
        "Custom name (empty = disabled)": "Apocalyptic Knight AK"
      },
      {
        "Item shortname": "ammo.rifle",
        "Item amount": 128,
        "Item skin ID": 0,
        "Custom name (empty = disabled)": "Ammo for your AK"
      }
    ]
  },
  "UI settings": {
    "Join Leave UI": {
      "Anchor": "1 0.5 1 0.5",
      "Offset": "-146 -12 -12 138",
      "Background color": "0.18 0.17 0.18 1",
      "Join leave button": {
        "Join background color": "0.18 0.41 0.12 1",
        "Leave background color": "0.41 0.12 0.12 1"
      }
    },
    "Event status UI": {
      "Anchor": "0.5 1 0.5 1",
      "Offset": "-48 -100 48 -36",
      "Remaining players": {
        "Background color": "1 1 1 0.5",
        "Anchor": "0 0 1 0",
        "Offset": "0 0 0 24",
        "Icon URL": "https://i.postimg.cc/HsfZffQb/HY9DNLr.png",
        "Icon anchor": "0 0 0 1",
        "Icon offset": "4 4 20 -4"
      },
      "Remaining time": {
        "Background color": "1 1 1 0.5",
        "Anchor": "0 0 1 1",
        "Offset": "0 28 0 0"
      }
    }
  },
  "Version": {
    "Major": 1,
    "Minor": 6,
    "Patch": 0
  }
}

Capturadetela2023-09-05084543.png

Information

Author
yun
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest Release v1.6.1

Released
Dec 22, 2023 at 5:06 AM
Rating
0.00 star(s) 0 ratings


More resources from yun

  • Furnace Upgrades
    Furnace Upgrades
    Upgrade your furnaces and improve smelting!
  • Military Airfield Event
    Military Airfield Event
    Military Airfield is an event that complicates things at the AirField monument.
  • TC Levels
    TC Levels
    TCLevels is a plugin that will make your server more fun and have more things to do!
  • NPC Bands
    NPC Bands
    Create NPCs bands to play songs
  • Danger Zones
    Danger Zones
    DangerZones is a plugin that creates a bombing zone event, just like in Battle Royale games!

Glass Bridge Event by yun
© chaoscode.io Dec 22, 2023