[INFO] StickyHelp v1.0.2 - Get help from text files [1060]

Discussion in 'Inactive/Unsupported Plugins' started by marvinbek, Jul 25, 2011.

  1. Offline

    marvinbek

  2. Offline

    noahwhygodwhy

    hm, this is nice, oh, and FIRST COMMENT!
     
  3. Offline

    marvinbek

    You only posted that to get the first spot :p -.-
     
  4. Offline

    captainawesome7

    How to make a folder automatically:
    Code:
    File file = new File(this.getDataFolder().getPath());
    if(!file.exists()) {
        file.mkdir();
    }
    That makes the data folder associated with your plugin (When used in the main class).
     
  5. Offline

    marvinbek

    Thanks, will update when i'm done building my city on my server
    EDIT: What is "this.getDataFolder().getPath()"? The folder path?
     
  6. Offline

    captainawesome7

    It gets the Data folder's path that is associated with your plugin by Bukkit. It allows the user to change where they put their plugin's data folders.
     
  7. Offline

    marvinbek

    So i just use that code instead of a hardcoded path?
     
  8. Offline

    cholo71796

  9. Offline

    captainawesome7

    Yes. getDataFolder() would return the folder at "plugins/StickyHelp" unless the server admin changed it manually, and if he did it would return that folder. You should never use hardcoded paths.
     
  10. Offline

    marvinbek

    Awesome!
     
  11. Offline

    noahwhygodwhy

    lol, yes i did, but i actually started using it, and it works amazingly, pretty smooth, and perfect for giving detailed instructions and not having someone forget them...
     
  12. Offline

    marvinbek

    AND Removes the need for a lot of signs, when you just can direct them to /help [name]!
     
  13. Offline

    noahwhygodwhy

    that's what i was doing, it's surprising how getting rid of 20 sign billboards really makes a difference.
     
  14. Offline

    marvinbek

    OH MY GOD I got the Plugin Developer tag!!! Because of that, i'm SO going to push Bukkit Permissions out!

    Or Permissions 3.x? What do you guys want?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  15. not working with 2.7.4 permissions
    minecraft 1.7.3 and bukkit 1000
    Code:
    2011-07-28 18:34:59 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-28 18:34:59 [INFO] Loading properties
    2011-07-28 18:34:59 [INFO] Starting Minecraft server on *:25565
    2011-07-28 18:34:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-28 18:34:59 [INFO] Preparing level "world"
    2011-07-28 18:34:59 [INFO] Preparing start region for level 0 (Seed: -3070277644671500641)
    2011-07-28 18:35:00 [INFO] Preparing start region for level 1 (Seed: -3070277644671500641)
    2011-07-28 18:35:00 [INFO] Preparing spawn area: 65%
    2011-07-28 18:35:00 [INFO] CraftBukkitUpToDate version 2.5.9 is enabled!
    2011-07-28 18:35:00 [INFO] CButD: Permission system not detected, defaulting to OP
    2011-07-28 18:35:00 [INFO] CButD: CraftBukkit is up to Date
    2011-07-28 18:35:00 [INFO] StickyHelp v0.3 enabled!
    2011-07-28 18:35:00 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-28 18:35:00 [INFO] Done (0,155s)! For help, type "help" or "?"
    2011-07-28 18:35:03 [INFO] semirotta [/5.199.229.112:53062] logged in with entity id 123 at ([world] -32.5, 66.0, -32.5)
    2011-07-28 18:35:06 [SEVERE] java.io.FileNotFoundException: plugins\StickyHelp\compass.txt (Määritettyä tiedostoa ei löydy)
    2011-07-28 18:35:06 [SEVERE]     at java.io.FileInputStream.open(Native Method)
    2011-07-28 18:35:06 [SEVERE]     at java.io.FileInputStream.<init>(Unknown Source)
    2011-07-28 18:35:06 [SEVERE]     at java.io.FileInputStream.<init>(Unknown Source)
    2011-07-28 18:35:06 [SEVERE]     at me.marvinbek.StickyHelp.StickyHelp.displayHelp(StickyHelp.java:41)
    2011-07-28 18:35:06 [SEVERE]     at me.marvinbek.StickyHelp.StickyHelp.onCommand(StickyHelp.java:29)
    2011-07-28 18:35:06 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-28 18:35:06 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-07-28 18:35:06 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-28 18:35:06 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-28 18:35:07 [INFO] Connection reset
    2011-07-28 18:35:07 [INFO] semirotta lost connection: disconnect.quitting
    2011-07-28 18:35:09 [INFO] Stopping the server..
    2011-07-28 18:35:09 [INFO] Stopping server
    2011-07-28 18:35:09 [INFO] StickyHelp v0.3 disabled!
    2011-07-28 18:35:09 [INFO] Saving chunks
    2011-07-28 18:35:09 [INFO] Stopping server
    
    what is this? i made "compass.txt" file and text into there and it wont work?

    EDIT:

    Why i must type in game /help compass.txt instead of just /help compass?? it works with .txt after the info
     
  16. Offline

    marvinbek

    I don't understand this...
     
  17. i must type in game /help compass.txt <-- to get the help
    instead /help compass <--

    u know , in game u must type /help helpname.txt instead of just /help helpname <-- .....
     
  18. Offline

    marvinbek

    Yeah, i figured. But i don't know the cause... I checked the code, and i didn't see any problems with the code...
     
  19. odd.
    it would be easier to just type the text without .txt -.-'' well :) ppl must learn to type .txt
     
  20. Offline

    marvinbek

    Yeah, and typing .txt seems unprofessional...
     
  21. well that also, but i hope u could make it somehow /help typehelp <-- only. without the .txt after typehelp (typehelp.txt)
    sry for my bad english :(
     
  22. Offline

    llaraet

    Great Plugin
     
  23. Offline

    marvinbek

    It's a bug that i don't know how to fix :(
     
  24. oww 2 bad.
    Im still using this coz its really good and light weighted plugin
     
  25. Offline

    marvinbek

    Also, i'm unable to reproduce the error. I have v0.3 installed on my test server, and i can type /help typehelp, and it gives me the contents of typehelp.txt just fine. Try redownloading the plugin.

    Also, have you turned the "Show extensions for known filetypes" in Windows Explorer (If you use Windows) on? When it's on, do you see typehelp.txt.txt? If so, try removig one of the .txt's.
     
  26. i use mozilla firefox and ill just try redownload.

    EDIT:
    NVM i noticed what it was
    i created textfile and named it as rules.txt lol.. so basicly it was ye, rules.txt.txt :DDD
     
  27. Offline

    morizuki

  28. Offline

    marvinbek

  29. Offline

    morizuki

    well 1038 isn't recommended yet.. it's non-recommended.. but helpcenter is working perfectly fine even if it's still 860

    and u can see 1038 here

    http://ci.bukkit.org/job/dev-CraftBukkit/
     
  30. Offline

    marvinbek

    This should work at 1038, but i only test with RB's -.-
     

Share This Page