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

Case sensitive #136

Closed
wants to merge 8 commits into from
Closed

Case sensitive #136

wants to merge 8 commits into from

Conversation

bearbin
Copy link
Member

@bearbin bearbin commented May 8, 2015

Made the commands case-insensitive and also autocomplete names. Fixes #135

Formatting fix.

More formatting changes, more consistency.

Revert "Clear is now case-insensitive"

This reverts commit ea8fe92.

Proper fix this time.
InventoryCleared = true
end
OtherPlayer:GetInventory():Clear()
InventoryCleared = true
Copy link
Member

Choose a reason for hiding this comment

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

This is not so good. The FindAndDoWithPlayer function actually calls the callback for the nearest name, it doesn't have to match.
Consider there are three players, Admin, Xoft and Xof. Now admin wants to cleat Xof's inventory, so he types /clear Xof. Just before sending the command, Xof disconnects, and Xoft's inventory gets cleared.

Copy link
Member Author

Choose a reason for hiding this comment

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

But the likelihood of that happening is very small, and the usability benefit of being able to use partial names IMO outweights the possibility of doing the command to the wrong person.

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps show a confirmation message for critical commands like banning or clearing inventory?
are you sure? Press Y to confirm and delete the Inventory of <Full player name here>

Copy link
Member Author

Choose a reason for hiding this comment

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

Better would be a delay where you could type /clear cancel to cancel the clearing. But IDK if that's the best solution.

@madmaxoft
Copy link
Member

Question: Do we want case-insensitive, or case-sensitive names?

@bearbin
Copy link
Member Author

bearbin commented May 8, 2015

We want case insensitive names.

@tigerw
Copy link
Member

tigerw commented May 8, 2015

That was answered before, but please do consider reconsidering: #761

Seeing as bearing himself voted no, opinions can change! :P

@bearbin
Copy link
Member Author

bearbin commented May 8, 2015

@tigerw That's a different issue - the actual command. This is discussing the player names in the command. I still think that the command names themselves should probably be case-sensitive, in order that plugins can make up their own mind as to what to do with different capitalisations of commands.

@sphinxc0re sphinxc0re closed this Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some console commands are case sensitive to player names
5 participants