mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-11 21:06:55 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c83888837b | |||
| 4052afe4d3 | |||
| 93efa37e77 |
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.youhavetrouble</groupId>
|
||||
<artifactId>PreventStabby</artifactId>
|
||||
<version>1.7.0</version>
|
||||
<version>1.7.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>PreventStabby</name>
|
||||
@@ -49,6 +49,10 @@
|
||||
<pattern>org.bstats</pattern>
|
||||
<shadedPattern>bstats</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>net.kyori</pattern>
|
||||
<shadedPattern>kyori</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ public class FishingListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onFish(org.bukkit.event.player.PlayerFishEvent event) {
|
||||
if (event.getCaught() instanceof Player) {
|
||||
if (!PreventStabby.getPlugin().getConfigCache().isAllow_fishing_rod_pull()) return;
|
||||
if (PreventStabby.getPlugin().getConfigCache().isAllow_fishing_rod_pull()) return;
|
||||
UUID damager = event.getPlayer().getUniqueId();
|
||||
UUID victim = event.getCaught().getUniqueId();
|
||||
if (damager == victim)
|
||||
|
||||
Reference in New Issue
Block a user