@blablubbabc Look, it's alredy written in the config. I tried to access it with ConfigurationSection but when I do getCurrentPath() it returns...
@blablubbabc Found something: System.out.println("path = " + path); ConfigurationSection cs; try { cs =...
a: b: c: d1: e1: something1: x something2: y I have a ConfigurationSection with path to "a.b.c.d1". I...
If I have something like this players: player1: x player2: y player3: z and I want to check if for example player3 is in the children...
@Signatured In the ProjectileLauchEvent, I removed the entity because I dont want the arrow to be seen. The player shoots an alredy primed tnt
I've made a kit that is able to shoot TNTPrimed from his bow. The problem is that the TNT kills the players and don't give any credit to the...
@AdamQpzm @mine-care It's an interface. And I'm pretty sure it's not connected to what I'm trying to do. Just ignore this line if it matters.
@EventHandler public void onPlayerItemConsume(PlayerItemConsumeEvent event) { Player player = event.getPlayer();...
@ItsMattHogan thx @mythbusterma @KingFaris11 don't post your irrelevant thoughts.
To change the max hp - player.setMaxHealth(100); To update EXP bar - use events EntityRegainHealthEvent and EntityDamageEvent and do...
@EventHandler public void onProjectileLaunchDemo(ProjectileLaunchEvent event) { Projectile p = event.getEntity(); if (p...
solved myself, nvm :)
@nverdier No @mine-care @nverdier Never mind, it was a compiling problem. Solved
@mine-care public void onEnable() { getConfig().options().copyDefaults(true); saveConfig(); config =...
@EventHandler public void drinkSoup(PlayerInteractEvent event) { Player player = event.getPlayer(); if (player.getHealth() !=...
Hey, a pro programmar told me to it's more efficient to save data in internal memory (RAM) when it's unnecessary to save it at the config. So I...
Config: Explosion-Power: 5 Bounce-Blocks: true Explode-Multiple-TNT-Manually: true randomX: -0.5 + (%random% * ((0.5 - -0.5) + 1)) randomY: -0.5 +...
Look at the recursion FallingBlock falling = block.getWorld().spawnFallingBlock(block.getLocation(), block.getType(),...
I need to get the location which is exacly 1 block behind player, how to do it? It should also depend on the yaw, and I don't know how to do it
name: AdminChat main: il.mgmaor.adminchat.AdminChat version: 0.1 description: Broadcasts an message to all the operators and permitted players....
Separate names with a comma.