Safe world edit

Discussion in 'Archived: Plugin Requests' started by RulingKyle1496, Oct 15, 2012.

?

Good idea

  1. yes :D

    66.7%
  2. no :(

    33.3%
  1. And how is this superfail? Its like anyones going to make this since your a idiotic little immature kid.
     
  2. Offline

    herpingdo

    Actually, I am considering making this. Also, learn to spell "immature".
     
  3. what ever toots your boats.
     
    zack6849 likes this.
  4. Offline

    RulingKyle1496

    Thanks
     
  5. Offline

    herpingdo

    Looking around a bit, I would definitely need to use the WorldEdit and WorldGuard APIs to do this. Whether you want it or not, I'm coding this and using it on my server. I think I just need to do something like this (Pseudocode obviously):
    (This is nowhere near real code!)
    Code:JAVA
    1.  
    2. onWorldEditCommand(Player player, whateverargs, whateverargs)
    3. {
    4. for (Block b :player.currentWESelection)
    5. {
    6. if (!worldGuard.canBuild(player, b.getLocation())
    7. {
    8. player.sendMessage("You cannot WorldEdit here!");
    9. CancelTehEvent();
    10. }
    11. }
    12. //Continue teh event
    13. }
     
  6. Offline

    Jade

  7. Offline

    herpingdo

  8. Offline

    Jade

    You're correct, I was wrong. I believe there are some plot/worldguard like plugins that allow you to allow players to use commands within certain regions. But wouldn't this make it pointless as they could just mine it and ruin the economy? (I'm assuming this is a Survival server. XD)
     
  9. Offline

    herpingdo

    Now, there's an interesting idea you just gave me. I should write a plugin that allows WorldEdit, but with blocks from the player's inventory...
     
  10. Offline

    np98765

    Now, there's an interesting idea that you just said. :p
     
  11. Offline

    RulingKyle1496

    World edit already has that feature in its config
     
  12. Offline

    Butkicker12

  13. Sorry i was giving a last farewell to this guy.
     
  14. Offline

    RulingKyle1496

Share This Page