From 1636388c71b99c7b7e373e5d68905cd77179aac0 Mon Sep 17 00:00:00 2001 From: itasli Date: Thu, 30 Dec 2021 12:52:55 +0100 Subject: [PATCH] Add files via upload --- pom.xml | 2 +- .../java/org/rainas/nohealthhunger/HealthHungerListener.java | 2 +- src/main/resources/plugin.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 1752b56..c0fb179 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.github.itasli NoDamageNoHunger - 1.0 + 1.1 diff --git a/src/main/java/org/rainas/nohealthhunger/HealthHungerListener.java b/src/main/java/org/rainas/nohealthhunger/HealthHungerListener.java index 86e1888..c86179c 100644 --- a/src/main/java/org/rainas/nohealthhunger/HealthHungerListener.java +++ b/src/main/java/org/rainas/nohealthhunger/HealthHungerListener.java @@ -18,7 +18,7 @@ public HealthHungerListener(NoDamageNoHunger plugin) { public void onEntityDamage(EntityDamageEvent event) { if (event.getEntity() instanceof Player) { Player player = (Player) event.getEntity(); - if (player.hasPermission("NoDamageNoHunger.nohealth")) { + if (player.hasPermission("NoDamageNoHunger.nodamage")) { event.setCancelled(true); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 942cec7..4d44445 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: io.github.itasli.nodamagenohunger.NoDamageNoHunger name: NoDamageNoHunger -version: 1.0 +version: 1.1 description: This plugin cancel damage and hunger if player has the permission ! api-version: 1.18 author: itasli