mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
better warns for help
This commit is contained in:
parent
b69074df6a
commit
8a57f65b71
@ -205,11 +205,11 @@ export default class MapVote extends BasePlugin {
|
||||
this.broadcastNominations();
|
||||
return;
|
||||
case "help": //displays available commands
|
||||
await this.msgDirect(steamID, `Map voting system built by JetDave for MAD`);
|
||||
await this.msgDirect(steamID, `!vote <choices|number|results>`);
|
||||
if (!isAdmin) return;
|
||||
let msg = "";
|
||||
msg += (`!vote <choices|number|results>\n`);
|
||||
if (isAdmin) msg += (`!vote <start|restart|cancel|broadcast> (admin only)\n`);
|
||||
|
||||
await this.msgDirect(steamID, `!vote <start|restart|cancel|broadcast> (admin only)`);
|
||||
await this.msgDirect(steamID, msg + `\nMapVote SquadJS plugin built by JetDave`);
|
||||
return;
|
||||
default:
|
||||
//give them an error
|
||||
|
Loading…
x
Reference in New Issue
Block a user