Code Monkey home page Code Monkey logo

antiworldfly's Introduction

AntiWorldFly disables flying, elytras, and chosen commands when joining or playing in specific worlds, on Minecraft servers running Bukkit or Spigot.

Build Status License

Project status

This project is no longer maintained by its original author. I, Sidpatchy, have taken over development of the plugin and intend to continue development in the future. The most up-to-date builds can be found in on my Jenkins, and release versions on GitHub, Bukkit and Spigot.

Useful links

The Wiki of Anti World Fly is available by clicking on the Wiki tab at the top of the page, or directly on this link. Valuable information on how to set the plugin up or use it properly is at your disposal!

For more information and download links, please visit the project's webpages:

AntiWorldFly - Spigot

AntiWorldFly - Modrinth

AntiWorldFly - Bukkit

AntiWorldFly - TeamCity

Feel free to visit HelloMinecraft, the plugin's official server (french server): HelloMinecraft

Setting your own working copy of the project

Ensure you have a working version of the JDK (Java Development Kit).

The following steps are for the Eclipse development environment, but will be similar on other IDEs.

  • Download or clone the repository on your computer. You can also create your own fork by clicking on the Fork icon on the top right of the page.
  • In Eclipse, go to File -> Import... -> Maven -> Existing Maven Projects.
  • In the Root Directory field, select the location where you downloaded the Anti World Fly repository.
  • Tick the pom.xml box that appears in the Projects field and click Finish.
  • To compile the plugin, in the Package Explorer window, right click on the imported project, then Run As -> Maven Install.
  • The plugin will be generated in the target folder of the project.

Please let me know if you encounter any problems by opening an Issue, I am happy to help.

antiworldfly's People

Contributors

aurorals3 avatar funpineapple avatar herrmelodious avatar jaapieaapie1 avatar pyvesb avatar rigner avatar shadowhackercz avatar sidpatchy avatar srborjaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

antiworldfly's Issues

Color in title not working

fly-disabled-title

As the title says, I tried to put the title in color in the following way "&9AntiWorldFly" and it does not appear in color, you see the message "&9AntiWorldFly"

ERROR NULL

I was in creative mode when I entered the server and the plugin dire gave this error.

