GithubHelp home page GithubHelp logo

seanomik / tamablefoxes Goto Github PK

View Code? Open in Web Editor NEW
27.0 6.0 16.0 83.7 MB

SpigotMC Plugin that gives you the ability to tame foxes!

License: MIT License

Java 99.86% Shell 0.14%
spigotmc minecraft spigot-plugin spigotmc-plugin minecraft-plugin minecraft-server

tamablefoxes's Introduction

Tamable Foxes

SpigotMC Plugin that gives you the ability to tame foxes!

WARNING: Do not reload the plugin, you may loose foxes!!

Default configuration files:


If you get any errors, create an issue!

Have you ever wanted to tame foxes? Well, now you can! Use chicken to tame and sweet berries to breed them!

Features:

  • 33% Chance of taming
  • Breeding
  • Wild foxes pick berry bushes
  • Leaping on targets
  • Tamed foxes sleep when their owner does
  • Foxes follow owner
  • You can shift + right-click to let the fox hold items
  • Right-click to make the fox sit
  • Shift Right-click with an empty hand to make the fox sleep
  • If the fox is holding a totem of undying, the fox will consume it and be reborn.
  • Foxes attack the owner's target
  • Foxes attack the thing that attacked the owner.
  • Foxes are automatically spawned inside the world. (Same areas as vanilla foxes)
  • Foxes attack chickens and rabbits.
  • Snow and red foxes.
  • Language.yml
  • Message when a tamed fox dies
  • /givefox command to give foxes to other players.
  • Disabling certain gameplay messages
    • You can do this by changing certain fields in language.yml to "disabled". The fields that can be disabled are:
      • taming-tamed-message
      • taming-asking-for-name-message
      • taming-chosen-name-perfect
      • fox-doesnt-trust

Commands:

  • /spawntamablefox [red/snow]: Spawns a tamable fox at the players' location.
  • /tamablefoxes reload: Reloads
  • /givefox [player name]: Give a fox to another player.

Permissions:

  • tamablefoxes.reload: Reloads the plugin config. Default: op
  • tamablefoxes.spawn: Gives permission to run the command /spawntamablefox. Default: op
  • tamablefoxes.tame: Gives the player the ability to tame a fox. Default: Everybody
  • tamablefoxes.tame.unlimited: Lets players bypass the tame limit. Default: op
  • tamablefoxes.tame.anywhere: Lets players bypass the banned worlds in config.yml (so they can tame in any world). Default: op
  • tamablefoxes.givefox.give.others: Allows the player to give another players fox to a player with /givefox. This will ignore if the other receiving has the tamablefoxes.givefox.receive permission. Default: op
  • tamablefoxes.givefox.give: Gives the player the ability to give foxes to other players with /givefox. Default: Everybody
  • tamablefoxes.givefox.receive: Gives the player the ability to receive foxes from other players from /givefox. Default: Everybody

foxes sleeping foxes sitting player holding sword foxes with baby looking at player giving fox totem fox leaping towards chicken

Building

To build you must have every version of spigot starting from 1.14 built and inside your maven cache. To do that, look at compileSpigotVersions.sh that lists all the java commands and the java versions for them.

Metrics collection

metrics Tamable Foxes collects anonymous server statistics through bStats, an open-source statistics service for Minecraft software. If you wish to opt-out, you can do so in the bstats/config.yml file.

tamablefoxes's People

Contributors

draycia avatar fionera avatar itsfolf avatar literallyellie avatar mshipman avatar seanomik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tamablefoxes's Issues

Tamable foxes does not work on 1.17.1 Purpur it seems.

I know the plugin doesnt officially state support for 1.17.1, but I would nonetheless mention that I have tried to deploy it on my 1.17.1 purpur server to no avail. A bunch of java exceptions are thrown at me and any command used shows internal errors + all foxes are gone.

Does not enable on 1.16.4

