Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow players to get a parachute through a command #263

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public void ShowCredits(Player player)
dialogService.ShowAsync(player, dialog);
}

[PlayerCommand("p")]
public void GiveParachute(Player player)
{
player.GiveWeapon(Weapon.Parachute, 1);
}

[PlayerCommand("kill")]
public void Kill(Player player)
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Beware! Enemies will see flag carriers on their radar as well!</value>
{Color1}/topspree: {Color2}Display the list of top players based on their maximum killing spree.
{Color1}/team: {Color2}Switch to a different team.
{Color1}/kill: {Color2}Eliminate your character for respawn purposes.
{Color1}/p: {Color2}Allows the player to get a parachute.
{Color1}/re: {Color2}Reset the statistics of the current player.
{Color1}/admins: {Color2}List the current server administrators.
{Color1}/vips: {Color2}Display the list of VIP players.
Expand Down
Loading