Commit graph

3869 commits

Author SHA1 Message Date
Luke
8edd0393e5 Initial OTAPI3 port
TODO: sqlite
2021-11-23 20:49:41 +10:00
Lucas Nicodemus
e303071dce Fix firework command failing without color
After updates to the firework command, a guard was lost, allowing the
switch statement that selected the color to execute on a parameter that
was empty. A guard was added to prevent falling into the switch
statement without enough arguments to match a color.

The default type of firework was manually set to a red firework.

Fixes #2507
2021-11-22 22:16:56 -08:00
Lucas Nicodemus
a01b48ead5 Remove dead code: DBTools.cs 2021-11-22 19:27:40 -08:00
Lucas Nicodemus
320bbad051 Version tick: 4.5.7 2021-11-22 18:07:30 -08:00
Lucas Nicodemus
9416e8f1e2 Remove DIY password hashing crypto
The old system for hashing passwords and permitting users to select
their algorithm has been deprecated and phased out since 2015. This
removes the remaining functions for hashing passwords to clear the way
for .NET5/6 and for OTAPI 3.

In 211b70ca37, I allowed blank passwords
to upgrade to bcrypt hashes. However, the minimum password length has
been 4 historically for a long time. So I don't actually assume a lot of
users have blank passwords, so I think there are very few, if any of the
old hashes laying around.

