Giter VIP home page Giter VIP logo

cowardless's Introduction

Cowardless

A Minecraft plugin that replaces players who log out during combat with an NPC to be killed instead.

The problem

Have you ever engaged in an intense PvP battle, only to have your opponent disconnect abruptly? It’s frustrating, right? You’ve meticulously set up a trap, but they slip away because you missed their exact disconnection point. Cowards ruin the thrill of combat.

The solution

Introducing Cowardless, the ultimate plugin for Minecraft warriors. Say goodbye to cowardly opponents who vanish mid-fight. Here’s how it works:

  1. Clone Activation: When you’re in combat or constantly taking damage (think drowning or lava), Cowardless springs into action. If you attempt to disconnect, a clone takes your place on the server—a mere illusion for other players.
  2. Transfer of Consequences: But here’s the twist: Everything the clone experiences—position, health, inventory, even death—gets transferred back to you when you log back in.
  3. Automatic Despawn: Fear not! If spared and left unattended, the clone will eventually despawn, allowing you to enjoy the peacefulness of having disconnected.

The extra info

In the config.yml(Spigot/Paper), you can adjust how long a player is considered to be in combat, and how long a clone lasts before despawning. You can also turn on a logger that will print to the console when an NPC is spawned or despawned, and a feature that will add the red vignette effect to a player when they are in combat, so that they know not to disconnect. You can also exempt some disconnection reasons from spawning NPCs (this feature is Paper only).

If you have any ideas or feature requests for the plugin, feel free to share them in the repo's discussions.

cowardless's People

Contributors

blurone-git avatar

Watchers

 avatar

cowardless's Issues

Paper 1.20.1 Disabling Plugin

While activating plugin, it send this, then disabling(
Using 1.20.1 Paper

[15:26:11 INFO]: [CowardlessPaper] Enabling CowardlessPaper v2.0
[15:26:11 ERROR]: Error occurred while enabling CowardlessPaper v2.0 (Is it up to date?)
java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
        at code.blurone.cowardless.CowardlessPaper.onEnable(CowardlessPaper.kt:48) ~[Cowardless-paper-2.0 (1).jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.20.1.jar:git-Paper-196]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.1.jar:git-Paper-196]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:642) ~[paper-1.20.1.jar:git-Paper-196]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:553) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:635) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:434) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.20.1.jar:git-Paper-196]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:183) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:150) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        ... 13 more
[15:26:11 INFO]: [CowardlessPaper] Disabling CowardlessPaper v2.0

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.