The Tamable Foxes plugin does not enable on 1.16.4, everyone has lost all of their tamed foxes, it is a sad day :(

I Can't Tame them

idk why but i'm using the command /spawntamablefox and I can't get any of them

Error initializing in purpur (paper fork)

  • Hello, I am trying to use this plugin but when I try to start my server with this plugin, it doesn't load properly and when trying to spawn a tamable fox it gives errors

The error at startup:

[org.bukkit.craftbukkit.v1_16_R3.CraftServer] null initializing Tamablefoxes v1.9.1-SNAPSHOT (Is it up to date?)
java.lang.ExceptionInInitializerError: null
        at java.lang.J9VMInternals.ensureError(J9VMInternals.java:184) ~[?:?]
        at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:173) ~[?:?]
        at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.registerCustomFoxEntity(NMSInterface_1_16_R3.java:23) ~[?:?]
        at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:62) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:394) ~[patched_1.16.5.jar:git-Purpur-1051]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:263) ~[patched_1.16.5.jar:git-Purpur-1051]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1061) ~[patched_1.16.5.jar:git-Purpur-1051]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Purpur-1051]
        at net.minecraft.server.v1_16_R3.MinecraftServer$$Lambda$3154/0x00000000ba5dfc38.run(Unknown Source) ~[?:?]
        at java.lang.Thread.run(Thread.java:853) [?:?]
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: The package: java.lang.reflect containing the target class is not opened to the module: <null>
        at net.seanomik.tamablefoxes.versions.FieldHelper.<clinit>(FieldHelper.java:25) ~[?:?]
        ... 8 more
Caused by: java.lang.IllegalAccessException: The package: java.lang.reflect containing the target class is not opened to the module: <null>
        at java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:2246) ~[?:?]
        at net.seanomik.tamablefoxes.versions.FieldHelper.<clinit>(FieldHelper.java:22) ~[?:?]
        ... 8 more

The error when trying to spawn foxes:

[21:27:04 WARN]: java.lang.ClassCastException: net.minecraft.server.v1_16_R3.EntityFox incompatible with net.seanomik.tamablefoxes.versions.version_1_16_R3.EntityTamableFox
[21:27:04 WARN]:        at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.spawnTamableFox(NMSInterface_1_16_R3.java:33)
[21:27:04 WARN]:        at net.seanomik.tamablefoxes.CommandSpawnTamableFox.onCommand(CommandSpawnTamableFox.java:49)
[21:27:04 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[21:27:04 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172)
[21:27:04 WARN]:        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:810)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2286)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2101)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:2054)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:49)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:7)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:55)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.PlayerConnectionUtils$$Lambda$7375/0x00000000c5539d08.run(Unknown Source)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1326)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1319)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1295)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1139)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[21:27:04 WARN]:        at net.minecraft.server.v1_16_R3.MinecraftServer$$Lambda$3154/0x00000000ba5dfc38.run(Unknown Source)
[21:27:04 WARN]:        at java.base/java.lang.Thread.run(Thread.java:853)
  • I hope this can be solved :D

Not working on Paper (or Spigot) 1.15.2

Tried Paper and Spigot as well. I'm getting this error on startup:

[23:28:26 WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[23:28:26 WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[23:28:26 WARN]: java.lang.NoSuchFieldException: modifiers
[23:28:26 WARN]:        at java.base/java.lang.Class.getDeclaredField(Class.java:2412)
[23:28:26 WARN]:        at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:68)
[23:28:26 WARN]:        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:361)
[23:28:26 WARN]:        at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:227)
[23:28:26 WARN]:        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:885)
[23:28:26 WARN]:        at java.base/java.lang.Thread.run(Thread.java:830)
[23:28:26 INFO]: [Tamable Foxes] Failed to replace tamable fox entity!

Also nothing seems to change in game. Foxes behave normally and they don't do anything when given chicken.

Server Errors

Hi! I love this plugin and it works well. But we've had the server crash a few times since installing it. I'm not 100% sure that is it from this plugin, but this was one of the last errors received from the console before the crash each time:

