Inactive [ADMIN/GENERAL/MISC.]SignLink - Access to a webbrowser with just a sign [1.2.5-R3.0]

Discussion in 'Inactive/Unsupported Plugins' started by DocRedstone, May 28, 2012.

  1. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [IMG]
    Have you ever wanted your server users to have an easier way to access links to your forum? Youtube channel? Server Website? Well with this plugin you can. SignLink will allow you to access all the urls you want with just the click of a sign. The signs are completely indestructible and can only be placed by people with the correct permission nodes! This truly could bring your server to the next level.

    Features:
    • Link users to websites by just having them click on a sign
    • Link uses to a website by having them click a sign and a link appearing in chat!
    • Permission nodes to only allow the most trusted members to access the plugin(only available for bukkit permissions and bPermissions)
    • commands for adding links to signs.
    • commands for removing links from signs.
    • Completely hidden URLs so they don't clog up your sign.
    • A config file that is completely customizable.
    • Indestructible signs that can only be broken by people with the correct permissions.
    Commands:
    • /setlink <url> - Make sure you are looking at the face of the sign before typing this command. Then simple type the url you want the sign to redirect the user to.
    • /removelinksign - again make sure you are looking at the face of the sign before typing this command. Then type it to remove the sign and the link associated with it.
    Permission Nodes:
    • signlink.setlink - Gives the user access to the /setlink <url> command.
    • signlink.removesign - Gives the user access to the /removelinksign command
    Change Log:
    • 1.0
      • Officially released the plugin.
    • 2.0
      • Modified the way links work. Players now click a sign and have the links appear in chat. They then can click on the link in chat to get directed to the website!
    Video Explaination:




    This post has been edited 3 times. It was last edited by DocRedstone May 31, 2012.
    bjoen and jf46784 like this.
  2. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Dude. That's awesome.
  3. Offline

    aurel2108

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh that's a great idea ! :)
  4. Offline

    Lolmewn BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is pretty awesome actually. I'm wondering how you did this :O
  5. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm actually curious to see how the function works on a "Official" Server Host. This was tested on a "Normal" computer and accessed via Hamaci.




    Thanks!





    Thank you :D
  6. Offline

    Bertware

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    without a client mod? nice :)
  7. Offline

    Lolmewn BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looking at the code, this WONT work on non-local servers. Sorry bro..

    This post has been edited 1 time. It was last edited by Lolmewn May 28, 2012.
    DocRedstone likes this.
  8. Offline

    Lolmewn BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Also, something I noted, you are instantly casting (Player) to the sender object.
    NEVER do that. If the console sends the command you'll have a biiiiig error.
    Also, a good thing to do is to re-use things. Player permission = (Player)sender is the exact same thing is Player play = (Player)sender. No need to have 2 player objects.
  9. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That sucks.
  10. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks mate. I've noticed that this indeed will not work...I was testing it on my computer where I had the host setup. So it appeared to work. As for the messy code that's just how I roll ;) Nah I know it's a bad practice...
  11. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Released v2.0!
    Change Log:
    • 1.0
      • Officially released the plugin.
    • 2.0
      • Modified the way links work. Players now click a sign and have the links appear in chat. They then can click on the link in chat to get directed to the website!
  12. Offline

    bubbleguj

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Doesn't work for me :/
    I made it exactely like the man in the video but if I punch the sign, the URL just appear in the Chat :((
  13. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please read over the change log.
  14. Offline

    gabe04

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The console spams this error

    2012-06-19 17:23:10 [SEVERE] Could not pass event PlayerInteractEvent to SignLink
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at me.docredstone.signlink.Main.onSignUse(Main.java:107)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    ... 12 more
  15. Offline

    md_5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Approved.
    DocRedstone likes this.
  16. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you tell me what you are doing?
  17. Offline

    mobstarlife

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Same by me
    please fix it

    This post has been edited 1 time. It was last edited by mobstarlife Jun 22, 2012.
  18. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How did this error occur.,
  19. Offline

    mobstarlife

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Don't know what i have don but i don't get error any more

    next problem if click whit right mouse button on the sign notting happend
    only comes the link in the chat but my browser never opend

    EDIT: This error appears if the server you're running a time
    and you have not clicked on by me

    This post has been edited 1 time. It was last edited by mobstarlife Jun 23, 2012.
  20. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please read the change log....
  21. Offline

    mobstarlife

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay it don't solved my problem
  22. Offline

    gabe04

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A little after the plugin is started up it continuously spams the error in the console. There's nothing that triggers it, it just happens.
  23. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Then you didn't read it well... Modified the way links work. Players now click a sign and have the links appear in chat. They then can click on the link in chat to get directed to the website!
  24. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What other plugins are you using?
  25. Offline

    mobstarlife

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The console spams this error

    2012-06-19 17:23:10 [SEVERE] Could not pass event PlayerInteractEvent to SignLink
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:605)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at me.docredstone.signlink.Main.onSignUse(Main.java:107)
    at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    ... 12 more
    Okay it don't solved my problem
  26. Offline

    xBlueXFoxx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I fucking love you! Epic plugin, I've been waiting for one like this that takes advantage of the new browser launching system within Minecraft
    DocRedstone likes this.
  27. Offline

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is it possible to provide a version with the immediat redirect after hitting the sign? I am aware of the risk potential but you could share an unofficial version maybe ;)?
  28. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Thank you! I appreciate it!

    I wish but the current version of bukkit doesn't provide an API for links. The version I had earlier opened a link because it was hosted on my computer and would open the link via the host. I have no way of redirecting the link to a client without a client mod.
  29. Offline

    ravand

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    damit i already expected that :/ because i couldnt find it in the API either
  30. Offline

    DocRedstone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Maybe in the next awesome version of bukkit.

Share This Page