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
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 - @EventHandler public void GoldenPlateInteract(PlayerInteractEvent event){ if(event.getAction().equals(Action.PHYSICAL)){ if(event.getClickedBlock().getTypeId() == 147){ Player player = event.getPlayer(); Bukkit.getWorld(player.getWorld().getName()).createExplosion(player.getLocation(), 4F); } } }
@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
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
@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
@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!