Filled SurvivalCompass!

Discussion in 'Plugin Requests' started by Gosintary, Dec 30, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Gosintary

    Hey! I need a plugin that makes the compass a little more advanced! this adds two modes to the compass. Town Mode and Player mode. When you get a compass it will be in player mode. The player mode will make the compass needle point to the nearest player. If there is no players within 200 blocks(or whatever the radius of essentials' /near is) then make the compass spin around and around (if possible).

    Then when the player right-clicks with the compass in hand it switches to town mode!
    Admins(with permission survivalcompass.town) can do /settown. This will save their location as a town. When a player changes their compass to this mode, it will point to the nearest town marker.

    I want this for server version 1.8

    I would like it as soon as possible (trying to possibly release on new years day)
     
    KingOfTheEast01 likes this.
  2. Offline

    Gosintary

  3. Offline

    KingOfTheEast01

    I'll take up this project.
     
    Gosintary likes this.
  4. Offline

    Gosintary

    Cool! If you have any questions let me know!
     
    KingOfTheEast01 likes this.
  5. Offline

    KingOfTheEast01

    I'm having a lot of issues with this one, so if anybody else wants to take it up, feel free to. Otherwise, I'm still going to try to work on it, but it'll take me a few days, as it won't be my top priority. I apologize, as I had said I'd do this, but it became a much more tedious task than I expected it to be. I've received too many errors in just a few hours, and am stuck on one that doesn't make a lot of sense. If I can't get past it, I'll get help, but as I said, this won't be my top priority anymore. Sorry
     
    Last edited: Dec 31, 2017
  6. Offline

    Gosintary

    If it will make it any easier I really just need the town point features
     
  7. Offline

    Gosintary

  8. Offline

    Tabuu_

    TownCompass 1.0 BETA by Tabuu

    All commands and permissions can be found in the plugin.yml

    >> DOWNLOAD 1.8<<
    >> DOWNLOAD 1.12<<

    If you like my creation consider a donation

    Plugin.yml (open)

    Code:
    name: TownCompass
    version: 1.0 BETA
    main: nl.tabuu.towncompass.TownCompass
    description: Town mode for your compass
    authors: [Tabuu]
    website: https://www.tabuu.nl
    
    commands:
      town:
        usage: /town
        description: Main command for town.
      town help:
        usage: /town help
        description: Help command for town.
      town set:
        usage: /town set <name> [<x> <y> <z>]
        description: Sets a town at the specified location or at the players current location if nothing is specified.
      town remove:
        usage: /town remove <name>
        description: Removes the town with the specified name.
      town list:
        usage: /town list
        description: Returns a list containing all towns.
    
    permissions:
      towncompass.settown:
        description: Allows players to use the '/town set' command.
        default: op
      towncompass.removetown:
        description: Allows players to use the '/town removem' command.
        default: op
      towncompass.help:
        description: Allows players to use the '/town help command.
        default: op
      towncompass.list:
        description: Allows players to use the '/town list' command.
        default: op
      towncompass.compass.switchmode:
        description: Allows players to use switch the compass modes.
        default: true
     
  9. Offline

    Gosintary

    @Tabuu_ this was a thing or you just posted? If new thanks for developing! If old, GOOGLE YOU FAILED ME! Lmao. Thanks!
     
  10. Offline

    Tabuu_

    It's new, I developed it today. If this is what you wanted please mark this tread as filled :).
     
  11. Offline

    Gosintary

    Will make as filled but I have a request I guess I forgot to mention, When you switch modes have an item tooltip or message to the player in chat that says "&aYou are now in &c{mode}&a mode!"
     
  12. Offline

    Tabuu_

    I suggest you test the plugin first ;).
     
  13. Offline

    Gosintary

    I ran it on my server and the 1.8 version was not sending any messages? @Tabuu_
     
  14. Offline

    Tabuu_

    It works perfectly fine for me...
    [​IMG]
     
  15. Offline

    Gosintary

    @Tabuu_ Hmm, will look into it

    EDIT:

    I'm using the 1.8.8 version of bukkit the video shows my plugins list and my mc version.\

    Everytime I right click the compass I get this error message
    Code:
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:211) [craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) [craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:174) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:688) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Bukkit-18fbb24]
            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_141]
            at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_141]
            at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:673) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:335) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:629) [craftbukkit.jar:git-Bukkit-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:537) [craftbukkit.jar:git-Bukkit-18fbb24]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_141]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R1/Packet
            at nl.tabuu.towncompass.eventhandler.PlayerEventHandler.onPlayerUseCompass(PlayerEventHandler.java:68) ~[?:?]
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_141]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_141]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            ... 18 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R1.Packet
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
            at nl.tabuu.towncompass.eventhandler.PlayerEventHandler.onPlayerUseCompass(PlayerEventHandler.java:68) ~[?:?]
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_141]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_141]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[craftbukkit.jar:git-Bukkit-18fbb24]
            ... 18 more
     
    Last edited: Jan 3, 2018
  16. Offline

    Gosintary

    @Tabuu_
    Hello? I sent a log and a clip showing what happens on right-click.
     
  17. Offline

    Tabuu_

    Ah I see now, I wrote the packages for 1.8.1 but you seem to be on another version.

    EDIT (1): I've updated the plugin so it should work with all versions of 1.8 and 1.12_R1

    TownCompass 1.1 BETA by Tabuu

    All commands and permissions can be found in the plugin.yml

    >> DOWNLOAD<<

    If you like my creation consider a donation

    Plugin.yml (open)

    Code:
    name: TownCompass
    version: 1.1 BETA
    main: nl.tabuu.towncompass.TownCompass
    description: Town mode for your compass
    authors: [Tabuu]
    website: https://www.tabuu.nl
    
    commands:
      town:
        usage: /town
        description: Main command for town.
      town help:
        usage: /town help
        description: Help command for town.
      town set:
        usage: /town set <name> [<x> <y> <z>]
        description: Sets a town at the specified location or at the players current location if nothing is specified.
      town remove:
        usage: /town remove <name>
        description: Removes the town with the specified name.
      town list:
        usage: /town list
        description: Returns a list containing all towns.
    
    permissions:
      towncompass.settown:
        description: Allows players to use the '/town set' command.
        default: op
      towncompass.removetown:
        description: Allows players to use the '/town removem' command.
        default: op
      towncompass.help:
        description: Allows players to use the '/town help command.
        default: op
      towncompass.list:
        description: Allows players to use the '/town list' command.
        default: op
      towncompass.compass.switchmode:
        description: Allows players to use switch the compass modes.
        default: true
     
    Last edited by a moderator: Jan 15, 2018
Thread Status:
Not open for further replies.

Share This Page