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

Updated CustomItems & CustomRoles give commands to use default RAUtils.ProcessPlayerIdOrNamesList #179

Merged
merged 9 commits into from
Nov 25, 2024

Conversation

icedchai
Copy link

Description

Describe the changes

What is the current behavior? (You can also link to an open issue here)
Commands currently evaluate only *, all, or Player.Id

What is the new behavior? (if this is a feature change)
Commands now evaluate players based on RAUtils.ProcessPlayerIdOrNamesList (eg @player.17.15) as well as *, all, or Player.Id.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No breaking changes

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

@louis1706
Copy link

Also build your branch with Release not Debug because you wouldn't seen all the error to fix issue of compiling

@icedchai
Copy link
Author

Alright. I'll do that as soon as I can.

Copy link

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some foreach loops can be simplified with LINQ extensions and PR must target dev branch

@icedchai icedchai changed the base branch from master to dev November 16, 2024 02:47
EXILED/EXILED.props Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the Events label Nov 18, 2024
EXILED/EXILED.props Outdated Show resolved Hide resolved
EXILED/Exiled.CustomItems/Commands/Give.cs Outdated Show resolved Hide resolved
EXILED/Exiled.CustomRoles/Commands/Give.cs Outdated Show resolved Hide resolved
Copy link

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@@ -18,6 +18,8 @@ namespace Exiled.CustomItems.Commands
using Exiled.Permissions.Extensions;

using RemoteAdmin;
using UnityStandardAssets.Effects;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

@VALERA771 VALERA771 merged commit e63a7ca into ExMod-Team:dev Nov 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants