Coder Social home page Coder Social logo

brawaru / aessentialsxafkdelay Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 177 KB

Addon for EssentialsX that adds a configurable delay before activating the AFK status.

License: MIT License

Java 95.73% JavaScript 4.27%
essentialsx minecraft bukkit bukkit-plugin

aessentialsxafkdelay's Introduction

AEssentialsXAFKDelay logo

AEssentialsXAFKDelay

Adds a configurable delay before activating the AFK status.

What is this?

When you use Essentials AFK feature with freeze-afk-players, then you are probably aware that it gives players essentially a god mode. This allows players to abuse this feature to escape from fights with mobs or other players, as well as cancel things like fall damage with one command.

This is why this plugin was born. It adds a configurable delay that player must wait while standing still and not receiving any damage. If they do, the activation will be cancelled. It encourages players to seek safety before activating the status, which is what you expect people stepping away from keyboard would do.

Usage

Install alongside the EssentialsX plugin. Once loaded for the first time, it will create a config folder with config.yml file where you can configure the delay, check activation interval, and change the messages for various languages.

Configuration options

All configuration options are documented in the config file.

Available permissions
  • essentials.afk.immediate
    Whether the player can switch to AFK without the waiting.

    Default: true.

Why not contribute this to EssentialsX?

I found that writing this ‘addon’ plugin was easier, and it achieved the desired effect immediately. If I made these changes to EssentialsX I would have to wait a long time for a review and merge, and in a meanwhile would have to resort to self-building.

Nevertheless, I will consider remaking this as a patch to Essentials in the future.

Feedback and bug reports

All feedback and bug reports are welcome in the GitHub issues.

Support policy

To cut cost of maintenance only the latest major Minecraft versions are supported (targeted and tested). You may be able to download older versions of the plugin through releases history, but do not expect any of the changes from newer versions to be back-ported.

You are welcome to fork and back-port this plugin to work on older versions; however, no bug reports will be accepted from such builds unless they are reproducible in newer builds.

Credits

  • Icon uses JetBrains Mono font for text and Twemoji for Hourglass symbol.
  • This project would not exist without the support of Fundy's offline chat community.

aessentialsxafkdelay's People

Contributors

brawaru avatar semantic-release-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.