[20:36:01] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'awf' in plugin AntiWorldFly v2.5.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.CraftServer.dispatchCommand(CraftServer.java:908) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2372) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2183) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2164) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundChatPacket.handle(ServerboundChatPacket.java:46) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundChatPacket.a(ServerboundChatPacket.java:6) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1450) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:189) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1427) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1420) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:132) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1398) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304) ~[purpur-1.18.1.jar:git-Purpur-1566]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:322) ~[purpur-1.18.1.jar:git-Purpur-1566]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.hm.antiworldfly.file.CommentedYamlConfiguration.getString(String, String)" because the return value of "com.hm.antiworldfly.AntiWorldFly.getPluginLang()" is null
at com.hm.antiworldfly.command.HelpCommand.getHelp(HelpCommand.java:34) ~[AntiWorldFly-2.5.0.jar:?]
at com.hm.antiworldfly.AntiWorldFly.onCommand(AntiWorldFly.java:449) ~[AntiWorldFly-2.5.0.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
... 21 more`

Fly auto enable

last night i updated Anti World Fly v2.5.0 now every time players go to end and come back to overworld there flight auto turn on.
our nether and end world fly is disabled but our servers vip can fly but players whose vip already expire they can also fly when they transfer end to overworld

1.20.1

Hello. Will the plugin be updated to version 1.20.1? If yes, then when?

1.18 compability

Is your feature request related to a problem? Please describe.
A version wich is 1.18 compatible

Describe the solution you'd like
A version wich is 1.18 compatible

Additional context
nothing

BUG With Boats

When i'm in the corner of a boat at the floor, the servers kicks me for "fly". Even when i'm at /login the server kicks me out

Plugin Version: last one

Minecraft Version: 1.16.5

Expected Behavior

i don't know

Current Behavior

The server kicks for flying

Steps to Reproduce

  1. Boat almost falling
  2. step on the corner
  3. get kicked

Context (Environment)

i just want to know if this is serious
An image: https://imgur.com/q9BRgDe

Misused Command 1.10.2

Hi developer,

I'm constantly getting the "Misused Command" error in 1.10.2 both in game and in console, console output:

>awf reload
[16:29:59 INFO]: [۞] Misused command. Please type /awf.

There are no other error messages however being thrown out.

Regards

PlayerChangeWorld Error

When a player change world in my server, i see this error:

[10:24:09 ERROR]: Could not pass event PlayerChangedWorldEvent to AntiWorldFly v2.2.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:509) [PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:494) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.PlayerList.moveToWorld(PlayerList.java:622) [PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer.teleport(CraftPlayer.java:526) [PaperSpigot.jar:git-PaperSpigot-36] at com.earth2me.essentials.Teleport.now(Teleport.java:126) [Essentials.jar:?] at com.earth2me.essentials.Teleport.teleport(Teleport.java:194) [Essentials.jar:?] at com.earth2me.essentials.Teleport.warp(Teleport.java:263) [Essentials.jar:?] at com.earth2me.essentials.commands.Commandwarp.warpUser(Commandwarp.java:130) [Essentials.jar:?] at com.earth2me.essentials.commands.Commandwarp.run(Commandwarp.java:51) [Essentials.jar:?] at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:180) [Essentials.jar:?] at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:527) [Essentials.jar:?] at com.earth2me.essentials.Essentials.onCommand(Essentials.java:402) [Essentials.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [PaperSpigot.jar:git-PaperSpigot-36] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:766) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1044) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:881) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:789) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:307) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:638) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:544) [PaperSpigot.jar:git-PaperSpigot-36] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [PaperSpigot.jar:git-PaperSpigot-36] Caused by: java.lang.NoSuchFieldError: SPECTATOR at com.hm.antiworldfly.listener.AntiWorldFlyWorldJoin.worldJoin(AntiWorldFlyWorldJoin.java:32) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[PaperSpigot.jar:git-PaperSpigot-36] ... 27 more

i use 1.7.10

elytra plugin

which elytra fly plugin is to used for the plugin

Whitelist

Hello! I wanna make it so my staff are able to fly in PVP however players aren't able to. Is there any way to do so with Anti World Fly?

Request adding tempfly to antiworldfly plugin

Plugin Version: Anti World Fly 2.5.2

Minecraft Version: 1.19.4

Spigot/CraftBukkit version: git-Pufferfish-67 (MC: 1.19.4)

Other Plugins you are using: I cannot show my plugins in public as it's private but only one I can point out that needs adding to fix the bug.

Expected Behavior

Current Behavior

We notice that antiworldfly doesn't support this plugin called templfy (https://www.spigotmc.org/resources/tempfly-now-includes-factions-fly.54987/)

I had it tested that if I go to a world that I have TEMPORARY FLY enable and then teleport to disabled world that doesn't allow fly, I can still fly. Vise versa if I use /fly it completely disable it so that part works fine. I believe tempfly support needed to be added to antiworld fly plugin.

Steps to Reproduce

  1. Head to a world that allows you to fly
  2. USE the tempfly plugin to activate fly (/tempfly or /tf)
  3. While having temporary fly ENABLED teleport to a world that has fly disabled in antiworldfly config

Context (Environment)

Detailed Description

I would like to request to get tempfly plugin added to antiworldfly plugin.

A way to also disable Elytras

Basically, there is no updated Anti Elytra Plugins and this would fit into the Plugin since its also is some kind of Fly

Plugin doesn't work

Plugin Version: 2.5.0

Minecraft Version: 1.12.2

Spigot/CraftBukkit version: This server is running CraftBukkit version git-Spigot-79a30d7-f4830a1 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)

Other Plugins you are using: W9Y6~T5K UA2`6AH4JRDCYC

Expected Behavior

fix this bug

Current Behavior

I used /awf add world to ban the flight of this world, but he didn't work and I could still fly

Steps to Reproduce

1./awf add world
2.deop
3.start cheat

Context (Environment)

Detailed Description

Plugin does not work on my server and i do not know why

Plugin does not work on my server and i do not know why

Plugin Version: AntiWorldFly-2.4.1

Minecraft Version: Minecraft 1.16.5

Spigot/CraftBukkit version: git-Paper-788

Expected Behavior

The plugin should load properly

Current Behavior

The plugin does not load properly

error that happens on CMD

[23:37:27 ERROR]: [AntiWorldFly] Error while loading configuration file, disabling plugin.
[23:37:27 ERROR]: [AntiWorldFly] Verify your syntax by visiting yaml-online-parser.appspot.com and using the following logs:
org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
 in 'string', line 1, column 1:
    antiFlyWorlds:
    ^
expected <block end>, but found '<block sequence start>'
 in 'string', line 6, column 3:
      - /fly
      ^

        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[patched_1.16.5.jar:git-Paper-788]
        at com.hm.mcshared.file.CommentedYamlConfiguration.loadConfiguration(CommentedYamlConfiguration.java:139) ~[?:?]        at com.hm.antiworldfly.AntiWorldFly.extractParametersFromConfig(AntiWorldFly.java:142) ~[?:?]
        at com.hm.antiworldfly.AntiWorldFly.onEnable(AntiWorldFly.java:108) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:594) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-788]
        at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
 in 'string', line 1, column 1:
    antiFlyWorlds:
    ^
