#pvp toggle

1 messages · Page 1 of 1 (latest)

real sluice
#

use attacker and victim and on damage event

loud burrow
#

we arent here to give you scripts, we are here to teach you how to resolve your problem

#

do you want an admin using this command to enable/disable PVP for all players, or do you want each player to be able to opt-in individually?

#

And the first step is to always try creating something yourself and send us the code youre having issues with.

nocturne lintel
slow haven
#

give me 2.99 usd first

nocturne lintel
#

lmfao shut up

summer kernel
#

{pvp} is one global variable, meaning its being shared across every player

#

so anyone with the perms is just toggling pvp for the entire server if it works

#

i dont think "pvp mode" exists though

#

you could put the variables into a list, making it independent for each player

nocturne lintel
#

you can put permission and permission message before the trigger in the command, I would recommend that

#

PvP isn't false by default

#

instead, check if {PvP::%player's uuid%} isnt set, then set it to true or delete it

#

that way, you use less variables

silk shadow
#

!format

wispy karmaBOT
# silk shadow !format

:technologist: Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

wispy karmaBOT
#

:technologist: Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

loud burrow
#

that just makes your code look fancy so we can better see it and indentaion;
```on join:
set the join message to "%player% logged on"```

turns into

  set the join message to "%player% logged on"```