[MISC] ScrollingMenuSign - scrollable command menus with many view types [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by desht, May 24, 2011.

  1. Offline

    desht

    ScrollingMenuSign - scrollable command menus
    Note: ScrollingMenuSign is now on dev.bukkit.org:

    All documentation for the plugin can now be found there. General discussion for the plugin is fine here, but please use dev.bukkit.org tickets for problem reports.

    ScrollingMenuSign lets you attach a scrollable command menu to any sign or map and add menu items to it. Right-click the sign to scroll the list of items, left-click it to select an item and execute its associated command. The inspiration for this plugin was the large number of Minecart Mania station names I (and others) have to remember and type in.



    Some possible uses:
    • A menu of station setting commands for Minecart Mania
    • Newbie user guide menus
    • Warp menus for your favourite teleportation plugin
    • A shop menu - buy/sell/swap items & credits
    • Controlled access to commands that users can't normally run
    Links:
    Changelog

    See the Changelog on dev.bukkit.org
     
    HWei, bluehasia, elmoo32 and 6 others like this.
  2. Offline

    cky2250

    so far only ops can use it. though he says other can. so there is a glitch or he has not added the permision that he gives us.
     
  3. Offline

    desht

    You're using a colon ":" as the separator there, but the default separator character is a vertical bar "|".

    (You can change it to ":" if you want - do /sms setcfg menuitem_separator : )

    Since no one else is having a problem, do you really think this isn't usable by non-ops? It works just fine, so I would say you have a misconfigured permissions problem.

    I've just tested with a non-op player who has the following permissions (the third one is only required if you're using CommandSigns integration):

    Code:
    scrollingmenusign.scroll
    scrollingmenusign.execute
    commandSigns.use
    
    ... with no problems. I was able to run commands as the user, and CommandsSigns privilege elevation worked too (using /* or /@). For privilege elevation, you need to ensure the &CommandSigns user has the right permissions.

    Are you seeing this all the time, or just occasionally? The Bukkit getTargetBlock() call is known to throw that exception periodically, but from what I can tell it's a) a Bukkit problem, so nothing I can do about it, and b) harmless anyway.

    If you a search for "Start block missed in BlockIterator" on the forums, you'll see that it's not too uncommon.

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

    chickenmove

    the problem is that i dont have the permissions plugin because i had it but i dont check this plugin :I i dont know what i must write in there :I

    also when i use permissions all other plugins doesnt work :I because i dont know what i must write in permissions :(

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

    desht

    If you're not using Permissions, then you need to be an Op to create/modify/delete menus, but you can scroll and execute menus as any regular user. The commandSigns part is irrelevant if you're not using Permissions because privilege elevation isn't possible then anyway.

    That has nothing to do with this plugin.

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

    cky2250

    I've just tested with a non-op player who has the following permissions (the third one is only required if you're using CommandSigns integration):

    Code:
    scrollingmenusign.scroll
    scrollingmenusign.execute
    commandSigns.use
    
    ... with no problems. I was able to run commands as the user, and CommandsSigns privilege elevation worked too (using /* or /@). For privilege elevation, you need to ensure the &CommandSigns user has the right permissions.[/quote]
    Once again they can use commandsSign just not your plugin. I have tryed with permisions in and without. Ill upload the server start.
    2011-07-25 09:24:45 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-25 09:24:45 [INFO] Loading properties
    2011-07-25 09:24:45 [INFO] Starting Minecraft server on *:25565
    2011-07-25 09:24:45 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-25 09:24:45 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-25 09:24:45 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-07-25 09:24:45 [INFO] Entities enhanced[0] subclassed[1]
    2011-07-25 09:24:45 [INFO] [Permissions] (Yeti) was initialized.
    2011-07-25 09:24:45 [INFO] [Permissions] version [3.1.6] (Yeti) loaded
    2011-07-25 09:24:45 [INFO] Preparing level "homeland"
    2011-07-25 09:24:46 [INFO] Preparing start region for level 0 (Seed: 1444935471)
    2011-07-25 09:24:46 [INFO] Preparing start region for level 1 (Seed: 1444935471)
    2011-07-25 09:24:47 [INFO] Preparing spawn area: 77%
    2011-07-25 09:24:47 [INFO] [ATM] hooked into Permissions.
    2011-07-25 09:24:47 [INFO] [ATM] Configuration file loaded!
    2011-07-25 09:24:47 [INFO] [ATM] is up to date.
    2011-07-25 09:24:47 [INFO] [ATM] version v1.8b2 is enabled.
    2011-07-25 09:24:47 [INFO] [ATM] Payment method found (iConomy version: 5)
    2011-07-25 09:24:47 [INFO] CommandBook 1.5.2 enabled.
    2011-07-25 09:24:47 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled to be compatible with poorly written server wrappers.
    2011-07-25 09:24:47 [INFO] CommandBook: Time locked to '12:00 (12:00 pm)' for world 'homeland'
    2011-07-25 09:24:47 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-07-25 09:24:47 [INFO] CommandBook: 7 kit(s) loaded.
    2011-07-25 09:24:47 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-25 09:24:47 [INFO] [CommandPay] enabled.
    2011-07-25 09:24:47 [INFO] [CommandPay] Permissions support enabled.
    2011-07-25 09:24:47 [INFO] [CommandSigns] 0.9 enabled.
    2011-07-25 09:24:47 [INFO] CommandSigns: Integrated with Permissions v3.1.6
    2011-07-25 09:24:47 [INFO] DailyBonus is running!
    2011-07-25 09:24:47 [INFO] [DailyBonus] iConomy version 5 loaded.
    2011-07-25 09:24:47 [INFO] [DailyBonus] Permissions version 3.1.6 loaded.
    2011-07-25 09:24:47 [INFO] [HelpCommands] HelpCommands v1.3 by matjer has been enabled!
    2011-07-25 09:24:47 [INFO] [HeroBounty] HeroBounty version 1.8.0 enabled.
    2011-07-25 09:24:47 [INFO] [HeroBounty] Permissions 3.1.6 found.
    2011-07-25 09:24:47 [INFO] [HeroBounty] Payment method found (iConomy version: 5)
    2011-07-25 09:24:47 [INFO] [iConomy] Logging is currently disabled.
    2011-07-25 09:24:47 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-07-25 09:24:47 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-07-25 09:24:47 [INFO] [CommandPay] Hooked into iConomy
    2011-07-25 09:24:47 [INFO] Register: Payment method found (iConomy version: 5.01)
    2011-07-25 09:24:47 [INFO] [iConomy] hooked into Permissions.
    2011-07-25 09:24:47 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-07-25 09:24:47 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    2011-07-25 09:24:47 [INFO] [iConomyChestShop] Permissions version 3.1.6 loaded.
    2011-07-25 09:24:47 [INFO] [iConomyChestShop] Lockette version 1.3.8 loaded.
    2011-07-25 09:24:47 [INFO] [Jail] Loaded 1 jail zones.
    2011-07-25 09:24:47 [INFO] [Jail] Loaded 0 prisoners.
    2011-07-25 09:24:47 [INFO] [Jail] Loaded 2 cells.
    2011-07-25 09:24:47 [INFO] [LockBuy] Configuration file loaded!
    2011-07-25 09:24:47 [INFO] [LockBuy] hooked into Permissions.
    2011-07-25 09:24:47 [INFO] [LockBuy] version v1.1b1 is enabled.
    2011-07-25 09:24:47 [INFO] [LockBuy] Payment method found (iConomy version: 5)
    2011-07-25 09:24:47 [INFO] Lockette version 1.3.8 is being enabled! Yay! (Core version 1.0)
    2011-07-25 09:24:47 [INFO] Lockette: Detected craftbukkit build [1000] ok.
    2011-07-25 09:24:47 [INFO] Lockette: Linked to Permissions plugin version 3.1.6
    2011-07-25 09:24:47 [INFO] Lockette: Using ops file for admin permissions.
    2011-07-25 09:24:47 [INFO] Lockette: Ready to protect your containers.
    2011-07-25 09:24:47 [INFO] [MultiVerse] Permissions Found
    2011-07-25 09:24:47 [INFO] [MultiVerse] - Version 1.6.5 Enabled
    2011-07-25 09:24:47 [INFO] [MultiVerse] Found iConomy, enabling payments.
    2011-07-25 09:24:47 [INFO] [MultiVerse] Loading World & Settings - 'homeland' - NORMAL
    2011-07-25 09:24:47 [INFO] [MultiVerse] Loading World & Settings - 'homeland_nether' - NORMAL
    2011-07-25 09:24:47 [INFO] [MultiVerse] Loading World & Settings - 'goodworld' - NORMAL
    2011-07-25 09:24:47 [INFO] Preparing start region for level 2 (Seed: 4917314702411231735)
    2011-07-25 09:24:48 [INFO] [MultiVerse] Loading World & Settings - 'hillsidemanor' - NORMAL
    2011-07-25 09:24:48 [INFO] Preparing start region for level 3 (Seed: -7627568777684816713)
    2011-07-25 09:24:48 [INFO] [MultiVerse] 4 - World(s) loaded.
    2011-07-25 09:24:48 [INFO] [MultiVerse] Loading Portals
    2011-07-25 09:24:48 [INFO] [MultiVerse] 0 - Portal(s) loaded.
    2011-07-25 09:24:48 [INFO] [MYHOME]: 1 homes loaded
    2011-07-25 09:24:48 [INFO] [MYHOME] Permissions enabled using: Permissions v3.1.6
    2011-07-25 09:24:48 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    2011-07-25 09:24:48 [INFO] [MYHOME] MyHome 1.9.5 enabled
    2011-07-25 09:24:48 [INFO] [Permissions] SQL Interface enabled!
    2011-07-25 09:24:48 [INFO] [Residence] Found Permissions Plugin!
    2011-07-25 09:24:48 [INFO] [Residence] Successfully linked with iConomy!
    2011-07-25 09:24:49 [INFO] [Residence] Loaded Residences...
    2011-07-25 09:24:49 [INFO] [Residence] Enabled! Version 2.3.5 by bekvon
    2011-07-25 09:24:49 [INFO] ScrollingMenuSign: Permissions detected
    2011-07-25 09:24:49 [INFO] ScrollingMenuSign: CommandSigns API integration enabled
    2011-07-25 09:24:49 [INFO] ScrollingMenuSign version 0.4.1 is enabled!
    2011-07-25 09:24:49 [INFO] ScrollingMenuSign: read 0 macros from file.
    2011-07-25 09:24:49 [INFO] WorldEdit 4.6 enabled.
    2011-07-25 09:24:49 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-25 09:24:49 [INFO] [dynmap] DELETED ALL THE DYNMAP SINCE IT IS NOT NEEDED.
    2011-07-25 09:24:53 [INFO] [Jobs v2.4.3] has been enabled succesfully.
    2011-07-25 09:24:53 [INFO] [Jobs] Successfully linked with iConomy 5+.
    2011-07-25 09:24:53 [INFO] [Jobs] Successfully linked with Permissions.
    2011-07-25 09:24:53 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-25 09:24:53 [INFO] Done (0.739s)! For help, type "help" or "?"
    2011-07-25 09:24:53 [INFO] ScrollingMenuSign: read 4 menus from file.
    If you would like i can upload my server to megaupload and you can view it yourself.
     
  7. Offline

    desht

    I guess you'll have to, because I really don't understand what your problem is. I have no problems using menus as a non-op user.

    I'll need a copy of your scrollingmenus.yml file too.
     
  8. Offline

    cky2250

    First just thinking about it. Ill start with something simple
    ill upload the ScrollingMenuSign folder and jar, the Permissions folder and jar; and CommandSigns folder and jar.
    Is this fine?
    here is the link: http://www.megaupload.com/?d=ZT01DAF4
     
  9. Offline

    chickenmove

    i maked a sign with commands and i can use it (im OP) but the normal players cant use it because their stand than they dont have enough rights
     
  10. Offline

    desht

    Show me your scrollingmenus.yml file please.
     
  11. Offline

    chickenmove

    admin1:
    title: Knochen
    items:
    - {message: ' Nur für die Hunde', command: ' /i bone', label: Knochen}
    locations:
    - [arena, 109, 64, -588]
    owner: myname
    admin:
    title: Items
    items:
    - {message: ' HF', command: ' /i 1 64', label: Stone}
    locations: []
    owner: myname
     
  12. Offline

    desht

    OK, so do your users have permissions to use the /i command? If you're not using Permissions, and they're not Ops, there's no way the above could work. SMS doesn't allow users to run commands they don't normally have permissions to run, and it's not intended to.

    If you want to do that, you need to have CommandSigns too, and set up permissions so the &CommandSigns user is allowed to run the /i command. Then you can have a command like "/@i bone".

    See the Wiki docs, especially https://github.com/desht/ScrollingMenuSign/wiki/CommandSigns

    Had this all evening: The file you are trying to access is temporarily unavailable. Please try again later

    If you can use a file upload site that doesn't suck, that would help :)

    Also whatever you've posted is a Windows exe file, which is of zero use to me. Please just use a zip file.

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

    tbsman

    I've got a Bug, if I type /sms create testsign Test it says me the list of commands i can use.
    I've got Permissions 3.1.6 and I'm Admin.
    I Just wanted to make a sign Computer for my Server:D.
     
  14. Offline

    desht

    No idea on that one, sorry. Your syntax looks fine and I've just verified it works.

    Does your server log show that ScrollingMenuSign is initialising OK?
     
  15. Offline

    theedenknight

    these are the rights my users have (with other nodes of course)
    im using GroupManager
    and i have this sign:
    When a User clicks it no message comes up and nothing shows in the console, they can Scroll but dont use it i dont know what to do (with OP i can use it without = no go)

    ps: bukkit #1000
     
  16. Offline

    Cenarius

    Hi again :D

    i want to request a small future ..
    the ability to decide how many times the sign can be used by a user :D
    this would be really really useful for a lot of things !
    for example using it with heroes by taking the permission that gives the ability to change class so they can start with the default and change it only one :D
    or ..
    a starter kit sign so the player can choose one package but he can't use the sign again !
    or ..
    the ability to choose one of two prizes using sms but he user take booth since he can use the sign only once !
    or ..
    well, i bet you get what i mean without examples :p

    if you did this man it'll really come in handy ^_^
    or at least the ability to make the signs be used only once << it's what i actually wanted but i dunno maybe other people want to set a certain number as the using limit for certain signs .

    it's already in commandsigns i think :D
    but having it in ScrollingMenuSigns will be a much better experience :D

    looking forward to hear your response :)
     
  17. Offline

    cky2250

    I made it a exe so it auto extracts rather then a rar file. And i tested the url before i posted. If you still have trouble downloading i can change to a new website.
     
  18. Offline

    desht

    I'm sure you did test but megaupload sucks. Not your fault. And Windows exe's are not much use to me, because I don't use Windows.
     
  19. Offline

    Cenarius

    hi :D
    can you checkout my request please :)
     
  20. Offline

    desht

    I'll have a think about it.
     
    Cenarius likes this.
  21. Offline

    tbsman

    Ok. There was a problem with Permissions, I disabled Permissions and it worked fine.
    Thx 4 this Great Plugin.
     
    desht likes this.
  22. Offline

    cky2250

    <Edit by Moderator: Redacted mediafire url>
    if this does not help i will upload my server.
     
    Last edited by a moderator: Nov 28, 2016
  23. Offline

    desht

    OK, got them. So your scrollingmenus.yml shows that you're running e.g. /weather sunny when someone selects a menu item. And does that person have actually have permission to run /weather sunny ?

    Have you verified permissions for the &CommandSigns user?

    If you create a plain CommandSign with /@warp tut_shop, does it work?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 28, 2016
  24. Offline

    cky2250

    yes, i left that one but i had more but it would require many more jar files.
    yes that one my moderators had and could type into chat, and run with commandSigns.
    One that i really did want was /help and no one could use it even though they had the permisions to and had the same problem as the /weather.

    it looks as if 2 other people are having this problem im having.

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

    desht

    @cky2250, you are being seriously unhelpful here. Please stop trying to diagnose everyone else's problem as some kind of flaw in SMS. So far all you've given me is vague complaints and a ZIP file that doesn't even demonstrate whatever problem it is that you're supposed to be having.

    Either come up with some real examples of what's not working or stop complaining.
     
  26. Offline

    cky2250

    What is your native lanuage do you not understand that i am unable to have non-ops use scroll commands. Do i need to have a video on youtube for you to understand.
    As i read other post they are saying the same things.
     
  27. Offline

    desht

    My native language is English. I know what you're saying, and I'm telling you that I cannot reproduce your problem and you have not given me sufficient information to do so. I have tested as a non-op user and I have no problems at all with scrolling and executing menus. I have tested with a variety of commands, both with and without CommandSigns and there is not a problem.

    Other posts are not saying the same things. Please don't make assumptions on the part of other people.
     
  28. Offline

    cky2250

    I have just found the error. The scroll menu can not be used in the spawn area. It can out be used outside the spawn area. But the other command sign does work inside the spawn area.
     
  29. Offline

    Cenarius

    i can't wait for this :D
    if you actually approved and done this we'll be able to do a lot of stuff that we couldn't do before :)
    a one-time use sign could be reeeealy useful ^_^
     
  30. Offline

    desht

    Ah, yes, that would explain it. I would really recommend disabling Bukkit's built-in spawn protection and use a separate protection plugin if you need the protection. Bukkit's built-in protection is dumb (it prevent player interact events even though they have nothing to do with building). I think I need to start a FAQ on the OP...

    CommandSigns works because it uses a right-click to run commands, whereas SMS (by default) uses right-click to scroll and left-click to run commands. Right-click isn't blocked by Bukkit spawn protection.

    Sorry if I came across as bad-tempered earlier... difficult day :rolleyes:

    It's a good idea, and I'll probably implement it, but ... don't expect it too soon. It's not a simple addition (there is a lot of persistence etc. to consider), and I have limited time to work on major features right now.

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

    Cenarius

    OH REALLY :D
    THAAAAAAAAAAAANKS ^_^
    well, i can see what you mean :)
    but what about the small version of the future .. which is using the signs only once !
    i guess that would be easy on you :D
    1.add an item as boolean to define if the limited use is true and a command to set that as true or false
    2.just like how owners are stored, a users item is storing the users if the limited use boolean was set to true and they were not on the list before :D
    if they're on the list and the limited use is true than instead of applying the command, send a message that says "You cannot do this again" or something :/
    pretty easy for you huh :D
    i wish i can help but i'm still learning the basics hehe :p
     

Share This Page