mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
rever to 9615d4fecd
This commit is contained in:
@@ -39,12 +39,8 @@ export default function useAdmin(){
|
||||
adminSocket.emit("change_state", state);
|
||||
}
|
||||
|
||||
function initZone(zone) {
|
||||
adminSocket.emit("set_zone", zone);
|
||||
}
|
||||
|
||||
function removeZone(zone, time) {
|
||||
adminSocket.emit("remove_zone", zone, time);
|
||||
function changeZoneSettings(zone) {
|
||||
adminSocket.emit("set_zone_settings", zone);
|
||||
}
|
||||
|
||||
function changePenaltySettings(penalties) {
|
||||
@@ -54,6 +50,6 @@ export default function useAdmin(){
|
||||
function changeGameSettings(settings) {
|
||||
adminSocket.emit("set_game_settings", settings);
|
||||
}
|
||||
return {...adminContext,changeGameSettings, removeZone, initZone, changePenaltySettings, pollTeams, getTeam, getTeamName, reorderTeams, addTeam, removeTeam, changeState, updateTeam };
|
||||
return {...adminContext,changeGameSettings, changeZoneSettings, changePenaltySettings, pollTeams, getTeam, getTeamName, reorderTeams, addTeam, removeTeam, changeState, updateTeam };
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user