We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880d2dc commit f773942Copy full SHA for f773942
Entities/Common/Respawning/OneClassAvailable.as
@@ -28,14 +28,16 @@ void onInit(CBlob@ this)
28
29
void GetButtonsFor(CBlob@ this, CBlob@ caller)
30
{
31
+ CRules@ rules = getRules();
32
+
33
if (!canSeeButtons(this, caller) || !this.exists(req_class)) return;
34
35
string cfg = this.get_string(req_class);
36
if (canChangeClass(this, caller) && caller.getName() != cfg)
37
38
if (caller.getPlayer() is null) return;
39
- if (getRules().get_string("ROLE_" + caller.getPlayer().getUsername()) == "builder")
40
+ if (rules.isWarmup())
41
42
CBitStream params;
43
write_classchange(params, caller.getNetworkID(), cfg);
0 commit comments