[GEN] SignReadMore v3.3 - Sign/Bookshelf linked to read more text (PERMISSIONS) [740]

Discussion in 'Inactive/Unsupported Plugins' started by Milton, Feb 21, 2011.

  1. Offline

    Milton

    SignReadMore - Allow read more on Signs/Bookshelfs
    Version: v3.3

    Now with *COLOR* support and *PERMISSIONS*!

    Allows an users to associate a text file to a Sign post/Bookshelf in Minecraft. When a user right-clicks the Sign-Post/Bookshelf, a message contained in the associated text file will be displayed to the user.

    FEATURES:
    • Allows users to read more info about a Sign/Sign Post/Bookshelf
    INSTALLATION
    • Unzip to your plugins folder
    • Permissions: add the following node to your permissions: signreadmore.srm
    Download Sign Read More Plugin
    Source Code
    Feel free to make any DONATIONS
    Usage (open)

    USERS
    1. Create a Sign Post/Bookshelf and place it anywhere

    2. Open chat and type /srm line[1 - 8] Some text for line[1 - 8]
    e.g /srm line1 Some text for line1

    Use "#[0-9a-f]" to specify color.
    eg /srm line1 This is #0black text

    Repeat step 2 to enter different lines (max 8 lines)

    3. Right-click Sign Post/Bookshelf to associate sign post with file

    NOTE: Calling /srm for a sign already has a file associated allows you to EDIT the different lines.

    e.g
    If a sign alread has line1 to line5 entered. If a user then types "/srm line3 new line 3 details"
    Then the sign will be updated as follows:

    1. Some text for line 1
    2. Some text for line 2
    3. new line 3 details
    4. Some text for line 3
    5. Some text for line 4

    ADMIN
    1. Create a Sign Post/Bookshelf and place it anywhere

    2. Open chat and type /srm file filename.txt
    The filename specified should be located in [/plugins/SignReadMore] folder
    e.g /plugins/SignReadMore/filename.txt

    3. Right-click Sign Post/Bookshelf to associate with file

    Upon right-clicking sign post, the contents of the text file will be read and shown to the user.
    Change Log (open)

    Version 3.3
    • Removed OnBlockBreak (Deleting of file)
    Version 3.2
    • You can now assign a blank line (used for deleting)
    Version 3.1
    • Integrates with Permissions 2.5.5
    Version 3.0
    • Updated to craftbukkit #602 (dev-bukkit #486)
    Version 2.9.1
    • fixed minor bug with "/srm file" command
    Version 2.9
    • Using onCommand
    Version 2.8
    • Removed diamond sword for file-base association
    • Minor enhancements to the way messages are displayed
    Version 2.7
    • *Major* Added color support. Use "#[0-9a-f]" to specify color. eg. /srm line1 This is #0black text
    Version 2.6
    • Allow more than 1 user to edit a sign
    Version 2.5
    • No longer uses diamond sword as wand
    Version 2.4
    • Updated to dev-bukkit #461 (compatible with craftbukkit #556)
    Version 2.3
    • Updated to dev-bukkit #432 (compatible with craftbukkit #440)
    Version 2.2
    • Increased line limit (max 10) :: NOTE :: The max limit of the chat window is 10 (for the in-game chat window)
    • Added support for Wall Sign
    Version 2.1
    • Fixed bug for Admin usage. Should be: /srm file filename.txt
    Version 2.0
    • Now works with bukkit 1.3 (#412) - Uses OnBlockBreak instead of OnBlockDamaged
    • *Major* Users can now add read more text (YAY!!)
    Version 1.1
    • Fix "stupidly long constructor" warning
    • Added support for Bookshelf
    Version 1.0
    • Initial Commit.
     
    ImNotOkay, m5k and Phaedrus like this.
  2. Some things to consider ! They're really bad and can screw things up:

    - Don't give the player a diamond sword that overwrites whatever he holds just to take it away once you rightclick... just take rightclick from anything !
    - Don't delete the file if you remove the sign, expecially if it's read only!
     
  3. Offline

    Milton

    I'm looking into an alternative for this. I'll have to find a way to maintain state for the player.
    Good point. This is legacy from the original implementation. I'm thinking of doing away with the file-based association.

    General comment: You make use of a lot of exclamation marks (!) in your comments...this is generally not polite.
     
  4. Okay! ... :p but hey, I was pretty confused and annoyed by those two things, so that's why I'm... exclamating =)
     
  5. Offline

    Milton

    Fixed in v2.5

    Feel free to hit the Dontaions link [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  6. Offline

    iSushi

    Support for colors? :)
     
  7. Offline

    Fluff

    This plugin is great. A couple of things would make it perfect for our server:
    1. Permissions support. I know it's already on your TODO list, but I just thought I'd mention it again.
    2. This will be a pain...but WorldGuard support. Right now, anyone can set text on any sign or bookcase, even if they can't normally build in the region. It's not really a problem on our server because we're all friends, but it'd still be nice to have.
    EDIT:
    As an alternative to WorldGuard support, perhaps some sort of syntax on the first line that could designate what users or Permissions groups can edit the additional text? For example, if a sign has a first line of [Fluff], then only Fluff can set text on the sign. If a sign has a first line of [g:Admins], anyone in the Permissions group named Admins can set text on the sign. If a sign doesn't have a first line or the first line isn't of the form [<user or group names>], then anyone can set text on the sign.

    If you want more than one user or group to be able to use the sign, it can be comma-delimited. For example, a sign that has a first line of [Fluff, s7ven] allows both Fluff and s7ven to set text on the sign.

    Of course, it'd help if the text files were only associated by location instead of by username and location. For example, here's something that can't be done easily right now.

    User1 adds line1 to a sign (maybe a request for help?).
    User2 responds by adding line2 to the same sign.
    Guess what? You lost the text that User1 added because the sign is now associated with a text file with User2's username.

    The text files really should be associated only by location of the sign or bookcase.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  8. Offline

    Endimmion

    There is a problem with the download link, the .jar file in the 2.5 zip version is the 2.3 version.

    Proof is that I still get a diamond sword when editing a sign and getting "SignReadMore version 2.3 is enabled!" when starting my server.
     
  9. Offline

    Mukrakiish

    Idea: geared towards adventure/dungeon crawls.

    When you pass over an X Y Z part of the map, a message comes up on your console...like an oracle talking or something from "the bushes or the distance" is talking to you. It could have a timer cooldown so that it wouldn't spam the console. It could still be tied to the regular txt file what not but just have a region 'flag' for it to come up rather than just sign based.
     
  10. Offline

    Solest

    I have to thank you for coming up with a plugin that overwrites the USELESS book functions of craftbook :p

    You see, Craftbook as a whole is an excellent addon, especially for redstone uses and integrated circuits, but they tacked on the bookcase reading ability which read you random quotes whenever it was clicked... and most of the bookcase editors out there could not override this functions. Though it was probably accidental that you did with yours, kudos nonetheless :D Now I can finish my library...

    One thing, however, my server does not recognize that when I type "/srm," that I am referring to a plugin and it reads back to me "Unknown console command." Not a big thing, but just a minor bug fix I'm not sure has been mentioned yet :)

    Of course my only other hope is that you add colored text functions... But I'm plenty excited enough with this.
    You deserve many more hits than you currently have and I'll be recommending this plugin to the others searching through the other bookcase editors.

    2 thumbs up!
     
  11. Offline

    Milton

    Not sure what the cause was, but I've re-uploaded the zip file.

    Updated in v2.6

    I've added color support. v2.7
    Usage:
    Use "#[0-9a-f]" to specify color.
    eg. /srm line1 This is #0black text

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  12. Offline

    Jereq

    Excellent plugin!

    But...
    When associating a file with a sign, it will still use a diamond sword.

    And when you add a line in game, the line always starts with an unavoidable space.
    Third, when adding a line in game, all ten lines are created, even if only the first one is used, which gives ugly output.
    I would appreciate if only the lines used would be written to file. (Empty lines before first used lines will still be needed.)

    Keep up the good work!
     
  13. Offline

    Milton

    My pleasure.
    Thanks for the input. I've fixed all this in v2.8
     
  14. Offline

    Jereq

    Great!
    Now I noticed something else, the server doesn't seem to recognize the command '/srm'. Have you registered the command properly?
     
  15. Offline

    Milton

    What version of craftbukkit are you using?
     
  16. Offline

    Jereq

    12:10:33 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
     
  17. Offline

    Milton

    I have the same version but mine seems to work just fine..
    Can you post the error that you see?

    Had to change my command implementation. Should be working fine now in v2.9

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  18. Offline

    Jereq

    Works great now!

    By the way, is it supposed to add an empty line before showing the stored text when reading a sign? If it is, could you add an option to disable it?

    Edit: Found a bug, when I try to associate with a file, the filename gets cropped with the first five letter, i.e to use file Gates.txt, I can write /srm file 12345Gates.txt
     
  19. Offline

    Lunar Delta

    /srm file isn't working at all. CB 560 with latest version of your plugin.
     
  20. Offline

    Milton

    my plugin is compatible with CB556 (latest recommended build)

    Edit: I think it might be related to Jereq's bug...does "/srm line.." work on CB560? Try v2.9.1

    The blank line was a "feature" in the very 1st version, just forgot to remove it ;)
    I've fixed the bug in v2.9.1 (it got introduced when I changed the command implementation.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  21. Offline

    Lunar Delta

    Nope, the SRM command isn't working period 556 or 560.
     
  22. Offline

    Milton

    What does your plugin.yml look like?
     
  23. Offline

    Lunar Delta

    Code:
    name: SignReadMore
    main: com.bukkit.Milton.SignReadMore.SignReadMore
    version: 2.9.1
    author: Milton
    description: >
                 Allows users to associate a text file to a Sign post/Bookshelf in Minecraft.
                 When a user right-clicks the Sign-Post/Bookshelf, a message contained in the
                 associated text file will be displayed to the user.
    commands:
      srm:
        description: allows you to specify some text with a sign
        usage: |
               /<command> line[1 - 8] Some text for line[1 - 8]
               Example: /<command> line1 Some text for line1
    This is the default that came with the package.
     
  24. Offline

    Milton

    That is the correct version. Do you get any error messages on the console?
     
  25. Offline

    Lunar Delta

    No, no error messages at all in the console. I tried the plugin on a test server and it works perfectly. I think one of my plugins is conflicting with yours. The test server was only running:

    Normal Craftbukkit 560
    BorderGuard Lite
    FakePermissions/GroupManager
    General
    HeroChat
    iConomy
    Magic Carpet
    MyHome/Warp
    NoCheat
    Teleplus
    TimeShift
    Tombstone
    Voxel Sniper
    WorldEdit/Guard

    My main server is running all of those plugins plus these

    Anti-Grief
    Big Brother
    Cleaner
    DeathTpPlus
    Growbie
    HeroicRebuke
    LWC
    MCBans
    Otherblocks
    PVP
    Vanish
     
  26. Offline

    Milton

    You'll probably have to add the plugins 1 by 1 to your test server to see which 1 it's conflicting with. I have no idea why there would be a conflict though..
     
  27. Offline

    Lunar Delta

    Well, I figured out what the problem was. The plugin "General" was loading just before SRM, but was crashing upon load, which also crashed SRM and prevented it from registering its command properly. I updated general and now SRM works fine, and I was able to remake my server's rules board with your awesome plugin. :)
     
  28. Offline

    Milton

    v3.0 Updated to craftbukkit #602

    Long awaited feature: Sign Read More v3.1 now includes Permissions (v2.5.5)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  29. Offline

    habbah

    This is cool but again kinda useless... world guard is able to stop the sign from being deleted, however your addon still deletes the text file and dissassoicates it. so there is no way to protect these from greifers... :S
     
  30. Offline

    Fluff

    Permission nodes?

    EDIT: Nevermind, I'll just look through the source. Add 'signreadmore.srm' for users and groups that you want to set extra text. There are no other permission nodes.
     
  31. Offline

    Harushimo

    Hope you can update this for 617. I've been building an adventure map, and this makes the story much more interesting without needing "Read note 1" signs. I can still read one's I've already associated with files, but I can't use the /srm file filename.txt command anymore. :\

    Edit: Forgive me, I'm an idiot. Forgot to put the permissions node in. Works fine in Bukkit 640 (Development snapshot)
     

Share This Page