then how to execute method when server is shutting down? is it possible? EDIT by Moderator: merged posts, please use the edit button instead of...
no, world saving isnt the problem. for testing 'for' loop i added System.out.println("Test"); in loop but it dont execute it. it only says...
run method gets world and places blocks using 'for' loop: for(int i = 0; i <= 10; i++) { World world = getServer().getWorld("world");...
I added run method in my code public void onDisable() { run(); this.getLogger().info("is now Disabled!"); } but it don't execute it why?
thanks. but i don't think that its possible write text like that in .dat file
add this: int duration = 10; int amplifier = 10; PotionEffect effect = new PotionEffect(PotionEffectType.CONFUSION, duration, amplifier);...
I want to write array list to .dat file when server disables List<String> list = new ArrayList<String>(); public void onEnable() { //Create .dat...
thanks
Hello I want to select all obsidian blocks in the world and replace them with another block how to do this? is it possible?
thanks Why I'm Getting Error on this: Block attached = event.getBlock().getRelative(sign.getAttachedFace()); Why I'm Getting Error in Eclipse?...
Hi I want to Check if sign is Placed on Chest @EventHandler public void onSignPlace(SignChangeEvent e) { Player p = e.getPlayer();...
ok thanks
ok thanks but if ItemID is for example '8'? with that code String[] parts = this.getConfig().getString("ItemID").split(":"); // should be...
My Code: Inventory inv1 = Bukkit.getServer().createInventory(player, 54, "Inventory"); ItemStack item = new...
thanks it works
Like That? @EventHandler public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (!(sender instanceof...
I even changed my code to this @EventHandler public void inventoryclick(InventoryClickEvent e) { Bukkit.broadcastMessage("Inventory"); } but...
No it doesn't broadcast the message
My Code: Command: public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (!(sender instanceof...
Separate names with a comma.