chown: cleanup and tweak

- update help text to standard syntax
- streamline duplicate code
- remove unnecessary param count checks
- remove explicit nil check where not needed
- updated locale to be neutral to admin or owner
- don't call get_owner or valid_password if is admin
- remove core.player_exists() call since target was checked when joined
faction
- abort early if no target or password provided
This commit is contained in:
Luke aka SwissalpS
2024-09-15 07:01:32 +02:00
parent e7bc7a5da8
commit f130b50565
3 changed files with 19 additions and 30 deletions

View File

@ -7,7 +7,7 @@
@1 is in the following factions: @2.=
@1 is now a member of faction @2.=
@1 isn't in your faction.=
@1 isn't in faction @2.=
Add player to a faction, you need @1 privs=
Allow the use of all playerfactions commands=