1 |
CommandConfig is not what you want. "Springie rights set to 0" is a punishment that is supposed to change rights level for a [i]single user[/i], changing CommandConfig would change the [i]required[/i] level for [i]all[/i] users.
|
1 |
CommandConfig is not what you want. "Springie rights set to 0" is a punishment that is supposed to change rights level for a [i]single user[/i], changing CommandConfig would change the [i]required[/i] level for [i]all[/i] users.
|
2 |
\n
|
2 |
\n
|
3 |
There
isn't
a
separate
user
rights
file,
that
info
is
in
the
db
as
Account.
SpringieLevel
(
https://github.
com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkData/Ef/Account.
cs#L25)
.
There's
GetEffectiveSpringieLevel(
)
(
https://github.
com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkData/Ef/Account.
cs#L588)
that
takes
punishments
into
account.
|
3 |
There
isn't
a
separate
user
rights
file,
that
info
is
in
the
db
as
[url=https://github.
com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkData/Ef/Account.
cs#L25]Account.
SpringieLevel[/url].
There's
[url=https://github.
com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkData/Ef/Account.
cs#L588]GetEffectiveSpringieLevel(
)
[/url]
that
takes
punishments
into
account.
|
4 |
\n
|
4 |
\n
|
5 |
Springie uses User.SpringieLevel at https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/Springie/Springie/autohost/AutoHost.cs#L228. That's set in zk lobby server at https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkLobbyServer/LoginChecker.cs#L241 and you can see it uses plain SpringieLevel instead of GetEffectiveSpringieLevel(). If you already have the testing environment up you should check if that fixes it, if not you should work on getting it up first.
|
5 |
Springie uses User.SpringieLevel at https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/Springie/Springie/autohost/AutoHost.cs#L228. That's set in zk lobby server at https://github.com/ZeroK-RTS/Zero-K-Infrastructure/blob/master/ZkLobbyServer/LoginChecker.cs#L241 and you can see it uses plain SpringieLevel instead of GetEffectiveSpringieLevel(). If you already have the testing environment up you should check if that fixes it, if not you should work on getting it up first.
|
6 |
\n
|
6 |
\n
|
7 |
One problem remains: the user will need to relogin for the punishment to take effect. That's already true for mute, so this doesn't change much, but for bonus points zkls should watch for punishment changes and update mute, springie level and kick banned users accordingly.
|
7 |
One problem remains: the user will need to relogin for the punishment to take effect. That's already true for mute, so this doesn't change much, but for bonus points zkls should watch for punishment changes and update mute, springie level and kick banned users accordingly.
|