expected <block end>, but found '<block sequence start>'
 in 'string', line 6, column 3:
      - /fly
      ^

        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:570) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:235) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:162) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:95) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:119) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:150) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:490) ~[patched_1.16.5.jar:git-Paper-788]
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:416) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[patched_1.16.5.jar:git-Paper-788]
        ... 14 more
[23:37:27 INFO]: [AntiWorldFly] Disabling AntiWorldFly v2.4.1
[23:37:27 INFO]: [AntiWorldFly] AntiWorldFly has been disabled.
[23:37:27 ERROR]: Error occurred while enabling AntiWorldFly v2.4.1 (Is it up to date?)
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:829) ~[?:?]
        at java.util.zip.ZipFile.getEntry(ZipFile.java:328) ~[?:?]
        at java.util.jar.JarFile.getEntry(JarFile.java:519) ~[?:?]
        at java.util.jar.JarFile.getJarEntry(JarFile.java:474) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:167) ~[patched_1.16.5.jar:git-Paper-788]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:119) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Paper-788]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
        at com.hm.antiworldfly.AntiWorldFly.onEnable(AntiWorldFly.java:112) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-788]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:594) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1069) ~[patched_1.16.5.jar:git-Paper-788]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-788]
        at java.lang.Thread.run(Thread.java:831) [?:?]

Context (Environment)

I want to prevent player from using fly-hacks, the plugin should kick them when they are flying so i wont need staff on my server, i want everything automatic

bug

Could not pass event PlayerCommandPreprocessEvent to AntiWorldFly v2.5.2
java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "com.hm.antiworldfly.AntiWorldFly.getOtherBlockedCommands()" is null
at com.hm.antiworldfly.listener.CommandPreProcess.onPlayerCommandPreprocessEvent(CommandPreProcess.java:61) ~[AntiWorldFly-2.5.2.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor612.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:git-Purpur-1858]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at me.arasple.mc.trmenu.taboolib.platform.type.BukkitCommandSender.dispatchCommand(BukkitCommandSender.kt:50) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.taboolib.platform.type.BukkitCommandSender.performCommand(BukkitCommandSender.kt:40) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.taboolib.platform.type.BukkitPlayer.performCommand(BukkitPlayer.kt:446) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.impl.send.Command$onExecute$1.invoke(Command.kt:24) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.impl.send.Command$onExecute$1.invoke(Command.kt:26) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.impl.send.Command.onExecute(Command.kt:28) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionEntry$execute$proceed$1$1.invoke(ActionEntry.kt:29) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionEntry$execute$proceed$1$1.invoke(ActionEntry.kt:29) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionBase$Option.evalPlayers(ActionBase.kt:115) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionEntry$execute$proceed$1.invoke(ActionEntry.kt:29) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionEntry$execute$proceed$1.invoke(ActionEntry.kt:29) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.base.ActionEntry.execute(ActionEntry.kt:31) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.action.ActionHandle.runAction(ActionHandle.kt:92) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.api.reaction.Reactions.eval(Reactions.kt:16) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.module.display.icon.IconProperty.handleClick(IconProperty.kt:42) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.module.display.layout.Layout$initReceptacle$2$1$1.invoke(Layout.kt:93) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.module.display.layout.Layout$initReceptacle$2$1$1.invoke(Layout.kt:91) ~[TrMenu-3.1.17.jar:?]
at me.arasple.mc.trmenu.taboolib.platform.BukkitExecutor$submit$7.run(BukkitExecutor.kt:98) ~[TrMenu-3.1.17.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1858]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.19.2.jar:git-Purpur-1858]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1500) ~[purpur-1.19.2.jar:git-Purpur-1858]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:486) ~[purpur-1.19.2.jar:git-Purpur-1858]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1424) ~[purpur-1.19.2.jar:git-Purpur-1858]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194) ~[purpur-1.19.2.jar:git-Purpur-1858]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1858]

