HomeJavaModsPacketThirst
PacketThirst
[​IMG]

This plugin enhances your gaming experience and provides you with a unique survival mode that will test your limits.

Multi-World Suggestion

Please, make sure to open config.yml and set `enabled-worlds` the worlds you want the plugin to be enabled.
Your server has to be closed when adding new worlds.



Client Side Features
Commands
Permissions
Development API

Spoiler: PlayerThirstLevelChangeEvent
This event activates when the player thirst changes.

You can use event.setCancelled(true) to cancel thirst consumption. Why cancel thirst consumption? because you might want to create your own method to cancel thirst consumption. For example, when a player has a custom Helmet, is flying or anything else you want to do.

But not only that, this event has methods that allow you to handle things better, such as:

  • int - event.getThirst() - Get's player current thirst.

  • bossbar - event.getBossBar() - Get's player thirst bossbar.
  • boolean - event.isUnderSwimming() - Checks if the player is under swimming.

  • boolean - event.notValidate() - Checks if the player is null, dead, creative mode, spectate mode.
This is an example of what i use:

Code (Text):
    @EventHandler
    public void onLevel(PlayerThirstLevelChangeEvent event) {
        if (event.isUnderSwimming(event.getPlayer()) || (event.notValidate(event.getPlayer()))) {
            event.setCancelled(true);
        }
    }
If you are wondering that you can't set your own warning messages because DeadSociety has already warnings from the configuration, this is not a problem, you can always set them to false and create your own with this custom event.
For any bug or feedback, please contact me or comment in the discussion section.
Click to expand...


Premium Plugins

> DeadSociety <

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.

PacketThirst is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11, 1.12. Downloaded 722 times (via Spigot). Download it and open it directly in the game.

Explore more