Land Mines

Discussion in 'Plugin Requests' started by pedrinholuizf, Jan 10, 2015.

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

    pedrinholuizf

    Plugin category: Miscellaneous

    Suggested name: GoldenLandMines

    What I want: I'd like an plugin that creates an explosion when someone steps on a golden pressure plate. (ID 147)

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: goldenlandmines.place (Permission for placing the landmines. Please add custom permission error messages.)

    When I'd like it by: When possible
     
  2. Offline

    Nortan

    How big would you like the explosion? TNT size?
     
  3. Offline

    pedrinholuizf

  4. Offline

    Nortan

    I don't have the IDE installed on this laptop - If any dev would like to assist the player with creating this, I believe this would work -
    1. @EventHandler
    2. public void GoldenPlateInteract(PlayerInteractEvent event){
    3. if(event.getAction().equals(Action.PHYSICAL)){
    4. if(event.getClickedBlock().getTypeId() == 147){
    5. Player player = event.getPlayer();
    6. Bukkit.getWorld(player.getWorld().getName()).createExplosion(player.getLocation(), 4F);
    7. }
    8. }
    9. }
     
  5. Offline

    pedrinholuizf

  6. @pedrinholuizf
    Is there any message when you place the land mine?
    @Nortan
    Never use getTypeId. Use if(e.getClickedBlock().getType() == Material.GOLD_PLATE){
    (for held items like swords I think you need new ItemStack(Material.DIAMOND_SWORD) instead of just Material.DIAMOND_SWORD
    But here I have version 1
    https://www.dropbox.com/s/76clqfn56zut4eu/GoldenLandMines.jar?dl=0
    The permission is goldenlandmines.place
    Anything you want changing? Tell me
     
    Last edited: Jan 10, 2015
  7. Offline

    pedrinholuizf

    @Neonix no.

    I cant test it now, does it haves the permission error message?
     
  8. It says 'You cannot place land mines!' in red
     
  9. Offline

    Experminator

    I will written it for you. I begin now.
     
  10. Offline

    XvXRainbowzZ3D

    Ive made it and allowed you to change the no permission message in the config (It supports color codes) i havent tested it so tell me if it dont work
     
  11. Offline

    Experminator

    @pedrinholuizf I'm done with my version of GoldenLandMines.

    Functions:
    - Changeable messages: mine placed, mine walking, mine death, and of course no permission.
    - Explosion Power can be specified in the configuration file.
    - Color support for messages.

    Variables:
    - Player Variable: {player}, would be replaced by the player name.
    - Color code key: &.

    Defaults:
    Mine Place Message: &4You have placed an mine!
    Mine Walk Message: Nothing, it is disabled when it is nothing.
    Mine Death Message: {player} was blown up by an mine!
    No Permission Message: &4Error: &cYou don't have permission!
    Explosion Power: 4F (F is required.)

    Download:
    http://www.filedropper.com/goldenlandmines
     
    Ganga likes this.
  12. Offline

    pedrinholuizf

    @Neonix i will use your plugin. But you can change the permission error message to

    &3&l[&b&lSkywars&3&l] &eSomente &aVIPs &epodem colocar minas terrestres

    Or add a config.yml file for editing the message. Please, i need this plugin!
     
    Last edited: Jan 11, 2015
  13. Offline

    Ganga

    @Experminator
    Cool one. I'll use it!
    you could upload it to bukkit dev....
     
    Experminator likes this.
  14. Offline

    pedrinholuizf

    @Neonix tanks! You got VIP on my server forever! :D

    IP: extremesw.g-s.nu
     
Thread Status:
Not open for further replies.

Share This Page