Jump to content

Documentation?

Pending 2.2.6

USTECH
  • in Kits
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

  • Curator
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)
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? 

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.2k
Customers served
Files Sold
160k
Total sales
Payments
3.4m
Processed total
×
×
  • 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.