Spigot [Cartographer2] [Addon] WayPoints 3.0

Create waypoints

  1. Because WayPoints support only Cartographer2 v2.11.x.
    in version Cartographer2 v2.12.x was changed API.
    I need create update for WayPoints to support Cartographer2 v2.12. Please wait. I create as soon as possible.
     
  2. PawPawDude

    Supporter

    "You have too much points"

    What happens when trying to create a player waypoint.

    Global create works fine.
     
  3. This error write in two ways:
    1) Player have too much waypoints
    2) You reload module and don't reconnect to server.
     
    • Informative Informative x 1
  4. I got this error and i fixed it. I had to go into the config file. The folder with the config should be where the waypoint jar is. I had to make the groups have capital letters as its case sensitive. Make sure to reload the server once you make changes to the config, otherwise it won't work. Also you'll have to give the groups the permission set in the config.

    Heres my config file for reference: https://download1580.mediafire.com/dblocqbaa7pg/dr8rxoh95249p9l/config.yml
     
    #9 Fir3blademaster, Jan 18, 2020
    Last edited: Jan 18, 2020
    • Like Like x 1
    • Winner Winner x 1
  5. PawPawDude

    Supporter

    Super useful. Thanks. Will give it a go first thing in morning.
     
  6. Ok, hope this helps you out
     
  7. PawPawDude

    Supporter

    That worked. Now able to add player waypoints. Thanks.
     
    • Like Like x 1
  8. PawPawDude

    Supporter

    Issue: Deleting a global waypoint from chat
    I used the wrong command structure, did /wp delete <global waypoint name> i.e. left off the 'global' keyword
    Result: nothing seemed to happen until I reloaded 'module', then *all* waypoints disappeared including player waypoints
    Observed: the tab-complete menu seemed inadequate to perform this operation correctly.

    Feature request: Flat file data option
    The problem with stashing all the waypoints in a SQLite db is that it's relatively inaccessible for quick wholesale editing by admin -- like a flat file would provide. Flat files make it easier to debug, especially if commands are not working, but always easier than db and chat cmds. The suggestion is, provide a flat file option for those that would prefer it.

    Thx.
     
  9. It seems like this isn't compatible with the newest version of cartographer
    Code (Text):
    [12:20:11] [Server thread/INFO]: DeadXToGo issued server command: /cartographer module enable WayPoints
    [12:20:11] [Server thread/INFO]: [Cartographer2] [ModuleManager] Enabling WayPoints v1.5 by BrainRTP
    [12:20:11] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cartographer' in plugin Cartographer2 v2.12.17
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.14.4.jar:git-Paper-243]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.14.4.jar:git-Paper-243]
        at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:739) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1804) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1612) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:1029) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:1022) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1006) ~[patched_1.14.4.jar:git-Paper-243]
        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:929) ~[patched_1.14.4.jar:git-Paper-243]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
    Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "ru.brainrtp.waypoints.yml.MainConfig.<init>(Lio/github/bananapuncher714/cartographer/core/module/Module;)V" the class loader (instance of io/github/bananapuncher714/cartographer/core/module/ModuleClassLoader) of the current class, ru/brainrtp/waypoints/WayPoints, and the class loader (instance of io/github/bananapuncher714/cartographer/core/module/ModuleClassLoader) for the method's defining class, ru/brainrtp/waypoints/yml/MainConfig, have different Class objects for the type io/github/bananapuncher714/cartographer/core/module/Module used in the signature
        at ru.brainrtp.waypoints.WayPoints.onEnable(WayPoints.java:36) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.module.Module.setEnabled(Module.java:116) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.ModuleManager.enableModule(ModuleManager.java:146) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.command.CommandModule.enable(CommandModule.java:118) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.api.command.CommandOption.execute(CommandOption.java:23) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.api.command.CommandResult.execute(CommandResult.java:36) ~[?:?]
        at io.github.bananapuncher714.cartographer.core.api.command.SubCommand.onCommand(SubCommand.java:196) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.14.4.jar:git-Paper-243]
        ... 17 more
     
  10. BrainRTP updated [Cartographer2] [Addon] WayPoints with a new update entry:

    Recode plugin

    Read the rest of this update entry...
     
  11. hi there, it does not work with cartographer 2.4.4 and 1.16.4 ... I get following errors when waypoints is enabled as module:

    Code (Text):
    [20:19:31 ERROR]: Error occurred while enabling Cartographer2 v2.14.4 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_16_R2/CraftServer
            at ru.brainrtp.waypoints.WayPoints.<clinit>(WayPoints.java:132) ~[?:?]
            at java.lang.Class.forName0(Native Method) ~[?:?]
            at java.lang.Class.forName(Class.java:398) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.module.ModuleClassLoader.<init>(ModuleClassLoader.java:48) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.module.ModuleLoader.load(ModuleLoader.java:79) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.ModuleManager.loadModule(ModuleManager.java:61) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.ModuleManager.loadModules(ModuleManager.java:84) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.Cartographer.onEnable(Cartographer.java:175) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:468) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:239) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:940) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.4.jar:git-Paper-267]
            at java.lang.Thread.run(Thread.java:834) [?:?]
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_16_R2.CraftServer
            at java.net.URLClassLoader.findClass(URLClassLoader.java:471) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.module.ModuleClassLoader.findClass(ModuleClassLoader.java:131) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.module.ModuleClassLoader.findClass(ModuleClassLoader.java:66) ~[?:?]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
    and:

    Code (Text):
    [20:19:47 ERROR]: Exception when TwoFaces attempted to tab complete cartographer
    org.bukkit.command.CommandException: Unhandled exception during tab completion for command '/cartographer ' in plugin Cartographer2 v2.14.4
            at org.bukkit.command.PluginCommand.tabComplete(PluginCommand.java:150) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.command.Command.tabComplete(Command.java:93) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.command.SimpleCommandMap.tabComplete(SimpleCommandMap.java:244) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.tabCompleteCommand(CraftServer.java:1905) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.craftbukkit.v1_16_R3.CraftServer.tabComplete(CraftServer.java:1877) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.craftbukkit.v1_16_R3.command.BukkitCommandWrapper.getSuggestions(BukkitCommandWrapper.java:58) ~[patched_1.16.4.jar:git-Paper-267]
            at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:71) ~[patched_1.16.4.jar:git-Paper-267]
            at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:596) ~[patched_1.16.4.jar:git-Paper-267]
            at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:579) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.PlayerConnection.lambda$a$7(PlayerConnection.java:632) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1136) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1129) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1203) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1000) ~[patched_1.16.4.jar:git-Paper-267]
            at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.4.jar:git-Paper-267]
            at java.lang.Thread.run(Thread.java:834) [?:?]
    Caused by: java.lang.IllegalStateException: zip file closed
            at java.util.zip.ZipFile.ensureOpen(ZipFile.java:915) ~[?:?]
            at java.util.zip.ZipFile.getEntry(ZipFile.java:347) ~[?:?]
            at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1121) ~[?:?]
            at java.util.jar.JarFile.getEntry0(JarFile.java:578) ~[?:?]
            at java.util.jar.JarFile.getEntry(JarFile.java:508) ~[?:?]
            at java.util.jar.JarFile.getJarEntry(JarFile.java:470) ~[?:?]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:133) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:216) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:111) ~[patched_1.16.4.jar:git-Paper-267]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100) ~[patched_1.16.4.jar:git-Paper-267]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
            at io.github.bananapuncher714.cartographer.core.api.command.SubCommand.getTabCompletions(SubCommand.java:170) ~[?:?]
     
  12. same errors :(