No Breaking Blocks

Discussion in 'Archived: Plugin Requests' started by nbkburns, Jun 22, 2013.

  1. Offline

    nbkburns

    i want it so only ops can break and place blocks and normal players cant break or place anything
     
  2. Offline

    Wolf3141

  3. Offline

    nbkburns

    ?
     
  4. Online

    timtower Administrator Administrator Moderator

    Try worldguard, /region flag __global__ build deny
     
    andrewabosh likes this.
  5. Offline

    andrewabosh

    nbkburns Yes what timtower said will work, you just need to do in each world though.
     
  6. Offline

    nbkburns

    but i dont want to do that i want it as a plugin
     
  7. Offline

    Wolf3141

    Pretty much every protection and/or permissions plugin does this.

    And worldguard is a plugin
     
    afistofirony likes this.
  8. Offline

    iFightBack_

    public void noBlocks(BlockBreakEvent event){
    Player player = event.getPlayer();
    if(player.isOp){
    //do nothing
    }else{
    event.setCancelled(true);
    }
    Done.
     
  9. Offline

    RingOfStorms

    Worldguard is a plugin *cough* - has what you want, so use it. And why not just use permissions? EVERY permission plugin has some kind of block permissions.
     
  10. Online

    timtower Administrator Administrator Moderator

    Why not?
     
  11. Offline

    nbkburns

    because i want it in a plugin :D
     
  12. Online

    timtower Administrator Administrator Moderator

    WorldGuard is an plugin
     
  13. Offline

    nbkburns

    thats not world guard
     
  14. Online

    timtower Administrator Administrator Moderator

    Thats not world guard? What do you mean?
     
  15. Offline

    comexpert

    public class noBlocks extends JavaPlugin implements Listener {
    @EventHandler
    public void noBlockBreak(BlockBreakEvent event){
    if(!(event.getPlayer().isOp())){
    event.setCancelled(true);
    }
    }

    Easy ...
    You want me to make a jar of it ?
     
  16. Online

    timtower Administrator Administrator Moderator

    comexpert Make sure to add an BlockPlaceEvent
     
  17. Offline

    45zeldafan

    Fucking use worldgaurd
    its a fucking plugin
    will prevent players from building......


    You want it as a plugin? WorldGaurd is your friend
     
  18. Online

    timtower Administrator Administrator Moderator

    Agree with you
     
  19. Offline

    45zeldafan

    He just doesn't understand because he has a small male gentials :p



    Original was a small dick :p
     
    timtower likes this.
  20. Online

    timtower Administrator Administrator Moderator

    I suggest that you edit your post... :p
     
  21. Offline

    45zeldafan

    small male gentials

    is that better? :)
     
    timtower likes this.
  22. Offline

    Alex3543

    [quote uid=90684934 name="nbkburns" post=1719766]i want it so only ops can break and place blocks and normal players cant break or place anything[/quote]



    <Edit by Moderator: Redacted mediafire url>

    You can mark it as "FILLED" now

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

    Wolf3141

    Nbkburns, take time to learn how plugins work and familiarize yourself with a decent amount of them (especially the top rated ones...) I'm not going to take any of your posts seriously until you do, the request forum is NOT "I'm lazy give me things that will do x", it is for intelligent requests that have been researched prior to the post. Thank you.
     
    timtower likes this.

Share This Page