Huge command system overhaul
This commit is contained in:
@@ -12,25 +12,12 @@
|
||||
|
||||
function initFactionScript() {
|
||||
console.log("[Asshat.Faction]: Initializing faction script ...");
|
||||
addFactionCommandHandlers();
|
||||
console.log("[Asshat.Faction]: Faction script initialized!");
|
||||
return true;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function addFactionCommandHandlers() {
|
||||
console.log("[Asshat.Faction]: Adding faction command handlers ...");
|
||||
let factionCommands = serverCommands.faction;
|
||||
for(let i in factionCommands) {
|
||||
addCommandHandler(factionCommands[i].command, factionCommands[i].handlerFunction);
|
||||
}
|
||||
console.log("[Asshat.Faction]: Faction command handlers added!");
|
||||
return true;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function loadFactionsFromDatabase() {
|
||||
console.log("[Asshat.Faction]: Loading factions from database ...");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user