Inactive [MECH] CommandSigns v1.2.0 - Issue commands using signs[1317]

Discussion in 'Inactive/Unsupported Plugins' started by HansAnderson, Aug 26, 2011.

  1. Offline

    HansAnderson

    CommandSigns:
    Version: v1.2.0

    This plugin is a complete rewrite of CommandSigns based off the original by Edward Hand. With CommandSigns, you can add invisible text or commands to signs. When the sign is right clicked, the command runs and/or the player gets a message.

    The /* feature of this plugin will not work properly with PermissionsExtended (PEX).
    There is a small issue where PEX doesn't utilize the permissions.yml from the root server folder.
    It has been tested with PermissionsBukkit and bPermissions.

    Features:
    • Run commands from signs
    • Signs can have any other text on them, the commands are linked to the sign behind the scenes
    • Uses a new permissions node so that players can use commands they wouldn't normally have access to!
    How to use:
    1. Place a sign, add any writing you want
    2. Add lines to your clipboard with /commandsigns line<number> <text>
    3. Right click a sign to make it a CommandSign
    Commands:
    Code:
    /commandsigns line<number> <text>
      - Add a line with one command (see Command Formatting). Number may be 0-9
    
    /commandsigns read
      - Read a CommandSign (the command lines associated with it)
      - Note: You need permission to create a sign in order to read
    
    /commandsigns copy
      - Copy a CommandSign to clipboard (the command lines associated with it)
      - Note: You need permission to create a sign in order to read
    
    /commandsigns clear
      - Clear your CommandSigns clipboard
    
    /commandsigns remove
      - Remove a CommandSign
    Command Formatting:
    In the place of <text> for a line, you may write a single command or sign formatting (such as @group). There are 10 total lines for separate commands or sign formatting. See Examples.
    Code:
    /command
      -  Runs a command from the player who clicked the sign
    /*command
      - Runs command with elevated permissions from the 'CommandSigns.permissions' node
      - Doesn't work for OP commands like /stop
      - (For WorldEdit //wand, use /*/wand)
    @group
      - Limits the sign use to only that group
      - **Check the permissions section below for usage!**
    \message
      - Print the message to the player's chat
    <NAME>
      - Replaced in the command by the player's name
    <X>/<Y>/<Z>
      - Replaced in the command by the player's x, y, or z coordinates
    Examples:
    examples (open)
    Code:
    /commandsigns line0 \say Hello server! <NAME> just logged on.
      - "Hello server! <playername> just logged on."
    
    /commandsigns line0 \You just clicked
    \commandsigns line1 \a sign!
      - "You just clicked
          a sign!"
      - (Message sent to the  player who clicked)
    
    /commandsigns line0 /*warp point1
      - Warps the player to point1
      - (If the /* nodes are set up correctly)
    
    /commandsigns line0 @mods
    /commandsigns line1 /*warp point1
      - Warps the player to point1 only if they have the 'CommandSigns.group.mods' permission node
      - (If the /* nodes are set up correctly)

    Permissions:
    permission nodes (open)
    Code:
    'CommandSigns.*'
      - All permissions
    
    'CommandSigns.create.*'
      - All create permissions
    
    'CommandSigns.create.regular'
      - Create signs without /* commands
    
    'CommandSigns.create.super
      - Create signs with /* commands
    
    'CommandSigns.remove'
      - Remove CommandSigns
    
    'CommandSigns.use.*'
      - Use all signs
    
    'CommandSigns.use.regular'
      - Use signs without /* commands
    
    'CommandSigns.use.super'
      - Use signs with /* commands
    
    'CommandSigns.group.<group>'
      - Replace<group> with the group name from @group
      - Allows use of signs with the matching group name
    
    'CommandSigns.group.*'
    - Allows use of all @group signs

    In your permissions.yml (in main server folder) create parent node 'CommandSigns.permissions' and attach children nodes from plugins you want to give permissions for when using the /* prefix.
    permissions.yml example (open)
    Code:
    CommandSigns.permissions:
        children:
            warp.go: true
    Now using /*warp <somewhere> on a sign will allow a player who doesn't normally have access to the /warp command to use the sign.

    Download CommandSigns
    Source

    Changelog:
    Version 1.2.0
    • Only one command per line now (commands can have many more syntax options)
    • Added ability to copy a CommandSign text to 'clipboard'
    • Fixed 'CommandSigns.group.*' permission node
    Version 1.1.0
    • Now supports all superperms permissions plugins!
    Version 1.0.1
    • Fixed a missing permissions node from the plugin.yml
    Version 1.0.0
    • Initial release

    I wanted the functionality of the old plugin, but the /* feature was broken. After becoming frustrated trying to figure out and update Fluff's version, I went back to the original and completely rewrote it. This is really my first plugin and Java experience.

    If this is not an acceptable submission, that is fine. I wrote it for my server and don't have time to go nuts adding features we don't need. However, I saw many people also wanted the /* feature, so I shared my work.

    I'm open to changing the name to something different, or withdrawing the submission. My main goal was to make this available to anyone who wants to use it.

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

    Donald Scott

    I can confirm /*/wand does not work. Is there a fix planned?
     
  3. Offline

    fccardiff

    How can I get a sign to
    Same issue here...
     
  4. Offline

    RabidPigeon

    All of my ranks are gone!!! After i installed this it went ka-poop... I need help every1 is default rank. ;(
    EDIT: I uninstalled this plugin, but all of them are STILL GONE!!! AND I'M GETTING MAD!!! Someone HELP ME ALREADY!!! PLEEEEEEEEAAAAAASE!!!!!!! I got a boatload of complaints!!!
     
  5. Offline

    xtrea

    Try back up your permissions.yml and then make a new users: group: to see if its permissions (It could be a typo in permissions)
     
  6. Offline

    d0m182

    Hello,

    I use this on my server and people cannot seem to use the signs, i have given the deafult rank: CommandSigns.use.* and the permissions plugin i use is PEX, they can however use the command in chat: /warp eastoutpost but on the sign they can't. the console doesn't say anything and admins with the * node can use it, im not sure why they cannot use it please help!
     
  7. Offline

    VlperX

    Why?
    My current project has halted a little bit because I can't run more than 10 lines =/

    I friggen love this plugin and at first I would say it's only limited by the other plugins installed but now...
    I hadn't read the 10 line limit part... stumbled upon that myself.
    I use it with WorldGuard and WorldEdit by selecting a region and then running a WE command. It's really quite powerful. But I'm wanting to control 10 regions with a single sign. For that I need 20 lines at least because first WG needs to select the region and then WE can make it's move.

    Is there any chance you can increase the limit to say... 50 lines?
    I've decompiled the jar and I'm looking for some sort of number I need to change... but it can't be that simple I gather.

    What is the reason for limiting it to 10 lines?
     
  8. Offline

    godsyn

  9. Offline

    VlperX

  10. Offline

    nexbr

    not working for me, using Craftbukkit for MC 1.1 on windows, i got a lot of errors
     
  11. Offline

    godsyn

    Care to share what they are?
     
  12. Offline

    Andrew1431

    I can't seem to get the /* to work with the default permissions.yml, how do i add permissions, I did what it said, to no avail.

    Here is my permissions.yml thats in the base file

    CommandSigns.permissions:
    children:
    admincmd.*: true


    That should work right? so admincmd has a command that is /gm, and so on commandsigns i did
    /CommandSigns line0 /*gm
    Then as a not OP I gave it.... SHIT I FUCKED UP lol thanks for the help

    Is there a permissions you can give for basic OP commands like /op or /gamemode ?

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

    XcuzHD

    I have this problem also. :(
     
  14. Offline

    Raiann

    Argh ive been stuck on trying to make a sign that adds you to a group with permission plus.
    But i cant get the /* to work because i have no idea how to find the children nodes please help.
     
  15. Offline

    Silvo

    Please update for latest recommended build.
     
    godsyn likes this.
  16. Offline

    godsyn

    Any plans to update for R5?
    Code:
    Minecraft dev server launched.
    174 recipes
    27 achievements
    15:35:44 [INFO] Starting minecraft server version 1.1
    15:35:44 [INFO] Loading properties
    15:35:44 [INFO] Starting Minecraft server on *:25569
    15:35:45 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R4-13-g6381da2-b1952jnks (MC: 1.1) (Implementing API version 1.1-R5-SNAPSHOT)
    15:35:45 [SEVERE] Could not load 'plugins/CommandSigns-1.2.0.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:288)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:212)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:190)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:166)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:787)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:447)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            at com.hans.CommandSigns.CommandSigns.<init>(CommandSigns.java:28)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:149)
            ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            ... 27 more
    15:35:45 [INFO] Preparing level "world"
    15:35:45 [INFO] Default game type: 0
    15:35:45 [INFO] Preparing start region for level 0 (Seed: -97394964482756812)
    15:35:45 [INFO] Preparing start region for level 1 (Seed: -97394964482756812)
    15:35:46 [INFO] Preparing start region for level 2 (Seed: -97394964482756812)
    15:35:46 [INFO] Preparing spawn area: 20%
    15:35:46 [INFO] Server permissions file permissions.yml is empty, ignoring it
    15:35:46 [INFO] Done (1.416s)! For help, type "help" or "?"
    
     
  17. Offline

    Royalgamer06

    Yes please, please make this ready for R5 and fix: CommandSigns can't be used in protected areas or can't be used with players who don't have build rights...
     
  18. Offline

    ThirdProphecy

    Hey there! I'm really hoping you can help me out here.. I know how to set up the signs, and they work for my ops, but my non ops cant use them? I've added the CommandSigns.use.* to the groups, etc.. but nothing? Using PEX, heres a look at the permissions.yml: http://www.pastebucket.com/1543
     
  19. Offline

    godsyn

    That would be your protection plugin disabling users from using items.
     
  20. Offline

    Royalgamer06

    Yes, I know, but how to fix it?
     
  21. Offline

    godsyn

    Contact the author of your protection plugin. It isn't something to be discussed here, as it isn't a direct issue with command signs.
     
  22. Offline

    Royalgamer06

    Thanks
     
  23. Offline

    RevertiveDeath

    Could you give me a copy of your config file in permissionsbukkit? im trying to do the same thing
     
  24. Offline

    godsyn

  25. Offline

    Rellac

  26. Offline

    godsyn

    Link to request?
     
  27. Offline

    Rellac

  28. Offline

    AStevensTaylor

  29. Hey, It is probably an obvious answer and you will probably say it doesn't work or something similar, I understand you wrote that it does not support the /* feature when using Pex however I have given defaults the permissions to use /pex user <user> group set <group> and this works fine however does anyone know how I make it so when they click the sign, it gives them the command because I am typing this into the commandsign /commandsigns line1 /pex user <> group set trusted and it keeps thinking the player is called <>, does anyn know how I make it so it gives the person running the command through the commandsign the group rathe than a person which does not exist also known as <>. I would be grateful for some help, I have been trying to fix it for several days now, Thanks

    Edit: What I mean is, Is there a substitute for <user> to make it think it activate for the user hitting the sign rather than it activating for <>.

    Edit: Do I simply just write <user> in the command?

    Idiot Edit: I have just relaise when reading the notes on the plugin to put <name> for player name, I feel very very silly now, but i had been up all day and very tired when doing these permissions
     
  30. Offline

    kevile

    Has anyone had any success getting this to run on CB2060?
     
  31. Offline

    Royalgamer06

    kevile likes this.

Share This Page