BedRockINSTA! <really need>

Discussion in 'Archived: Plugin Requests' started by GravedigginSearchBar, Sep 9, 2012.

  1. Hehe :D Feel free to ask my anytime about plugins. I've once ported Call of Duty to Spout for someone.

    Vandrake
    By the way the code is an outclip from my bukkit framework, feel free to use the framework if you want so..

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

    Hoolean

    Hows to decompile anyones?
     
  3. Offline

    Vandrake

    Last edited by a moderator: May 28, 2016
  4. Offline

    Hoolean

  5. Offline

    Woobie

    'ÅEOJRNSRFÄÖXSDFJGRNÖPAWKFSDNZxHSÅVFSRÖKGD
    grats
     
  6. Offline

    Hoolean

    Àëò bį græčî?

    Hehe kidding...
     
  7. Can you give me the permissions and instead of the commands can you just make it on all the time?
    500 + messages yay!
    EDIT : NVM

    Can i have the permission nodes?
    Wituz

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

    WarmakerT

    Why is this thread still alive? It's such an easy plugin -_-
     
  9. And why is it not still alive?
    I'm the one who made this thread and i am asking a question
    If you have a problem then leave.
     
  10. Offline

    WarmakerT

    No like, you only want a plugin where players can break bedrock instantly, this thread already has 2 pages.
    Oh, and by the way: "Use the search bar, fool!"
     
  11. Well, as you can see, theres 2 guys that already finished the plugin, and i need to ask them questions
    "Read First,fool!"
     
  12. Offline

    WarmakerT

    That doesn't mean there aren't already plugins that do this, or does it?
    Also, why are you being so aggressive towards me? '-'
     
  13. Well, why waste people's work? They spent there time on what there doing for us and were just going to waste it on other plugins?
    And i'm not aggressive to you.
     
  14. There are no permissions. You'll need to be OP to do the command
    Else if you want me to make it different, please send me a message.

    It's so simple, you should feel so free to edit whatever i made for you
    It's like 15 mins of easy work, right?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  15. Can you make permissions? Like
    Bedrockinsta.enable
     
  16. Offline

    redhotmo

    Use World Edit And Give Them Perms To Go //
     
  17. Offline

    np98765

    ... What??

    So you want him to give everyone permission to instantly destroy blocks? Any block, not just bedrock.
     
  18. Offline

    redhotmo

    True :p
     
    np98765 likes this.
  19. Bump, Mah person forgot to add Permissions. (Just Noticed) :)
    Wituz
     
  20. https://dl.dropbox.com/u/23715006/instabedrock.jar
    WorldGuard/Permissions

    permissions:
    instabedrock.use.[iteminhandID]

    to use all tools, use:
    instabedrock.use.*

    Code:
    package com.wrcreedrs.mc.instabedrock;
     
    import org.bukkit.Material;
    import org.bukkit.event.Listener;
    import org.bukkit.event.block.Action;
    import org.bukkit.event.player.PlayerInteractEvent;
    import org.bukkit.plugin.java.JavaPlugin;
     
    import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
     
    public class InstaBedrock extends JavaPlugin implements Listener {
        private static WorldGuardPlugin wgplugin;
        public void onEnable() {
            getServer().getPluginManager().registerEvents(this, this);
            wgplugin = (WorldGuardPlugin)getServer().getPluginManager().getPlugin("Worldguard");
        }
     
        public void onBlockInteract(PlayerInteractEvent event) {
            if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
                if (event.getClickedBlock().getType() == Material.BEDROCK) {
                    if (event.getPlayer().hasPermission("instabedrock.use." + event.getPlayer().getItemInHand().getTypeId())) {
                        if (wgplugin.canBuild(event.getPlayer(), event.getClickedBlock())) {
                            event.getClickedBlock().breakNaturally();
                        }
                    }
                }
            }
        }
    }
    Code:
    name: InstaBedrock
    main: com.wrcreedrs.mc.instabedrock.InstaBedrock
    version: 1.0.0
    website: http://www.wrcreedrs.com
    author: Streammz
    depend: [WorldGuard]
    description: >
                 Instant bedrock breaking with permissions & worldguard
    commands:
     
    Wituz likes this.
  21. Oh - excellent work!
     
  22. :D

    Doesn't seem to work?
    instabedrock.use.278

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  23. Do you have build rights for the place you want to use it?
    (no, having * permission doesn't mean you have build rights there, use a string to check if you have the rights
     
  24. I have perms for the place but it doesn't seem to work.
     
  25. Offline

    Deathmarine

    Code:java
    1. package com.modcrafting.under50;
    2. public class BedDigger extends org.bukkit.plugin.java.JavaPlugin implements org.bukkit.event.Listener{
    3. public void onEnable(){
    4. this.getServer().getPluginManager().registerEvents(this, this);
    5. }
    6. @org.bukkit.event.EventHandler
    7. public void onBlockDamage(org.bukkit.event.block.BlockDamageEvent event){
    8. if(event.getBlock().getType().getId()==7&&event.getPlayer().hasPermission("beddigger.use")) event.setInstaBreak(true);
    9. }
    10. }

    Download:
    https://github.com/downloads/deathmarine/Under-50-Lines-Plugins/BedDigger.jar
    Permission:
    beddigger.use

    How this can become outdated. Blows my mind.
    I'm just going to start packaging all these together.
     
  26. Offline

    Woobie

    Lol

    Code:
    Code:
     if (event.getPlayer().hasPermission("instabedrock.use."
    plugin.yml
    Code:
    name: InstaBedrock
    main: com.wrcreedrs.mc.instabedrock.InstaBedrock
    version: 1.0.0
    website: http://www.wrcreedrs.com
    author: Streammz
    depend: [WorldGuard]
    description: >
                Instant bedrock breaking with permissions & worldguard
    commands:
    Where is the "instabedrock.use" permission?
     

Share This Page