HomeJavaModsPvpToggle (1.7 & 1.8)
PvpToggle (1.7 & 1.8)
PVP Toggle

Hello,
I'm a beginner in coding so don't expect the code to be perfect... :D

Plugin is made for hub servers or just pvp server and its main purpose is to allow players to toggle their pvp mode ON and OFF with a simple command.
The plugin is compiled with java 1.7 and i think it works for all minecraft versions. I tested it on 1.8.8 and it works perfectly.

When a player joins the server which has PvpToggle installed that player will have his pvp Disabled until he enters a command " /pvp on" which Enables his pvp mode and allows him to fight with players that also have pvp mode Enabled. Players that don't have their pvp modes Enabled can't be hurt buy players with the opposite pvp mode.

Player who executes "/pvp on" gets his stuff stored inside a temporary storage and if he leaves the servers or the server shuts down HE WILL LOSE HIS STUFF!!! After that player gets a predefined kit that can be modified in the config file.

Recommendations:

- CustomJoinItems (Used for receiving items on join)

- PermissionsEx (Used for permissions)

Features:

- Save inventory on pvp Enable
- Give kit on pvp Enable
- Stop Hunger Loss on pvp Enable
- Disable Flying while pvp is Enabled
- Disable GameMode while pvp is Enabled
- Disables pvp mode on death
- Returns Inventory on pvp Disable (just via command " /pvp off")
(if you die or disconnect from the Server it won't return the Inventory)
- Disables pvp mode on death

Supported Minecraft Versions:
All (At least i guess, tested only on 1.8.8 Server)

Config:
(Simple config )
Spoiler: Config.yml
Code (Text):

Armor:
    Helmet:
        Name: "Awesome Helmet"
        Lore:
            - "Helmet 1"
            - "Helmet 2"
            - "Helmet 3"
        ID: 306

    Chestplate:
        Name: "Awesome Chestplate"
        Lore:
            - "Chestplate 1"
            - "Chestplate 2"
            - "Chestplate 3"
        ID: 307

    Leggings:
        Name: "Awesome Leggings"
        Lore:
            - "Leggings 1"
            - "Leggings 2"
            - "Leggings 3"
        ID: 308
 
    Boots:
        Name: "Awesome Boots"
        Lore:
            - "Boots 1"
            - "Boots 2"
            - "Boots 3"
        ID: 309

Items:
    Sword:
        Name: "Awesome Sword"
        Lore:
            - "Sword 1"
            - "Sword 2"
            - "Sword 3"
        ID: 267
        Slot: 0

    Bow:
        Name: "Awesome Bow"
        Lore:
            - "Bow 1"
            - "Bow 2"
            - "Bow 3"
        ID: 261
        Slot: 1

    Arrow:
        Name: "Awesome Arrow"
        Lore:
            - "Arrow 1"
            - "Arrow 2"
            - "Arrow 3"
        ID: 262
        Slot: 2


Commands:

/pvp - Shows command usage
/pvp on - Enables the pvp mode
/pvp off - Disables the pvp mode

Permission:
pvptoggle.use - Allows a player to toggle pvp mode.

Messages:
Spoiler: Screenshots
msg_block.png


To Do:
- Disable Death message...

Test Server: ( If you use the plugin and you are wiling to share your Server with the community i will gladly put it here)
Have questions?
Add me on skype: smart.minecraft

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PvpToggle (1.7 & 1.8) is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8. Downloaded 1,110 times (via Spigot). Download it and open it directly in the game.

Explore more