Code Monkey home page Code Monkey logo

personalpvp's Introduction

PersonalPVP

version time

A Minecraft plugin that provides a PVP option for each player. PersonalPVP provides a many useful options for this that can be viewed in config.yml.
When a player has PVP disabled, they cannot attack or be attacked by other players despite their PVP statuses.
The PVP status of each player can be locked by admins with the personalpvp.lock permission by default.
Locking a player's status prevents the player from successfully toggling their PVP status while locked.

Useful links:

Projectiles and potion throwing

When one player (or both) has PVP enabled and they try to attack a player who has PVP disabled (or vice-versa), no damage is dealt. If they threw a projectile (by shooting an arrow from a bow or throwing a trident at the player) or a splash potion, the projectile will be returned to the "shooter's" inventory if one of the players had PVP disabled. For this to occur, these config options should be true respectively.

prevent:
  throwable-projectiles: true
  potions: true


Fishing rod interactions are also intercepted.

personalpvp's People

Contributors

nebula-o avatar nickstuaw avatar

Stargazers

 avatar

Watchers

 avatar

personalpvp's Issues

Error on harmful potion splash

When a player with pvp ON throws a harmful splash potion at a player with pvp OFF the defender receives the effect and this error occurs.

[15:22:21 ERROR]: Could not pass event PotionSplashEvent to PersonalPVP v1.5.1
java.lang.IllegalStateException: stream has already been operated upon or closed
        at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:246) ~[?:?]
        at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]
        at com.nsgwick.personalpvp.PotionListener.onSplash(Listeners.java:322) ~[PersonalPVP.jar:?]
        at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:git-Paper-379]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callPotionSplashEvent(CraftEventFactory.java:801) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.world.entity.projectile.ThrownPotion.applySplash(ThrownPotion.java:199) ~[?:?]
        at net.minecraft.world.entity.projectile.ThrownPotion.onHit(ThrownPotion.java:113) ~[?:?]
        at net.minecraft.world.entity.projectile.Projectile.preOnHit(Projectile.java:172) ~[?:?]
        at net.minecraft.world.entity.projectile.ThrowableProjectile.tick(ThrowableProjectile.java:79) ~[?:?]
        at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1135) ~[?:?]
        at net.minecraft.world.level.Level.guardEntityTick(Level.java:936) ~[?:?]
        at net.minecraft.server.level.ServerLevel.lambda$tick$5(ServerLevel.java:674) ~[?:?]
        at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:654) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1593) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1456) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.18.2.jar:git-Paper-379]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-379]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.