[MECH/SEC] CreativeStick v0.8 - Build, replace, or remove blocks at a distance [1317]

Discussion in 'Inactive/Unsupported Plugins' started by sunkid, Mar 2, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    sunkid

    CreativeStick
    Build, replace, or remove blocks at a distance

    All updates and project support is now handled on our DevBukkit site!
     
    Rwembee, andrewkm, Freakmiko and 3 others like this.
  2. Offline

    Guardian9978

    You didn't mention any permission nodes to use with Permissions or GroupManager.
     
  3. Offline

    sunkid

    Ah, yeah, that would be helpful now, wouldn't it? [​IMG]

    Currently, only 'creativestick.use' is supported but I am working on implementing others and would appreciate any thoughts and suggestions from users.
     
  4. Offline

    Guardian9978

    Thank you was just looking to replace iStick since it throws PLAYER_ANIMATION errors when people use it.
     
  5. Offline

    JoelNYC

    Great work. Thanks for picking up the pieces of this plugin and running with it.

    Could you make it optional to have a right-click re-assign the building block? It's handy when you want it... however I mostly find it annoying. I have to stop what I'm doing to re-enter a /is -b command far too often.
     
  6. Offline

    jpcturbo

    Yes, thanks for bringing this back. My wife and niece will be happy to have their favorite block removal too back.

    Tested with cb 493 just now and noticed that the distance parameter seems to have no effect. I can see those two girls unknowingly removing blocks in the distance.

    An enhancement request: Allow distance be set in the current config.yml file or a different file that would not be optionally ignored.

    I noticed that if you try to use the Creative Stick underwater in build mode, you end up getting stuck and hurt in the block of dirt that got placed right in front of you.
     
  7. Offline

    Jobsti

    Wuahaha, big thanks!

    Works very well with #493 GM 1.0
    and thanks because my request ;)

    Bug:
    The distance, set it to 10, but I thinks its about >100 for build and remove.
     
  8. Offline

    sunkid

    @Jobsti: Du bist aber früh munter! [​IMG]

    I'll look at the distance parameter tomorrow (US West Coast). This is all Nijikokun's code still... found out via IRC today that he had a bad computer crash and lost every source code for everyone of his plugins. All the more reasons to put it on github or anywhere else right from the start.
     
  9. Offline

    Jandalf

  10. Offline

    MadManMarkAu

    x-posted from iStick thread:

    People are moving away from items.db and using Bukkit's internal item name resolution:

    (Code from my own plugins, WTFPL applies :)

    Code:
        public static Material getMaterial(String m) throws IllegalArgumentException {
            try {
                int itemId = Integer.decode(m);
    
                Material material = Material.getMaterial(itemId);
                if (material == null) {
                    throw new IllegalArgumentException("Unknown material " + m);
                }
                return material;
            } catch (NumberFormatException ex) {
                Material material = Material.getMaterial(m.toUpperCase());
                if (material == null) {
                    throw new IllegalArgumentException("Unknown material " + m);
                }
                return material;
            }
        }
    
    This is likely better than using items.db as Bukkit itself will update with new items as they are added :)
     
    sunkid likes this.
  11. Offline

    sunkid

    I completely agree and thanks for the code example! I am still not sure what items.db was used for, but from my understanding of the code, it also served as a synonym database and a way to configure which items were useable by the stick.

    Unless I find some good example and hear from users that they really need this functionality, I will just roll that latter part (configuration of useable items) myself.
     
  12. Offline

    ScottSpittle

    the commands slash with another plugin.. when i type /cs -t i get

    Too Few arguments
    /cs [Filename] <arguments>
     
  13. Offline

    Jandalf

  14. Offline

    sunkid

    Did you copy the settings.version parameter? That should prevent generation of the new config file. Make sure to leave the version number the same as it was in config-new.yml and don't set it to the actual version of the release.
    --- merged: Mar 4, 2011 2:05 PM ---
    I was afraid of that! Do you know which plugin that is?
     
  15. Offline

    Jandalf

    yes i exactly did this put version 0.4.7 into config.yml, delete config-new.yml start CB and config-new.yml is back again
     
  16. Offline

    sunkid

    Shucks.... I tested this a gazillion times yesterday! Would you mind posting your current config.yml?
     
  17. Offline

    Jandalf

    Code:
    # This is the default configuration for CreativeStick
    # You can use it instead of the old permissions and item.db files
    # If you are upgrading CreativeStick, look for any comments labeled
    # '(NEW)' below
    
    # IF THE VERSION BELOW IS NOT THE VERSION IN YOUR config.yml CHECK FOR
    # NEW PARAMETERS AND ADD THEM TO YOUR config.yml. THEN, AND ONLY THEN,
    # CHANGE THE VERSION IN YOUR config.yml TO THE ONE BELOW.
    settings:
        # version of the last update of the config file (NEW)
        version: 0.4.7
    
        # this will allow all ops by default to use the plugin
        # ignored when GroupManager or Permissions are used
        allow-ops: false
    
        # should the plugin be toggled ON by default
        enabled: false
    
        # should items be dropped by default
        drops: false
    
        # The following settings can be changed on a per-user basis in game
        # if the user has 'creativestick.config' permissions
        user:
            # how many steps to undo by default (NEW)
            undo: 5
    
            # protect bottom layer - set to false if users are allowed to create blue holes (NEW)
            protect-bottom: true
    
            # the maximum distance at which the stick works (NEW)
            distance: 100
    
            # the tool to use as a stick (default is stick) (NEW)
            tool: 280
    
            # whether or not right-clicking switches to the item clicked on
            right-click-switch: false
    
        # if you really want to use the old iStick configuration files, uncomment the
        # following parameter
        # ignore-yml: true
    
    # All permissions including the asterisks must be placed in single quotes
    # and assigned to individual users like so:
    #
    # permissions:
    #     user:
    #         - 'creativestick.use'
    #     op_user:
    #         - 'creativestick.use'
    #         - 'creativestick.config'
    #
    # Currently supported permissions:
    #
    #   creativestick.use   : allows a user to use the plugin
    #   creativestick.config: allows a user to also change the configuration in-game (NEW)
    #   creativestick.*     : allows a user to use every feature of the plugin (NEW)
    #
    # The plugin will try to port your old iStick.permissions file each time
    # it isn't able to find this file. If you already use either the Permissions
    # plugin or the GroupManager plugin, those will be used instead and the
    # below will be ignored. In that case, simply assign the above permissions
    # to the users and groups in the configuration files for those plugins.
    sorry but pastebin.com is down-.-
     
  18. Offline

    sunkid

    Thank you! I found my mistake and will re-release a fix (same version) in a second. No need to download if you just want to get rid of the warning message and the generation of the new config file. Simply change the version in the config file to 0.4.5

    My bad! I should have an automated test for this.
     
  19. Offline

    Jandalf

    thanks 0.4.5 works
    --- merged: Mar 4, 2011 2:27 PM ---
    question: does protect-bottom: true stops from deleting the top line of the nether?
     
  20. Offline

    sunkid

    Sorry about the trouble with that!

    I have not tested in the nether, but will. I don't think it will protect the top line in the nether though, but I will change it so it does.
     
  21. Offline

    Jandalf

  22. Offline

    sunkid

  23. Offline

    Jandalf

  24. Offline

    Wulfspider

    Could you add a secondary command in the event WorldEdit is installed? It uses /cs for craftscripts.
     
  25. Offline

    sunkid

    Yes, will do!
     
  26. Offline

    Sooks

    I got worldedit which using cs as craftscript command can't bypass it?
     
  27. Offline

    MadManMarkAu

    I agree, /cs is is a bad command up use, as WorldEdit uses it too. try /cstick...?
     
  28. Offline

    sunkid

    By popular demand, the plugin now supports the aliases /is, /istick, and /cstick as well as the default /cs. I have also verified that the top-most layer of a world cannot be removed (still not tried this in the nether though). More importantly though, I have implemented support for protection plugins (for example AntiGrief). As I have only tested this with AntiGrief, I would appreciate any feedback for other such plugins. Oh, and undo works the way it should now [​IMG]

    Enjoy!
     
  29. Offline

    Murbish

    "/cs toggle: access denied!"
    And I'm the server admin?
     
  30. Offline

    Jademalo

    Im having some massive problems. Its completley random wether or not it does this, but sometimes, it will just act as if blocks arent there. For example, it will destroy blocks on the opposite side of a brick wall. I also occasionally get the error "Hit the bottom later" or something, when im using it on the surface. Im imagining its literally destroying right through the ground.

    Ive got the latest version adn everything.
     
Thread Status:
Not open for further replies.

Share This Page