Merge branch 'player' of git.macaw.me:Macaw/radio into player
This commit is contained in:
commit
2d2ad3085f
@ -263,6 +263,7 @@ void Corax::onNodeConnected(const W::String& name)
|
||||
cout << "connected node " << name.toString() << endl;
|
||||
if (name == u"Perturabo") {
|
||||
commands->enableCommand(W::String(u"parseDirectory"), true);
|
||||
commands->enableCommand(W::String(u"givePlayer"), true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -271,6 +272,7 @@ void Corax::onNodeDisconnected(const W::String& name)
|
||||
cout << "disconnected node " << name.toString() << endl;
|
||||
if (name == u"Perturabo") {
|
||||
commands->enableCommand(W::String(u"parseDirectory"), false);
|
||||
commands->enableCommand(W::String(u"givePlayer"), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user