Jump to content

Documentation?

Pending 2.2.6

USTECH
USTECH

Posted

Is there any documentation on how to use this or examples of all the fields? 

I am using Warmode PVE/PVP plugin and would like to add a Kit for Flag Change which will change the players Flag from PVE to PVP or PVP to PVE with the command. 

Things I'm wondering can a admin command be run in a kit?  How would I run the command ? 

Warmode Commands

/flag

Allows players to switch between PvE and PvP

Requires the warmode.flag permission

You can change this command in the config (I thought if I cant run an admin command I will change this command name to something someone wouldn't guess) 

 

/warmode.setpayer <player> <pve|pvp>

Manually sets the mode of the given player

Requires warmode.admin permission

Mevent

Posted

Hi! Yes, you can run commands through kits! 👋

For your Warmode Flag Kit:

In your kit configuration (oxide/data/Kits.json😞

  "Use commands on receiving?": true,
  "Commands on receiving (via '|')": "flag %steamid%"

 

Key Points:

  • "Use commands on receiving?": true - Enables commands
  • %steamid% - Gets replaced with player's Steam ID
  • Multiple commands: separate with | like "command1|command2"
  • Commands run as the server (not a player)
  • Like 1
USTECH

Posted

Thanks.  Unfortunately I'm not sure why but the flag command doesn't work.  It works in F1 console but maybe not set to use a steamid, I used without steamid and it didn't work. 

warmode.setplayer pve worked but then I will need two kits 1 PVE and 1 PVP with cooldowns 

But it opens up someone choosing PVP and raiding and then PVP before logoff but would be stuck PVP for 7 days (my cooldown). But then can repeat... raid  pvp and then switch to pve. 

Is there a way if someone takes 1 kit it triggers a cooldown on both? 

 

1.8m

Downloads

Total number of downloads.

8.5k

Customers

Total customers served.

128.5k

Files Sold

Total number of files sold.

2.7m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.