Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
itasli authored Dec 30, 2021
1 parent bb9d484 commit 1636388
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.itasli</groupId>
<artifactId>NoDamageNoHunger</artifactId>
<version>1.0</version>
<version>1.1</version>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1636388

Please sign in to comment.