[Suggestion] Restore Flight Status on World Change

A suggestion from my players is to restore the flight status when changing to a world that allows flight.
On my Skyblock server, this would be especially handy as often my players forget to re-enable flight and jump off their island expecting to be able to fly only to fall into the void. XD

Not available in the latest paper

Plugin Version: AntiWorldFly-2.5.1

Minecraft Version: paper-1.19.3#431

Spigot/CraftBukkit version:

Other Plugins you are using:

Expected Behavior

Current Behavior

Steps to Reproduce

[02:40:11 INFO]: [AntiWorldFly] Enabling AntiWorldFly v2.5.1
[02:40:11 INFO]: [AntiWorldFly] Registering listeners...
[02:40:11 ERROR]: Error occurred while enabling AntiWorldFly v2.5.1 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "listener" is null
at io.papermc.paper.plugin.manager.PaperEventManager.createRegisteredListeners(PaperEventManager.java:136) ~[paper-1.19.3.jar:git-Paper-431]
at io.papermc.paper.plugin.manager.PaperEventManager.registerEvents(PaperEventManager.java:83) ~[paper-1.19.3.jar:git-Paper-431]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.registerEvents(PaperPluginManagerImpl.java:131) ~[paper-1.19.3.jar:git-Paper-431]
at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:670) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at com.hm.antiworldfly.AntiWorldFly.onEnable(AntiWorldFly.java:147) ~[AntiWorldFly-2.5.1.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:192) ~[paper-1.19.3.jar:git-Paper-431]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.3.jar:git-Paper-431]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[paper-1.19.3.jar:git-Paper-431]
at org.bukkit.craftbukkit.v1_19_R2.CraftServer.enablePlugins(CraftServer.java:471) ~[paper-1.19.3.jar:git-Paper-431]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:635) ~[paper-1.19.3.jar:git-Paper-431]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:434) ~[paper-1.19.3.jar:git-Paper-431]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.3.jar:git-Paper-431]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1101) ~[paper-1.19.3.jar:git-Paper-431]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.19.3.jar:git-Paper-431]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[02:40:11 INFO]: [AntiWorldFly] Disabling AntiWorldFly v2.5.1
[02:40:11 INFO]: [AntiWorldFly] AntiWorldFly has been disabled.

Context (Environment)

Detailed Description

Could not pass event EntityToggleGlideEvent to AntiWorldFly

Plugin Version: AntiWorldFly dev 12 (51a0c63)

Minecraft Version: 1.19

Spigot/CraftBukkit version: Purpur dev 1735 (Paper 1.19)

Other Plugins you are using: Incendium DataPack https://www.planetminecraft.com/data-pack/incendium-nether-expansion/

Expected Behavior

No errors.

Current Behavior

Errors.

Steps to Reproduce

  1. Find a Piglin Brute
  2. Errors?

Context (Environment)

Error spam bad. Occurred 272 times. Check should only be done on actual players, not all entities?

Detailed Description