So therefore, I think this is pretty much safe to merge.
2021-11-22 10:26:57 -08:00
Lucas Nicodemus
614211d7a1 Fix respawning players from the server console 2021-11-21 16:35:47 -08:00
Lucas Nicodemus
35db1cc372 Version tick: 4.5.6 2021-11-21 16:13:32 -08:00
Lucas Nicodemus
211b70ca37 Upgrade blank passwords to bcrypt hashes
Previously, blank passwords were not upgraded to bcrypt hashes. This is
annoying and problematic because it makes it difficult to remove the old
password hashing system because those passwords might still be checked
against non-bcrypt hashes.
2021-11-21 14:44:53 -08:00
Lucas Nicodemus
b17c4cfc13 Add support for disabling IP bans by default
Some proxy users find it irritating when their proxy IP is banned by the
ban command. This helps those users find justice in the world.
2021-11-21 14:30:59 -08:00
Lucas Nicodemus
1aa9956e45 Report correct god mode status to target player
The previous version of the code always told the player having their god
mode toggled the state of the player that issued the command, rather
than their own god mode state. This fixes that issue, and now returns
the correct player's state to the correct player.
2021-11-20 20:02:23 -08:00
Lucas Nicodemus
f523d38300 Check RegionProtectGemLocks before enforcing perms
Fixes #2485. Bouncer now checks to ensure that RegionProtectGemLocks is
enabled before attempting to reject changes from gem locks from players
that don't have build permissions.
2021-11-20 18:19:47 -08:00
Lucas Nicodemus
abb12629ad Add Deerclops to spawnboss command
Fixes #2500
2021-11-20 12:04:55 -08:00
Lucas Nicodemus
42ca83e6b5 Update version codename and changelog for 1.4.3 2021-11-19 22:39:45 -08:00
Lucas Nicodemus
4fff15580b
Merge branch 'general-devel' into general-devel 2021-11-19 22:24:47 -08:00
stacey
d8aa7b0f69
Change RespawnSeconds & RespawnBossSeconds to use default
a value of 0 will use the default time based on selected difficulty
2021-09-13 10:02:03 -04:00
stacey
2b50cbc7b9
Merge branch 'general-devel' into general-devel 2021-09-13 09:52:46 -04:00
Stargazing Koishi
bc5c337b5e
Update /help for /setup change
The auth command was renamed in 8451ef9fb7 but the `/help` command was not updated.
2021-08-31 19:54:40 -07:00
Armano den Boef
1329813f59
Merge branch 'Pryaxis:general-devel' into patch-1 2021-08-25 12:39:04 +02:00
Chris
09a2947cf4
Merge branch 'general-devel' into fix-invalid-groups 2021-08-25 19:16:57 +09:30
Armano den Boef
5bcd37949b
Editing the return in HandleSpecial; Fixes #2436. 2021-08-23 22:58:56 +02:00
stacey
855bdcb57f add color and examples for /gbuff 2021-08-08 21:08:49 -04:00
Armano den Boef
ccea7b7d57
Return loopback IP if RealPlayer is false 2021-08-09 01:32:17 +02:00
stacey
de18c5d8da forgot to add colours to /buff 2021-08-07 10:45:35 -04:00
stacey
6754cd48b4 add examples for /buff 2021-08-07 10:04:49 -04:00
stacey
72dab02a61 add example for /heal and custom heal amount
code is mostly based from /slap, now users will be able to heal a target player by a custom HP amount. I deliberately changed the static 600 HP amount to statLifeMax2 so it would use whatever max HP the target player has, this should make it work better w/ plugins that allow you to set your max HP beyond the base game's 600.
2021-08-07 09:50:29 -04:00
quake1337
b32058ac51
Remove the test method from Utils, re-route checks to GroupManager 2021-08-07 13:56:52 +02:00
stacey
4c217bac65 add colours + usage example for /butcher
also added silent support
2021-08-06 22:57:07 -04:00
stacey
a92e100836 Fix error msg error in /kill 2021-08-06 22:34:13 -04:00
stacey
57365a0534 add colours and examples for /kill
also a bit of refactoring and other small improvements
2021-08-06 22:22:18 -04:00
stacey
ded2e8544b add examples for Clear + minor refactor 2021-08-06 21:11:00 -04:00
stacey
e88ae85683 add colour msg for Rocket and example
we do a lil refactoring, also added a cyan pastel coloured hex code and made various other little improvements
2021-08-06 20:32:14 -04:00
stacey
ca13b50116 add colour and example for Rocket
along with other minor improvements
2021-08-06 18:02:13 -04:00
stacey
7e4f05eb9c add colours to annoy
and add silent support
2021-08-06 16:29:20 -04:00
stacey
45e1e4288a add colours to /w, /wallow, and /r
and various minor improvements
2021-08-06 16:09:36 -04:00
stacey
cb9740bda6 add colours to Mute
also added silent support
2021-08-06 15:34:14 -04:00
stacey
d82a75836f add colour for ListConnectedPlayers
also various other minor improvements
2021-08-06 15:07:06 -04:00
stacey
196ce87669 add colours for GetVersion
testing something
2021-08-06 14:24:06 -04:00
stacey
ecec84ef09
Fix typo in ban usage examples 2021-08-05 14:09:45 -04:00
Chris
1ccc5ced8e
Merge branch 'general-devel' into patch-35 2021-08-03 00:46:52 +09:30
stacey
aa4b735163
Refactor for fail fast approach 2021-08-02 11:15:21 -04:00
stacey
f4c2ab80c9
Merge branch 'general-devel' into patch-35 2021-08-02 10:59:33 -04:00
stacey
0ace9fb091
Merge branch 'general-devel' into patch-30 2021-08-02 10:58:03 -04:00
Chris
c3a074336d
Merge branch 'general-devel' into feature/force-character-gamemodes 2021-08-02 20:05:59 +09:30
Chris
54380fcd9a
Merge branch 'general-devel' into patch-29 2021-08-02 19:09:25 +09:30
Chris
2709af6168
Merge branch 'general-devel' into patch-33 2021-08-02 19:06:17 +09:30
Chris
b766b478fa
Merge branch 'general-devel' into patch-31 2021-08-02 18:58:04 +09:30
stacey
c1f14367e6
Add respawn and respawnother permissions 2021-07-31 14:01:17 -04:00
stacey
818e9ce24b
Add new Respawn command 2021-07-31 13:59:24 -04:00
quake1337
91376ae087
Merge branch 'general-devel' into fix-invalid-groups 2021-07-31 16:38:12 +02:00
quake1337
51348d1806 Fixes for PR 2397.
- GroupManager now validates core groups in the constructor.
- EnsureCoreGroupsPresent -> AssertCoreGroupsPresent.
- Fix indentiation in some places.
- Clarify the intent of this PR in CHANGELOG.md.
2021-07-31 16:34:43 +02:00