forked from ttrilobyte/no-health-hunger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
# no-health-hunger | ||
## Bukkit plugin that disables health and hunger | ||
# no-damage-no-hunger | ||
## Spigot plugin that disables damage and hunger | ||
|
||
### Features | ||
* Disables health | ||
* Disables damage | ||
* Disables hunger | ||
* Teleports players in the void to spawn | ||
|
||
### Permissions | ||
|Node|Default|Description| | ||
|:---|-------|----------:| | ||
|NoHealthHunger.nohealth|OP|Player takes no damage| | ||
|NoHealthHunger.nohunger|OP|Player loses no hunger| | ||
|NoHealthHunger.escapevoid|TRUE|On entering void, player is teleported to spawn| | ||
|
||
### Config | ||
|Node|Sample|Description| | ||
|:---|------|----------:| | ||
|escapevoid.teleport_out_of_void|true|Set _false_ to prevent all players from escaping the void (NOTE: This overrides permissions!| | ||
|escapevoid.message|Please don't go on spacewalks.|Message that players see when they are teleported _out_ of the void.| | ||
|spawn.world|Server_lobby|The name of the world that your spawn point is located in. This is usually the name of the folder containing the world data files.| | ||
|spawn.x|0.5|The x-coordinate of the spawn point. Press F3 in-game to view your coordinates.| | ||
|spawn.y|3|The y-coordinate of the spawn point. Press F3 in-game to view your coordinates.| | ||
|spawn.z|0.5|The z-coordinate of the spawn point. Press F3 in-game to view your coordinates.| | ||
|NoDamageNoHunger.nodamage|OP|Player takes no damage| | ||
|NoDamageNoHunger.nohunger|OP|Player loses no hunger| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.rainas</groupId> | ||
<artifactId>NoHealthHunger</artifactId> | ||
<version>1.0.1</version> | ||
<groupId>io.github.itasli</groupId> | ||
<artifactId>NoDamageNoHunger</artifactId> | ||
<version>1.0</version> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<repositories> | ||
<repository> | ||
<id>bukkit-repo</id> | ||
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url> | ||
</repository> | ||
<repository> | ||
<id>papermc</id> | ||
<url>https://papermc.io/repo/repository/maven-public/</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.bukkit</groupId> | ||
<artifactId>bukkit</artifactId> | ||
<version>1.8-R0.1-SNAPSHOT</version> | ||
<type>jar</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<groupId>io.papermc.paper</groupId> | ||
<artifactId>paper-api</artifactId> | ||
<version>1.18-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/org/rainas/nohealthhunger/NoDamageNoHunger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.github.itasli.nodamagenohunger; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.Location; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
public class NoDamageNoHunger extends JavaPlugin { | ||
|
||
|
||
@Override | ||
public void onDisable() { | ||
getLogger().info("Plugin disabled"); | ||
} | ||
|
||
@Override | ||
public void onEnable() { | ||
getLogger().info("Plugin enabled"); | ||
Bukkit.getServer().getPluginManager().registerEvents(new HealthHungerListener(this), this); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
name: NoHealthHunger | ||
main: org.rainas.nohealthhunger.NoHealthHunger | ||
version: 0.0.1 | ||
main: io.github.itasli.nodamagenohunger.NoDamageNoHunger | ||
name: NoDamageNoHunger | ||
version: 1.0 | ||
description: This plugin cancel damage and hunger if player has the permission ! | ||
api-version: 1.18 | ||
author: itasli | ||
website: spigotmc.org | ||
permissions: | ||
NoHealthHunger.nohealth: | ||
NoDamageNoHunger.nodamage: | ||
description: Take no damage | ||
default: op | ||
NoHealthHunger.nohunger: | ||
NoDamageNoHunger.nohunger: | ||
description: Never go hungry | ||
default: op | ||
NoHealthHunger.escapevoid: | ||
description: Teleport to spawn on entering the void | ||
default: true | ||
default: op |