Caused by: java.lang.NullPointerException
at net.seanomik.tamablefoxes.versions.version_1_16_R2.EntityTamableFox.loadData(EntityTamableFox.java:191) ~[?:?]
at net.minecraft.server.v1_16_R2.Entity.load(Entity.java:1696) ~[patched_1.16.2.jar:git-Paper-161]

Nobody had been using the plugin specifically when each crashed happened, as far as I know. It's not an urgent issue, it has only happened a few times and my community is very understanding :) I'll attach our log if it'll help fix the issue in the future.
2020-09-03-3.log

I can't work with JER. Is the JDK required?

Can you manage this error?
https://pastebin.com/n2VPjcei

I happened to see this plug-in and was fascinated by it.
However, I get an error when starting the server.
I got an error only with jre-8u261-windows-x64, so I put in jdk-14.0.2_windows-x64_bin, but the error continued as well.

So I deleted the JRE and unified the version, and it started, but it seems that another plugin does not support it, so I would like to know the solution.

The plugin seems to cause a Core error in Bank.
https://pastebin.com/YycE4Cw2

https://www.spigotmc.org/resources/bank-1-16-sale-30-off.3556/
https://www.spigotmc.org/resources/core.56780/

Is it possible to make it work only with JRE?

Unknown issue

Hello! Unfortunately I got this message, in game it says Failed to spawn fox. Server is running on Mohist 1.16.4 modded server. By the way are you going to release mod for PC version of minecraft, is that even possible?
Natarager issued server command: /spawntamablefox red

�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1mjava.lang.ClassCastException: class net.minecraft.entity.passive.FoxEntity cannot be cast to class net.seanomik.tamablefoxes.versions.version_1_16_R3.EntityTamableFox (net.minecraft.entity.passive.FoxEntity is in unnamed module of loader cpw.mods.modlauncher.TransformingClassLoader @5c448433; net.seanomik.tamablefoxes.versions.version_1_16_R3.EntityTamableFox is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @4b854ba0)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.spawnTamableFox(NMSInterface_1_16_R3.java:33)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.seanomik.tamablefoxes.CommandSpawnTamableFox.onCommand(CommandSpawnTamableFox.java:40)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:160)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:669)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.network.play.ServerPlayNetHandler.func_147361_d(ServerPlayNetHandler.java:1799)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.network.play.ServerPlayNetHandler.func_147354_a(ServerPlayNetHandler.java:1646)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.network.play.client.CChatMessagePacket.func_148833_a(CChatMessagePacket.java:38)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.network.play.client.CChatMessagePacket.func_148833_a(CChatMessagePacket.java:8)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:22)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:136)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:876)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:183)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:109)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:859)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:853)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213161_c(ThreadTaskExecutor.java:119)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:839)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:773)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:276)
�[K[�[36;1m04:07:17 �[33;1mWARN]: �[33;1m at java.base/java.lang.Thread.run(Thread.java:834)

[BUG] Broken with paperspigot

I need to use paper spigot on my server as it's the only 1.16.2 server that supports bukkit and spigot plugins, but also fixes portal interrupts.
All of my plugins work just fine, well, except for tamable foxes. I'm not exactly too sure why, but the plugin is just broken. Commands don't work, (no detailed error posted to log or console), foxes aren't tamable, and previously tamed foxes are untamed.
I know I'm a fairly niche use case, but I'd like to get this resolved.

Duplicatable Buckets

If you shift right click a fox with a bucket; the bucket becomes empty but the fox is holding a filled one.
You can pick it back up afterward and have one extra bucket.

Maybe add a blacklist for the items foxes can pick up?

Video showcasing bug here.

Customizable death notifications

It would be really nice to have config options to make death messages public instead of only sending them to the fox's owner and if the owner is offline having them notified automatically when they log back in (or letting you run a command every time a fox dies to use something like EssentialsX's mail system) would be really nice to have for QoL.

Multiplayer Server Issue

Hi, I'm having an issue with the tamable foxes plugin on my server that I run with my friends. I'm the only one able to tame foxes, I'm also the only one with op. Any help would be greatly appreciated

Fox limits

Can we implement a limit on the amount of Fox's a player can tame or additionally how many can follow the player at once? I currently have a limit on Wolfs but players have started to bypass this by using Fox's instead.

[Bug] Spigot jar is still 2.1.1

Describe the bug
The jar served by SpigotMC is still 2.1.1, not 2.1.2.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Tamable Foxes spigot resource page
  2. Click Download Now
  3. Test the plugin on a Purpur server or simply observe the jar name, TamableFoxes_v2.1.1-SNAPSHOT.jar.

Expected behavior
The Spigot resources downloads the latest jar version

Errors
N/A

Screenshots
Untitled

Versions
MC: 1.17.1
Java:

openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)

Additional context
The jar from GitHub still works fine, I'm assuming the wrong jar was uploaded to Spigot by accident.

Use NBT instead of SQLite to keep track of data?

Since 1.14 Spigot has had the PersistentDataHolder API, here's a small guide to it, I believe this API could be used to save the foxes' data directly to the entity's NBT removing the need for the SQLite database that is currently in use and can impact performance. I have looked around the code and haven't found anything that could make this change impossible but I'd like to get some input from you.

1.16.2 Support

Updating from 1.16.1 to 1.16.2, apparently the unchanged plugin version "only supports Spigot 1.15.X".

[00:16:06] [Server thread/INFO]: [Tamablefoxes] Loading Tamablefoxes v1.7.1-SNAPSHOT
[00:16:06] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[00:16:06] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[00:16:06] [Server thread/INFO]: [Tamable Foxes] ERROR: This plugin version only supports Spigot 1.15.X! Not registering entity! Make sure your Java version is no newer than Java 11!

[00:16:08] [Server thread/INFO]: [VarLight] Persist on world save enabled
[00:16:08] [Server thread/INFO]: [Tamablefoxes] Enabling Tamablefoxes v1.7.1-SNAPSHOT
[00:16:08] [Server thread/INFO]: [Tamable Foxes] This plugin version only supports Spigot 1.15.X! Disabling plugin! Make sure your Java version is no newer than Java 11!
[00:16:08] [Server thread/INFO]: [Tamablefoxes] Disabling Tamablefoxes v1.7.1-SNAPSHOT

Path where the plugin saves the prefix.

Hello! Good morning / afternoon / evening, I have come to report a bug or error where the plugin prefix cannot be displayed or cannot be found, I have searched everything even in the src and I cannot find it. Would you be so kind as to tell me where it is? if it is in a place with the naked eye I apologize but I am not able to find it.

Feature request: Limit permissions

It would be amazing to have different permissions for different max amounts tamed. For example, regular, non rank players being able to tame 2 with tamablefoxes.tame.2 and some higher rank being able to tame a max of 5 with tamablefoxes.tame.5

1.16.4

[Tamable Foxes] This plugin version only supports Spigot 1.14-1.16.2! Disabling plugin! Make sure your Java version is no newer than Java 11!

Will you be updating to 1.16.4?

Debugging Statement left in release

Line 154 of src/main/java/net/seanomik/tamablefoxes/TamableFoxes.java:
player.sendMessage(entity.getUniqueId().toString());

Could this line please be removed from the release jar?

Error. Plugin don`t start.

[15:13:55] [Server thread/INFO]: [Tamablefoxes] Loading Tamablefoxes v1.9.2.1-SNAPSHOT
[15:13:55] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins\Tamablefoxes\language.yml because language.yml already exists.
[15:13:55] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins\Tamablefoxes\language.yml because language.yml already exists.
[15:13:55] [Server thread/INFO]: [Tamable Foxes] Registering entity for MC Version v1_16_R3...
[15:13:55] [Server thread/ERROR]: [org.bukkit.craftbukkit.v1_16_R3.CraftServer] null initializing Tamablefoxes v1.9.2.1-SNAPSHOT (Is it up to date?)
java.lang.ExceptionInInitializerError: null
at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.registerCustomFoxEntity(NMSInterface_1_16_R3.java:23) ~[?:?]
at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:62) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:399) ~[patched_1.16.5.jar:git-Paper-775]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:269) ~[patched_1.16.5.jar:git-Paper-775]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-775]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-775]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to unnamed module @245027f5
at net.seanomik.tamablefoxes.versions.FieldHelper.(FieldHelper.java:25) ~[?:?]
... 7 more
Caused by: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to unnamed module @245027f5
at java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:260) ~[?:?]
at net.seanomik.tamablefoxes.versions.FieldHelper.(FieldHelper.java:22) ~[?:?]

Fox attacks bug

the fox still attacks the animals despite deactivation with attack-wild-animals: false

Crash report caused by plugin [Bug]

Today I received a crash report rooting from this plugin.
I included the report below for you, but let me list some details:
I'm running the 2.1.0 snapshot.
This is a 1.17 server, as usual.
The owner of the fox that was being ticked (Clementine) went to sleep before the crash. I am using the BetterSleeping3 plugin so only one player has to sleep to skip the night. I assume that's why the other foxes weren't ticked.
Clementine was sitting.

Crash report included below:
crash-2021-07-11_16.44.08-server.txt

Please let me know if you need the log as well. From a quick scan, it looks like the only errors are from another plugin that I have yet to address. (It's been like that for a while though so I doubt it's from that.)

Can't tame foxes

My Server Version:
This server is running Paper version git-Paper-675 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
You are running the latest version
Previous version: git-Paper-670 (MC: 1.16.5)

On Startup i get this error:
[20:01:05 INFO]: [Tamable Foxes] Registering entity for MC Version v1_16_R3...
[20:01:06 ERROR]: [org.bukkit.craftbukkit.v1_16_R3.CraftServer] null initializing Tamablefoxes v1.9.1-SNAPSHOT (Is it up to date?)
java.lang.ExceptionInInitializerError: null
at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.registerCustomFoxEntity(NMSInterface_1_16_R3.java:23) ~[?:?]
at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:62) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:394) ~[patched_1.16.5.jar:git-Paper-675]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:252) ~[patched_1.16.5.jar:git-Paper-675]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1066) ~[patched_1.16.5.jar:git-Paper-675]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Paper-675]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to unnamed module @532ad4e5
at net.seanomik.tamablefoxes.versions.FieldHelper.(FieldHelper.java:25) ~[?:?]
... 7 more
Caused by: java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to unnamed module @532ad4e5
at java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:260) ~[?:?]
at net.seanomik.tamablefoxes.versions.FieldHelper.(FieldHelper.java:22) ~[?:?]
... 7 more

When i rightclick a fox with raw chicken nothing happens. Please fix this.

[ISSUE] Ticking entity & Server Crash

Describe the bug
Was running around a village and heading back to my Nether Portal when all of a sudden I was kicked from my server with a "forcibly closed server issue"

To Reproduce
It appears that this issue happened when I was around wolves/foxes?

Console Log
2020-07-17-3.log.gz

Crash Log
crash-2020-07-17_01.20.22-server.txt

Server Information (please complete the following information):

  • Minecraft Version Spigot 1.15.2
  • Plugin Version v1.7-SNAPSHOT

Feature Request: Cancel dealt damage to foxes

Hi, thank you so much for this plugin, it's really cool and also great to have the foxes follow the player around! However, because of this, foxes are sometimes at risk of getting shot by other mobs, players, etc. A config option I'd like to see would perhaps make foxes effectively invincible.

I'm aware that this might be OP in vanilla servers, but I've noticed that many players would like to make their pets invincible in custom servers. Because of this, perhaps this option could be disabled by default and have a configuration in order to make foxes invincible.

Once again, thank you so much for this plugin! :D

WARNs at boot on 1.16.5

The plugin seems to works fine, but I get this WARNS at boot:

[13:58:22] [Server thread/INFO]: [Tamablefoxes] Loading Tamablefoxes v1.9.2-SNAPSHOT
[13:58:22] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[13:58:22] [Server thread/INFO]: [Tamable Foxes] Registering entity for MC Version v1_16_R3...
[13:58:22] [Server thread/INFO]: [Tamable Foxes] Failed to replace tamable fox entity!
[13:58:22] [Server thread/WARN]: java.lang.NoSuchFieldException: modifiers
[13:58:22] [Server thread/WARN]: at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
[13:58:22] [Server thread/WARN]: at net.seanomik.tamablefoxes.versions.FieldHelper.makeNonFinal(FieldHelper.java:17)
[13:58:22] [Server thread/WARN]: at net.seanomik.tamablefoxes.versions.FieldHelper.setField(FieldHelper.java:29)
[13:58:22] [Server thread/WARN]: at net.seanomik.tamablefoxes.versions.version_1_16_R3.NMSInterface_1_16_R3.registerCustomFoxEntity(NMSInterface_1_16_R3.java:23)
[13:58:22] [Server thread/WARN]: at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:62)
[13:58:22] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:394)
[13:58:22] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:274)
[13:58:22] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074)
[13:58:22] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[13:58:22] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
[13:58:22] [Server thread/INFO]: [Tamable Foxes] Replaced tamable fox entity!

Name Tag Bug

We have been having issues with Name Tags not working on any other tamed animal besides foxes. It started when we uploaded this plugin, I was also reading the reviews and someone said that they were having this issue as well and that they thought it could be this plugin.

It's actually really weird. If I don't add a name to my fox when I tame it, then I can use a name tag on it and it works. Name tags work on untamed animals, like sheep and turtles. But if I tame a cat or dog and try to put a name tag on it, it doesn't work. BUT if I put a name tag on someone else's tamed pet, it'll show up for me as long as they aren't in the area. If they aren't around, then I can see the name tags that I put on their pets. And it's the same if I name my pets, other players can see the names, but only if I'm not around, and I can't see my own pets names.

No errors are appearing in console.
I'm sorry for reporting so many errors, we really do love your plugins :D

random sitting foxes [bug?][feature request]

We're seeing an occasional fox sitting in the wild. i don't know if these are spawning as tamed with no owner and would be a bug, or if they're from players.

A command to beable to see the owner of a fox they you're currently looking at would be really useful to see if this is a bug where we have ownerless foxes or if these little guys got abandoned.

Deleting items in 1.16.4

When holding a shield and shift clicking to try to give them a tool they will delete the tool and hold the shield. You can take the shield back but your tool will be gone

Encountered an unexpected exception java.lang.StackOverflowError: null

When I let fox sit, and generate a chicken near by, the server crashes.
Using Spigot-1.16.1!

Error code is below:
[15:51:00 ERROR]: Encountered an unexpected exception java.lang.StackOverflowError: null at net.minecraft.server.v1_16_R1.ItemMonsterEgg.a(ItemMonsterEgg.java:105) ~[patched_1.16.1.jar:git-Paper-135] at net.minecraft.server.v1_16_R1.ItemMonsterEgg.a(ItemMonsterEgg.java:125) ~[patched_1.16.1.jar:git-Paper-135] at net.minecraft.server.v1_16_R1.EntityInsentient.c(EntityInsentient.java:1173) ~[patched_1.16.1.jar:git-Paper-135] at net.minecraft.server.v1_16_R1.EntityInsentient.a(EntityInsentient.java:1137) ~[patched_1.16.1.jar:git-Paper-135] at net.seanomik.tamablefoxes.versions.version_1_16_R1.EntityTamableFox.b(EntityTamableFox.java:250) ~[?:?] at net.minecraft.server.v1_16_R1.EntityInsentient.a(EntityInsentient.java:1142) ~[patched_1.16.1.jar:git-Paper-135] at net.seanomik.tamablefoxes.versions.version_1_16_R1.EntityTamableFox.b(EntityTamableFox.java:250) ~[?:?]

Thank You.

Java 16 Support

As Mojang is updating to Java 16, that's going to become a minimum as of 1.17's release on June 8th. Right now on Java 16, the plugin throws a variety of errors when trying to (for example) tame a fox. Once I'm home I'll put all the errors (with reproducable steps) I can find under this issue, but I thought it'd be a good idea to let you know just in case you hadn't heard about this already.

fox not following player

so if you tame a baby fox and you sit it next to a fox and the fox moves a way it will sit up and follow the fox and no longer follow the player or teleport or can be sat

foxes sleeping

can you add it were if you leave a tamed fox for a bit it sleeps or player cna make it sleep?

Crash

Cant tell if this is a crash caused by TF or quests, could you please tell me?

eefwefwefwe.txt

Spigot and PaperMC servers with old TamableFoxes configuration files crash

[02:35:26] [Server thread/INFO]: [Tamablefoxes] Loading Tamablefoxes v1.9.1-SNAPSHOT
[02:35:26] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[02:35:26] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[02:35:26] [Server thread/ERROR]: [org.bukkit.craftbukkit.v1_16_R3.CraftServer] null initializing Tamablefoxes v1.9.1-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException: null
at net.seanomik.tamablefoxes.io.LanguageConfig.getString(LanguageConfig.java:82) ~[?:?]
at net.seanomik.tamablefoxes.io.LanguageConfig.getMCVersionLoading(LanguageConfig.java:87) ~[?:?]
at net.seanomik.tamablefoxes.TamableFoxes.onLoad(TamableFoxes.java:61) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:399) ~[patched_1.16.5.jar:git-Paper-732]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:269) ~[patched_1.16.5.jar:git-Paper-732]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1068) ~[patched_1.16.5.jar:git-Paper-732]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:290) ~[patched_1.16.5.jar:git-Paper-732]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

(on paper)

Plugin forgets tamed foxes

By the way I noticed another bug, so I'm making a new issue for it. It seems like the plugin just forgets fox's owners randomly. It happens not every time, but frequently when the server is restarted, even just a normal /stop and restart it often happens, and especially occurs when doing /reload.

Stranger still, sometimes it happens when I come back a few hours later / the next day, even though the server hasn't restarted. The plugin just forgot the fox was tamed, though the name still displays.

There must be some sort of bug in the saving / loading routine. Maybe you could somehow scan and add back foxes the plugin forgot about based on their names? Or you could add it as a command, like /tamablefoxes rescan perhaps.

1.17 support bro :C

[02:40:34] [Server thread/WARN]: [Tamablefoxes] Could not save language.yml to plugins/Tamablefoxes/language.yml because language.yml already exists.
[02:40:34] [Server thread/INFO]: [Tamable Foxes] ERROR: This plugin version only supports Spigot 1.14-1.16.4! Not registering entity! Make sure your Java version is no newer than Java 11!
[02:40:34] [Server thread/INFO]: [Tamable Foxes] You're trying to run MC version v1_17_R1 which is not supported!
[02:40:34] [Server thread/INFO]: [Tamablefoxes] Enabling Tamablefoxes v1.9.2.1-SNAPSHOT
[02:40:34] [Server thread/INFO]: [Tamable Foxes] This plugin version only supports Spigot 1.14-1.16.4! Disabling plugin! Make sure your Java version is no newer than Java 11!
[02:40:34] [Server thread/INFO]: [Tamablefoxes] Disabling Tamablefoxes v1.9.2.1-SNAPSHOT
[02:40:34] [Server thread/INFO]: [Tamable Foxes] Saving foxes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.