NightPvP 1.1

It's a dangerous world at night. Allow PvP during the night, protect players from pvp during the day

  1. Zedwick
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.14
    It's a dangerous world at night; allow PvP during the night, and protect players from pvp during the day.

    During the day players cannot harm each other, but once darkness falls they are free to attack each other in Player versus Player combat!

    Daytime protection can be enabled/disabled individually per world.

    For example:
    • Night time PvP in your main world
    • always allow pvp (or allow another plugin to handle pvp protection) in your nether and end worlds.

    SectionHeader_Features.png
    • Protects players from pvp during the day.
    • Protects against multiple forms of pvp (melee, arrows, snowballs, tnt, Fire Aspect enchantment).
    • Allows PvP during the night.
    • Can be enabled/disabled per world.
    • Notify players on Day/night that their pvp status has changed.
    • Notify players when switching worlds of the current pvp status in that world.
    • All messages are displayed to players in the action bar.
    • Bypass pvp restrictions with /bypasspvp command. (perm: nightpvp.command.bypasspvp)

    SectionHeader_Configs.png

    config.yml

    Code (Text):
    messages:
      attacker:
        bypass: You are bypassing NightPvP!
        day: You cannot hurt other players during the day
      victim:
        day: You are protected from PvP during the day
      notice:
        day: You are protected from PvP during the day
        night: Watch where you swing that sword! You can hurt other players during the night.
        world: Watch where you swing that sword! You can hurt other players in this world.
        generic: Watch where you swing that sword! You can hurt other players!
      command:
        bypasspvp:
          toggleon: You are now bypassing pvp restrictions!
          toggleoff: You are no longer bypassing pvp restrictions.
          notaplayer: Must be a player to bypass pvp restrictions.
     
    worlds/world.yml

    Code (Text):
    enabled: true
    SectionHeader_Setup.png

    Installation is easy, just drop it into your plugins folder. Everything should be ready to go with no configuration necessary!

    Configuration explained

    The default plugin config contains some messages the plugin uses, you can change these as desired.

    - messages.attacker.bypass: Displayed to a player with the permission node nightpvp.pvpbypass when they attack another player.
    - messages.attacker.day: Displayed to any player who atacks another player during the day in an enabled world.
    - messages.victim.day: Displayed to any player who is attacked by another player during the day in an enabled world.
    - messages.notice.day: Displayed to any player during the day when entering the world, joining the game into the world or when the time switches to day.
    - messages.notice.night: Displayed to any player during the night when entering the world, joining the game into the world or when the time switches to night.
    - messages.notice.world: Displayed to any player when entering, or joining the game into, a world which is currently configured to be ```enabled:false```.
    - messages.notice.generic: A generic warning if, for some reason, the other messages do not apply.
    - messages.command.bypasspvp.toggleon: Displayed in chat when enabling bypass for pvp restrictions with /bypasspvp.
    - messages.command.bypasspvp.toggleoff: Displayed in chat when disabling bypass for pvp restrictions with /bypasspvp.
    - messages.command.bypasspvp.notaplayer: Displayed in console when attempting to toggle bypass for pvp restrictions from console.

    The individual world configs currently just contain one option, but more will follow in future updates.

    - enabled: Controls whether NightPvP will manage pvp for this world. If true, players will not be able to pvp during the day. If false, players will be able to pvp in this world at all times (unless another plugin handles pvp for this world).


    SectionHeader_Screenshots.png

    messages.attacker.day.png

    messages.victim.day.png

    SectionHeader_Notes.png

    This plugin uses the TextAPI library by theluca98, which is included in this plugin's jar.
    You do not need to install any other plugin dependencies in order to use this plugin.

    Images

    1. messages.victim.day.png
    cjy0328 and Sr.Sawa like this.

Recent Reviews

  1. Sr.Sawa
    Sr.Sawa
    5/5,
    Version: 1.0
    great plugin for survival server, would be nice if it also works up at 1.14.2. Is there any possibility yet?