![[IMG]](http://proxy.spigotmc.org/bd01fff92db7d22a647e8ae5f1035c5ba96ccf99?url=https%3A%2F%2Fcdn.pbrd.co%2Fimages%2FGDVW3wg.jpg)
This plugin enhances your gaming experience and provides you with a unique survival mode that will test your limits.
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
-
Auto Configuration System Update.
-
Multi-World Support.
-
Language Support.
-
Development API
- /Thirst - Shows your current thirst.
- /Thirst Reload - Reload all data related to config configuration files.
- /Thirst Refill - Sets your current thirst back to 100%
- /Thirst Refill <Player> - Sets a player current thirst back to 100%.
-
pt.thirst - Shows your current thirst.
-
pt.help - Shows all available commands.
-
pt.reload - Reload all data related to config configuration files.
-
pt.refill - Sets your current thirst back to 100%
-
pt.refill.others - Sets a player current thirst back to 100%.
-
pt.* - Use all the permissions.
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:
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.
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.
Code (Text):
@EventHandler
public void onLevel(PlayerThirstLevelChangeEvent event) {
if (event.isUnderSwimming(event.getPlayer()) || (event.notValidate(event.getPlayer()))) {
event.setCancelled(true);
}
}
public void onLevel(PlayerThirstLevelChangeEvent event) {
if (event.isUnderSwimming(event.getPlayer()) || (event.notValidate(event.getPlayer()))) {
event.setCancelled(true);
}
}
For any bug or feedback, please contact me or comment in the discussion section.Click to expand...
Premium Plugins
> DeadSociety <
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.9, 1.10, 1.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.