[19:56:35] [Server thread/ERROR]: Could not pass event EntityToggleGlideEvent to AntiWorldFly v2.5.0
java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R1.entity.CraftPiglinBrute cannot be cast to class org.bukkit.entity.Player (org.bukkit.craftbukkit.v1_19_R1.entity.CraftPiglinBrute and org.bukkit.entity.Player are in unnamed module of loader java.net.URLClassLoader @7e32c033)
	at com.hm.antiworldfly.listener.ToggleGlide.onEntityToggleGlideEvent(ToggleGlide.java:32) ~[AntiWorldFly.jar:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1019.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:git-Purpur-1735]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.callToggleGlideEvent(CraftEventFactory.java:1715) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.world.entity.LivingEntity.updateFallFlying(LivingEntity.java:3563) ~[?:?]
	at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3427) ~[?:?]
	at net.minecraft.world.entity.Mob.aiStep(Mob.java:665) ~[?:?]
	at net.minecraft.world.entity.monster.Monster.aiStep(Monster.java:45) ~[?:?]
	at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3033) ~[?:?]
	at net.minecraft.world.entity.Mob.tick(Mob.java:427) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1236) ~[?:?]
	at net.minecraft.server.level.ServerLevel.lambda$tick$6(ServerLevel.java:715) ~[?:?]
	at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:693) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1580) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:485) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1442) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1209) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:308) ~[purpur-1.19.jar:git-Purpur-1735]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[19:56:53] [Server thread/ERROR]: Could not pass event EntityToggleGlideEvent to AntiWorldFly v2.5.0
java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R1.entity.CraftPiglinBrute cannot be cast to class org.bukkit.entity.Player (org.bukkit.craftbukkit.v1_19_R1.entity.CraftPiglinBrute and org.bukkit.entity.Player are in unnamed module of loader java.net.URLClassLoader @7e32c033)
	at com.hm.antiworldfly.worldguard.listener.RegionToggleGlide.onEntityToggleGlideEvent(RegionToggleGlide.java:39) ~[AntiWorldFly.jar:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1021.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:git-Purpur-1735]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.callToggleGlideEvent(CraftEventFactory.java:1715) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.world.entity.LivingEntity.updateFallFlying(LivingEntity.java:3563) ~[?:?]
	at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3427) ~[?:?]
	at net.minecraft.world.entity.Mob.aiStep(Mob.java:665) ~[?:?]
	at net.minecraft.world.entity.monster.Monster.aiStep(Monster.java:45) ~[?:?]
	at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3033) ~[?:?]
	at net.minecraft.world.entity.Mob.tick(Mob.java:427) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1236) ~[?:?]
	at net.minecraft.server.level.ServerLevel.lambda$tick$6(ServerLevel.java:715) ~[?:?]
	at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:693) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1580) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:485) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1442) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1209) ~[purpur-1.19.jar:git-Purpur-1735]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:308) ~[purpur-1.19.jar:git-Purpur-1735]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

AWF (class com.hm.antiworldfly.listener.ToggleGlide)

Plugin Version: 2.4.0

Minecraft Version: 1.8.8

Bro I just get an error like this every time I turn on the server: [Server thread/ERROR]: [AntiWorldFly] Plugin AntiWorldFly v2.4.0 has failed to register events for class com.hm.antiworldfly.listener.ToggleGlide because org/bukkit/event/entity/EntityToggleGlideEvent does not exist.

Minor Issue

When players doing parkour, people randomly get teleported down.

Spectator mode

People in spectator mode will who go to a different world (where flying is disabled) will fall through the world into the void. Possibly make an option to allow flying with spectator mode enabled?

German language file

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I am a native speaker and living in Germany. That's why I created a language file.

Additional context
yml is in the zip file. Maybe you want to add it to your repository.
lang-DE.zip

CMI not working

Hi, your plugin doesnt work with CMI, could you fix that?

Fix bug change the world allow fly!

If a player moves via the world allowed to fly. Then log out and log in again. But at login authme respawn on map deny fly. After logging in, players can fly in this map without the other's permission!

Flight does not get disabled on world change to nether if floating in a portal on dimension change.

Plugin Version: Compiled as of 01832d6
Minecraft Version: 1.19
Spigot/CraftBukkit version: Purpur dev 1735

Opening a ticket for tracking. I believe this change might be having negative consequences. Seems this issue is present even with the PR reverted.

If a person has flight enabled in one dimension and enters another dimension not touching the ground, they are allowed to keep flight on despite being disabled in that world.

i.e.

world - flight allowed
world_nether - flight disallowed

  • Player enters nether portal from overworld flying / floating in the air.
  • Player is put in nether dimension floating since it does not dimension change you on the ground but rather the exact center of the portal location.
  • Player can fly around the nether. Flight does not get disabled by AntiWorldFly.
  • If the player touches the ground, they cannot re-enable flight.

If you don't want to check every single movement for performance reasons, solution may be to add a check for setting flight status on dimension / world change if that world is disallowed?

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.