Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit c19fe01

Browse files
committed
Citizens NPC like Player fix
1 parent 5e4c256 commit c19fe01

14 files changed

+5
-3
lines changed
0 Bytes
Binary file not shown.
400 Bytes
Binary file not shown.
1.79 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
50 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
102 Bytes
Binary file not shown.
Binary file not shown.
18 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ plugins {
44
}
55

66
group 'ru.enis'
7-
version '1.7'
7+
version '1.7.1'
88

99
repositories {
1010
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
1111

1212
mavenCentral()
1313
mavenLocal()
1414

15+
//maven { url = "https://repo.citizensnpcs.co/" }
1516
maven { url = "https://repo.codemc.org/repository/maven-public/" }
1617
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
1718
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
@@ -26,6 +27,7 @@ dependencies {
2627
compileOnly "org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT"
2728
compileOnly "org.jetbrains:annotations:22.0.0"
2829
compileOnly 'me.clip:placeholderapi:2.11.0'
30+
//compileOnly 'net.citizensnpcs:citizens-main:2.0.29-SNAPSHOT'
2931
}
3032

3133
tasks.withType(JavaCompile) {

src/main/java/ru/enis/ehidetags/events/onInteract.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public onInteract(Core plugin){
2121

2222
@EventHandler
2323
public void interact(PlayerInteractAtEntityEvent e) {
24-
if (e.getRightClicked() instanceof Player) {
24+
if (e.getRightClicked() instanceof Player && !e.getRightClicked().hasMetadata("NPC")) {
2525
if (ActionBar.enabled) {
2626

2727
final Audience audience = adventure().player(e.getPlayer());

src/main/resources/plugin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: eHideTags
2-
version: 1.7
2+
version: 1.7.1
33
main: ru.enis.ehidetags.Core
44
api-version: 1.13
55
author: Enis

0 commit comments

Comments
 (0)