Merge branch 'player' of git.macaw.me:Macaw/radio into player
This commit is contained in:
commit
2d2ad3085f
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue