[MECH/EDIT] SimpleSignEdit v1.7.1 - Edit signs with right-click, now on BukkitDev [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Celtic Minstrel, Mar 22, 2011.

  1. Offline

    Celtic Minstrel

    Not satisfied with the mechanics of other sign edit tools, such as requiring the use of commands, I went and threw together a plugin that lets you edit signs simply by right-clicking them with another sign in hand.
    Download from the BukkitDev page. (Older versions available here.)

    When you right-click to edit a sign, you can then view and edit the text of the sign just as you would when creating it. You can only edit signs if you are the owner or if they are owned by everyone. To include colours on the sign, use the & character followed by a digit or a letter from A to F. This works both when placing and when editing. If you want to include an & character on the sign, and the plugin interprets it as a colour code, simply double it and the plugin will realize that you don't want it to be converted.

    To see who owns a sign, hold a stick in your hand (you can change this to any item in the config file), and right-click the sign. To change who owns a sign if you have permission, hold a feather in your hand (you can change this to any item in the config file), and right-click the sign. Then either type the new owner name into chat, or walk over and punch them. You can also enter the symbols @, #, and * into chat to set the owner to yourself, no-one, or everyone, respectively. You could also edit ownership by editing the config file, but since signs are stored by their location that would not be an easy task.

    To configure the items used for setting/viewing the owner of the sign, simply set the "view-owner" or "set-owner" values in the config file to the ID of the item you want to use. You can also change the "allow-stacking" and "break-protect" values if you wish. It's probably a good idea to leave the "signs" section alone since that keeps track of who owns which sign. You can also configure it so that you need to be sneaking (or not sneaking) to edit signs.

    Permissions nodes:
    • simplesignedit.edit - Allows players to edit the signs they have placed as well as public signs (owned by everyone). If Permissions is not installed, everyone gets this.
    • simplesignedit.edit.all - Allows players to edit any sign, including those with no owner and those placed by others. If Permissions is not installed, only ops get this
    • simplesignedit.colour.<code> - Allows players to use the specified colour on signs. Available colours are listed here, but leave out the underscores and use all lowercase. Or you can just give simplesignedit.colour.*; also, the U in colour is optional. Currently this is restricted to ops if Permissions is not installed
    • simplesignedit.setowner - Allows players to change the owner of a sign. If Permissions is not installed, only ops get this.

    Config options:
    • allow-stacking - Allows sign posts to be built on top of sign posts; if false, an attempt to stack sign posts will result in the edit window appearing.
    • break-protect - Protect signs from being broken by people other than their owner. Obviously signs owned by everyone can then be broken by everyone.
    • orphaned-breakable - If the above is set to true, this controls whether signs owned by no-one can be broken by anyone.
    • sneaking - One of "true", "false", or "both"; if true, you must be sneaking to edit signs, and if false, you must not be sneaking to edit signs. The default, "both", means that your sneaking status is not checked when determining if you should edit the sign.
    • view-owner - The ID of the item used to see the owner of a sign by right-clicking. Defaults to stick.
    • set-owner - The ID of the item used to set the owner of a sign by right-clicking. Defaults to feather

    Video by Warby579:


    List of things to maybe do:
    • None right now

    Changelog:

    Version 1.7
    • Now uses a database to keep track of sign ownership.
    • Added auto-save option.

    Version 1.6.2
    • Added configuration option to allow anyone to break signs that have no owner even if break protection is enabled; it has no effect if break protection is not enabled
    • Fixed a potential NullPointerException that would sometimes occur when disabling; this bug could in theory haved cause loss of owner data
    • Fixed PermissionsBukkit antibuild interfering with the operation of the plugin; now you should be able to edit signs if you have simplesignedit.edit even if you do not have permissions.build
    • Fixed duplication issue that resulted from a conflict with plugins that display an inventory window when right-clicking a sign; any other, similar duplication issues that I'm unaware of should be similarly fixed

    Version 1.6.1
    • Editing signs despite anti-build should now work with more anti-build plugins. It still might not work with some though.

    Version 1.6
    • Added an option to require that you are sneaking (or not sneaking) in order to edit signs. By default, you can edit signs regardless of whether you are sneaking.
    • Added the simplesignedit.* permission node, which somehow I managed to forget when implementing superperms support.
    • Added more API stuff. I suppose it's unlikely people will use it, but still. Also, the API is now used internally as well.
    • It should now be possible to make signs editable for users who do not have build permission. Whether it actually works may also depend on what plugin you use for anti-build. It still won't affect built-in spawn protection though.
     
    Taranis01, Pompeij and ksevelyar like this.
  2. Offline

    Revenger

    Get this in console also with this plugin.

    Code:
    00:02:53 [INFO] [SimpleSignEdit] Table found! (Error code was SQL:2003 SQLState: null; feel free to post this line on the forum as it may help me improve the plugin; however, this is not a bug)
    As for the error I realised i had old text in the first message I was meant to remove.

    So basic signs work no error at all
    Editing signs work but always that error when I get my sign back
     
  3. Offline

    Celtic Minstrel

    I've implemented a fix for the HawkEye compatibility problem which will be in 1.7.2 once I get around to building and uploading it. The other message isn't an error; it's expected behaviour. I'm guessing you're using SQLite?
     
  4. Offline

    Phedg1

    I'm getting the line: [SimpleSignEdit] Table found! (Error code was SQL:2003 SQLState: null; feel free to post this line on the gorum as it may help me improve the plugin; however, this is not a bug)
     
  5. Offline

    Celtic Minstrel

    Don't worry about that. It's expected behaviour. (If you want you can tell me what database you're using, but from the message I'm guessing it's SQLite?)
     
  6. Offline

    Phedg1

    I don't know what database I'm using, I just put the plugin .jar in my plugins folder, any database it created must be the default. I just don't like the extra long messages appearing in my console.
     
  7. Offline

    Celtic Minstrel

    Yeah, thought it'd be SQLite. Eh, I might tweak that message in the next release, whenever that is, but it's not high priority.
     
  8. Offline

    titaniumfang

    will there be 1.2.3 support for the stable build when released? :D ?
     
  9. Offline

    Celtic Minstrel

    Considering there's already 1.2.3 support, I think that answer would have to be "yes".

    You should check the BukkitDev page if you haven't already done so.
     
  10. thanks nice plugin worked perfictly:) :):)
     
  11. Offline

    gawelium

    Hi, great plugin and very usefull !
    But, in my server 1.1 we can edit the sign with the sentences in but now in 1.2 we must edit all the sign, the sign becomes clear . I don't know if you understand !
    Thank's for the answer
     
  12. Offline

    Celtic Minstrel

    No idea... I'm fairly sure I recall this not being the case in 1.2.4. Unless you're not using the latest version of SimpleSignEdit? Have you checked on the BukkitDev page to see if there's an update?
     
  13. Offline

    gawelium

    I use version 2.0 (for CB 1.1-R6) I think I have to wait a little update for 1.2 :)
     
  14. Offline

    gawelium

    Maybe someone can make an update for 1.2.4 or 1.2.5 ?
     
  15. Offline

    gawelium

    You HAVE TO update this!! you can't just make something epic like this and then forget about it !!
     
  16. Offline

    gawelium

    Can we have the source of the plugin please ? I can find a guy to update your work...
     
  17. Offline

    Sonar

    I'm guessing this don't work with 1.2.5 - as people are asking for updates :-(

    Someone must know the dev on skype/msn/email - get in contact to update :-(
     
  18. Offline

    omega3141

  19. Offline

    Celtic Minstrel

    As if I'm the only person capable of updating this. :p
     
  20. Offline

    md_5

    Long time no see Celtic Minstrel. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page