#help-development

1 messages · Page 1351 of 1

maiden briar
#

It is not the soluction

unreal quartz
#

try <ClassName>.class.getClassLoader().getResourceAsStream("file")), that works for me

maiden briar
#

Ok then

unreal quartz
#

I know when I tried it your way it didn’t work

maiden briar
#

Ok thanks

unreal quartz
#

I can’t quite tell you why though

spice hornet
proper notch
#

If you just do .class.getResourceAsStream("thing") it'll try get your/package/location/of/that/class/thing afaik

proper notch
maiden briar
#

Oh

#

But I don't know why it won't work

spice hornet
maiden briar
#

Nothing is working

#

Why doesn't java make this easier

spice hornet
#

that's the spirit

#

Where are you trying to get data from

#

What place

maiden briar
#

From a config

#

But the config won't be copied to the folder, the folder will be created

spice hornet
#

root folder/src/java/resources/config.cfg is accessible using this.getClass().getClassLoader().getResourceAsStream("config.cfg");

#

Or does that not work?

#

Java IO is shit very true

#

So you are trying to copy a file?

maiden briar
#

Yes

spice hornet
maiden briar
#

Ok thanks

bright jasper
#

Is there a problem with sending network data to each individual node like this

#
        plugin.getProxy().getServers().values().forEach(server -> {
            server.sendData(CHANNEL, out.toByteArray());
        });
#

The messages arent sent with player

#

So it directly throws the packets at the server I think

quaint mantle
#

I have a Written Book item stack, how can I hide that thing that says the book is made by etc etc

bright jasper
#

item.setItemMeta

cinder thistle
#

@ivory sleet fix?? it work?? pls help meh

bright jasper
#

🚶‍♂️

#

I mean

quaint mantle
#

No

#

it doesnt remove it

#

I have already a meta set up and everything

ivory sleet
bright jasper
#

You probably need to edit the NBT tag then

ivory sleet
#

at holidays house so takes a bit longer due to slow network

cinder thistle
quaint mantle
cinder thistle
#

$$

quaint mantle
#

what is the overworld world name within spigot, world? overworld? surface? can't remember which one

#

"world"

ivory sleet
#

Depends

bright jasper
quaint mantle
#

in a string

quaint mantle
#

yeah I needed it in string so thx

quaint mantle
bright jasper
#

NBT was def around in 1.12

maiden briar
#

java.nio.file.NoSuchFileException: src\test\resources\database.yml

Path copied = Paths.get("src/test/resources/" + configFile.getName());
Files.copy(copied, configFile.toPath());
bright jasper
#

Here

#

modifying nbt directly is an option but id recommend just shading this in

quaint mantle
#

Nevermind I'll just put a regular book instead

bright jasper
#

Alright

#

Yeah written books use NBT data so

quaint mantle
#

Or something that would look good for "Help"

#

HAHA a Compass

opal juniper
#

So, when a player loads into my server they previously had a resource pack on it will load it even though i did not tell the client to load it. is there a way to stop this?

oblique swan
#

hello, I wanted help, I want to verify my spigot account but I am not receiving the email on my gmail account please help.

quaint mantle
opal juniper
#

^^

oblique swan
#

no, I verified in discord, I am talking about this

cinder thistle
#

Resend Confirmation Email

#

check your spam folders, etc.

quaint mantle
#

@gmail.con ?

oblique swan
quaint mantle
#

Yea

oblique swan
quaint mantle
#

In the account settings or something like that

#

command /mapdone playername should take players name and save in the config and put value 1 in it, it indicates when a builder completes a map, if the player doesnt exist in the config it creates him in there, and puts 1 next to him like this "player:1", however it doesnt seem to work and I do not know why, here is my code

mortal cedar
#

So I'm sending many particles in the world asynchronous and then the server starts lagging extremely with only a few players online

quaint mantle
#

?paste

queen dragonBOT
mortal cedar
#

Does anyone have an idea what can i do agains that?

quaint mantle
#

here is my code

quaint mantle
mortal cedar
#

...

#

thats what im trying to do

#

and the server is good enough

quaint mantle
#

Apparently not

mortal cedar
#

the problem is not that the server gets slower

#

the problem is more that the players starts lagging

#

the tps is well

quaint mantle
#

Yea what I told you, increase specs/optimize plugins

mortal cedar
#

I told you I am trying to optimize my plugin

quaint mantle
#

Go for it then, I cant help you on that one

#

command /mapdone playername should take players name and save in the config and put value 1 in it, it indicates when a builder completes a map, if the player doesnt exist in the config it creates him in there, and puts 1 next to him like this "player:1", however it doesnt seem to work and I do not know why, here is my code

quaint mantle
patent spoke
#

I want to get 2 informations from all files in one folder. Right now I can specify one file and read the data but how can I do this with all files in the folder (files can be addet or changed by the time so I cant specify them in the code)

oblique swan
sacred phoenix
#

How can I get the distance a player has traveled in a tick

lost matrix
sacred phoenix
lost matrix
sacred phoenix
#

Either distance per tick or distance per second...

lost matrix
sacred phoenix
#

I just want to get the distance...

cloud berry
#

a plugin would b slow af

lost matrix
# sacred phoenix I just want to get the distance...

Ok this would be one example for stepping through the distance...:

public class DistanceStepper {

  private Location lastLocation;

  public DistanceStepper(final Location currentLocation) {
    this.lastLocation = currentLocation;
  }

  public double step(final Location nextLocation) {
    double distance = this.lastLocation.getWorld() == nextLocation.getWorld() ? this.lastLocation.distance(nextLocation) : 0;
    this.lastLocation = nextLocation;
    return distance;
  }

}

But the performance will be quite bad.

lost matrix
sacred phoenix
#

I am trying to get blocks per second without doing any hard a$$ math

lost matrix
sacred phoenix
#

I just need to display it to the user on a scoreboard or something

lost matrix
#

Also pretty bad performance

#

But it should be fine.

sacred phoenix
#

Ok just one thing to add is I need to multipy it by the server tps and depending on what we are going to try and travel hundreds of blocks per second so that could go down some...

lost matrix
sacred phoenix
#

As long as it is within 50 blocks per second of error its fine

sharp bough
#

what the function for time set ?

lost matrix
sharp bough
#

ah i forgot the world part

#

yea thanks

maiden briar
#

Why does this give me an empty config?

public void saveDefaultConfig()
    {
        if(!EindjeMinecraftPlugin.getInstance().getDataFolder().exists())
            EindjeMinecraftPlugin.getInstance().getDataFolder().mkdir();

        if(!configFile.exists())
        {
            try
            {
                configFile.createNewFile();

                try(InputStream is = EindjeMinecraftPlugin.getInstance().getResourceAsStream(configFile.getAbsolutePath());
                    OutputStream os = new FileOutputStream(configFile))
                {
                    ByteStreams.copy(is, os);
                }
            }
            catch(IOException e)
            {
                e.printStackTrace();
            }
        }

        try
        {
            this.config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(configFile);
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
    }```
lost matrix
maiden briar
#

I mean Bungee

wispy monolith
#

Hi I have a problem

whole prism
#

guys

#

do we have any plugin for fake player?

#

its show on online player like real

#

?

lost matrix
wispy monolith
#

I'm making a plugin that have multiple commands but it doesn't work and it just show the /<command> in chat

carmine ivy
#

Really struggling on trying to find out how to teleport players to different worlds like the multiverse plugin but without it. Idk if its possible or not

carmine ivy
#

Teach me

#

Well tell me

wispy monolith
#

ok]

lost matrix
lost matrix
wispy monolith
lost matrix
# carmine ivy Thanks a lot
  public void tpPlayerToWorld(Player player, String worldName) {
    World world = Bukkit.getWorld(worldName);
    if (world == null) {
      return;
    }
    player.teleport(world.getSpawnLocation());
  }
wispy monolith
#

and then make the command to teleport them there

carmine ivy
#

Does that only work with the nether and end or any world file i put in the server file

lost matrix
carmine ivy
#

Do I have to do anything to load other world files to the server

carmine ivy
#

What

wispy monolith
lost matrix
wispy monolith
# lost matrix Show some code
if (args.length >= 3) {
                if (args[1] == "+") {
                    double sum = Double.parseDouble(args[0]+args[2]);
                    player.sendMessage(ChatColor.GREEN + "The result is: " + sum);
                }
            }else {
                player.sendMessage(ChatColor.RED + "Wrong Use. type /cal-help");
                return true;
            }
lost matrix
wispy monolith
#

yeah that is the code

#

the one that I have

young knoll
#

Where is the rest

wispy monolith
#
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (!(sender instanceof Player)){ return true; }
        Player player = (Player) sender;

        // /sign
        if (cmd.getName().equalsIgnoreCase("calculate")) {
            if (args.length >= 3) {
                if (args[1] == "+") {
                    double sum = Double.parseDouble(args[0]+args[2]);
                    player.sendMessage(ChatColor.GREEN + "The result is: " + sum);
                }
            }else {
                player.sendMessage(ChatColor.RED + "Wrong Use. type /cal-help");
                return true;
            }
        }
        return true;
    }
lost matrix
#

Oh you posted the code...

lost matrix
wispy monolith
#

ok

young knoll
#

It does if you don’t have 1 executor per command

lost matrix
#

Sure. But i figured by now that nobody does that anyways.

lost matrix
# wispy monolith then

Done. if you properly registered your command then you will see at least some message.

wispy monolith
#

still nothing

lost matrix
wispy monolith
#

it just show the message that he used less args than what he should use

#

in chat

lost matrix
#

So you see "Wrong Use. type /cal-help"

wispy monolith
#

yes

#

but if i use 3 or more args it show nothing

#
commands:
  calculate:
    description: Help you calculate without leaving minecraft
    usage: /<command>
    aliases: cal
lost matrix
lost matrix
#

Oh i see. You are comparing a String with ==
Thats a no-go
Always use .equals() for Objects

wispy monolith
#

ok

lost matrix
#

if args[1].equals("+")

wispy monolith
#

Working

lost matrix
weary geyser
#

lmfao

weary geyser
wispy monolith
wispy monolith
#

I was just doing it fast to check if it's working

#

and then I will fix it

weary geyser
#

uh

quaint mantle
#

@carmine ivy Less gooooo

weary geyser
#

Dababy 🥵

quaint mantle
#

Thats not dababy thats my baby

weary geyser
#

sheesh 💯

rugged topaz
#

does anyone have experience with using teams in scoreboards? apparently to fix that the Citizens NPCs don't have healthbars under their name, i'd need to use teams with the creation of the healthbar

Objective health = score.getObjective("showhealth") == null ? score.registerNewObjective("showhealth", "health") : score.getObjective("showhealth");
if (health.getDisplaySlot() != DisplaySlot.BELOW_NAME)
   health.setDisplaySlot(DisplaySlot.BELOW_NAME);
health.setDisplayName(replaceChatColors("&c❤"));
p.setScoreboard(score);```
carmine ivy
#

I managed to do the teleportation

#
new WorldCreator("testWorld").environment(World.Environment.NORMAL).createWorld();
p.teleport(Bukkit.getWorld("testWorld").getSpawnLocation());
#

Gonna use a gui to teleport instead of a tab command

wide galleon
#

is there something like event.getClickedInventory().getTitle()?

lost matrix
wide galleon
lost matrix
wide galleon
#

ohh

#

I imported it and it still doesnt work

young knoll
#

event.getView.getTitle

wide galleon
#

Ohh tysm

formal ferry
#

Why do chat colours reset on a different line? For example:

p.sendMessage(new TextComponent("§eHey! /* New Line Here */ Goodbye!"))
``` Chat colours would reset after the Hey! so "Goodbye" would be plain.
severe night
#

does anyone know why this is happening?

#

The warn message is: Invalid plugin configuration: annotationProcessorPaths

unreal quartz
opal juniper
#

could you send a hastebin? its impossible to read

#

@severe night

cinder thistle
severe night
#

ok

#

i will send

cinder thistle
#

looks like darkest dark but bad

severe night
#

@opal juniper

severe night
cinder thistle
#

huh

#

o

#

good god that is why I use gradle

severe night
#

uhuhuh

#

i bought this mac yesterday and am still migrating my stuff. I haven't installed the theme I like yet

cinder thistle
#

oof

#

update to big sur

quaint mantle
#

how do you create a new instance of the location class???

unreal quartz
#

new Location(...)?

quaint mantle
#

thats the issue

#

it throws an error

unreal quartz
#

either world, x, y, z or x, y, z, world

#

?jd

quaint mantle
#

wait nvm I spelt it wrong

#

ouch embarrassing

severe night
faint snow
lost matrix
lost matrix
ivory sleet
#

@cinder thistle are you fucking using lombok

#

good

#

atrocious

cinder thistle
#

yes

#

lombok is poggers

ivory sleet
#

god no

cinder thistle
#

yes

ivory sleet
#

ima de lombok right away

cinder thistle
#

@jade perch

jade perch
#

whut

#

you

#

want

cinder thistle
#

lombok copypasta

#

now

ivory sleet
#

okay creeper

jade perch
ivory sleet
#

either lombok

#

or me

#

😄

#

but anyways

cinder thistle
#

you

ivory sleet
#

heretere

#

you can help him

cinder thistle
#

I can always add lombok back later

ivory sleet
#

ok thanks

jade perch
#

I have given up on this channel

#

I only come here when there is an @

ivory sleet
#

lmao

cinder thistle
#

lol

lost matrix
ivory sleet
#

@cinder thistle I cant delombok

#

so u gotta do it for me

cinder thistle
#

wdym

lost matrix
cinder thistle
#

^

ivory sleet
#

can u push delombok

cinder thistle
#

yeah

#

tfw you delombok the wrong project

#

good god oxide dies when I open it

#

opens every folder

#

@ivory sleet done

languid bloom
#

Spigot 1.7.10

[17:17:25] [Server thread/ERROR]: Could not load 'plugins\LZPlMaven.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:188) ~[JavaPluginLoader.class:1.7.10-1614.58]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [SimplePluginManager.class:1.7.10-1614.58]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:343) [CraftServer.class:1.7.10-1614.58]
    at net.minecraft.world.storage.SaveHandler.initBukkitData(SaveHandler.java:462) [ayq.class:?]
    at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:138) [ayq.class:?]
    at net.minecraft.world.World.<init>(World.java:374) [ahb.class:?]
    at net.minecraft.world.WorldServer.<init>(WorldServer.java:162) [mt.class:?]
    at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:375) [MinecraftServer.class:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:337) [lt.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:643) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_281]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 11 more
arctic summit
#

when detecting if a bed is broken at a certain position, do i check for the upper or lower bed block

lost matrix
cinder thistle
#

update spigot

arctic summit
#

oh thats true

cinder thistle
#

use a legal version

arctic summit
#

just was wondering @lost matrix ty

lost matrix
arctic summit
#

does anyone have a list of listeners that spigot has?

faint snow
#

i dont changet it byteOutput.writeUTF(servername); ....

lost matrix
faint snow
lost matrix
faint snow
cinder thistle
#

just post it here

#

?paste

queen dragonBOT
cinder thistle
#

@ivory sleet ping me when you're done

#

actually don't I'll see the PR

lost matrix
faint snow
#

okay

digital plinth
#

diffx and ticks are two ints

#

math.floor make round doubles down right?

lost matrix
digital plinth
#

okay

lost matrix
# faint snow okay

Your LobbyCommand is just broken... You didnt even implement the CommandExecutor methods

cinder thistle
#

what the fucking hell

#

that is a very scary block of code

languid bloom
cinder thistle
#

is that really what you named your main class

#

mainClass

severe night
#

@cinder thistle this theme is better

cinder thistle
#

iq 100

cinder thistle
#

devstyle pog

severe night
#

hehehhee

cinder thistle
#

the only good dark eclipse theme

severe night
#

yep

cinder thistle
#

I liked those random facts on startup

#

but the gradle support was super ass in eclipse

cinder thistle
#

Okay so I'm using generics in this class: DataProcessor<T>
I have this variable: private T value;

#

I want to check if the value is null/undefined

#

However, it could be a plethora of types, including a boxed boolean, which doesn't support null iirc

#

How would I go about this?

sullen dome
#

would Collections.shuffle(list); fail when some values between it are empty?
like for example if there's no 3. value, but a 4. etc?

cinder thistle
#

don't think so

#

why would it

sullen dome
#
    matList.addAll(Arrays.asList(Material.values()));
    for (int i = 0; i <= matList.size(); i++) {
        if (!matList.get(i).isItem())
            matList.remove(i);
    }
    Collections.shuffle(matList);

idk what it does in this case

#

i mean... it will remove specific entries... when shuffling, would it re-arrange the empty values?

cinder thistle
#

let's see

#

it doesn't appear to remove any empty values

#

just rearrange them

sullen dome
#

i want it to get smaller in this case, because empty values wouldn't be good

cinder thistle
#

remove them beforehand

sullen dome
#

yeah, i wonder why i do this crap xd

cinder thistle
#

lol

sullen dome
#
for(Material mat : Material.values()){
                if(mat.isItem())
                    matList.add(mat);
            }
            Collections.shuffle(matList);```
tho i can just do this lol
#

why so compilcated xd

cinder thistle
#

javafor

sullen dome
#

yeah it was weird

cinder thistle
#

I mean yeah if it's not an item it won't be added

sullen dome
#

well wait a sec

cinder thistle
#

pretty sure empty values wouldn't be items so I think you're good

#

I would leave a comment as a reminder tho

sullen dome
#

does addItem() include blocks?

#

additem wtf

#

i mean isitem

cinder thistle
#

#isBlock() is a method so idk

#

?jd

sullen dome
#

i wanna just exclude stuff like wall signs ahhh

cinder thistle
#

by that logic everything would be an item

#

so I'd assume blocks aren't counted

sullen dome
#

i want all stuff in that list that is droppable

#

because wall signs drop me errors

#

or potted stuff

cinder thistle
#

droppable as in affected by gravity?

sullen dome
#

idk, i just want to drop the items, so i can't have wall signs etc in that list

cinder thistle
#

konfuzion

sullen dome
#

and for obvious reasons i dont want to go throu all materials manually

#

that's the only thing what it says... idk if it includes blocks

#

well, i guess i will print out the list values to see

near kayak
#

just wondering does anyone here know about custom model data because I am trying to make a texture pack with models and textures and omg I can't do anything lol

#

It is my first time though

cinder thistle
#

what are you having issues w/

cinder thistle
#

that page has just about everything that you need to know for custom model data

sullen dome
#

what is xmaterial

cinder thistle
#

@ivory sleet do the sped

#

a very nice utility

acoustic tapir
#

hello can anyone help me, i won't get this bug fixed

cinder thistle
#

show the code

lost matrix
# near kayak It is my first time though

stick.json

{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "minecraft:item/stick"
  },
  "overrides": [
    {
      "model": "minecraft:item/stick/1000",
      "predicate": {
        "custom_model_data": 1000
      }
    },
    {
      "model": "minecraft:item/stick/1001",
      "predicate": {
        "custom_model_data": 1001
      }
    },
    ... and so on

Then you just need to add the models in the target folder.
For my generated ones it starts with ../assets/minecraft/models/item/stick/1000.json

But there are probably a lot of tutorials for that.

cinder thistle
#

something on line 48 is null

sullen dome
#

yeah

cinder thistle
near kayak
#

1 sec

cinder thistle
#

that sounds sooo useful

near kayak
#

imma send it

acoustic tapir
cinder thistle
#

now I feel like an idiot

sullen dome
#

added it to plugin.yml?

cinder thistle
#

did you register /timer in plugin.yml

acoustic tapir
cinder thistle
#

if you didn't getCommand will return null iirc

#

show it

sullen dome
#

interesting

sullen dome
acoustic tapir
cinder thistle
#

lmao yeah

acoustic tapir
sullen dome
#

we need your plugin.yml

acoustic tapir
#

name: challenge
author: Nickssoo
version: 1.0
main: de.nickssoo.test.main.Main
commands:
antiheal:
timer:

sullen dome
#

timer 2 to the left

#

on the same lenght as antiheal

cinder thistle
#

^

acoustic tapir
sullen dome
#
author: Nickssoo
version: 1.0
main: de.nickssoo.test.main.Main
commands:
  antiheal:
  timer:```
#

yeah sure

near kayak
#

{ "parent": "minecraft:item/handheld", "textures": { "layer0": "minecraft:item/diamond_sword" }, "overrides": [ { "model": "minecraft:item/diamond_sword/1", "predicate": { "custom_model_data": 1 } }, { "model": "minecraft:item/diamond_sword/2", "predicate": { "custom_model_data": 2 } },

cinder thistle
#

```json
stuff
```

sullen dome
#

lol

cinder thistle
#

use it

sullen dome
#

well

#
            System.out.println("" + Randomizer.matList.get(i));
        }```
let's enjoy console lmao
cinder thistle
#

lol

lost matrix
sullen dome
#

then we'll see what it includes

lost matrix
#
    ItemStack dwarfCanon = new ItemBuilder(Model.DWARF_CANON.getItem())
        .name("§eDwarven Canon")
        .lore("")
        .lore("Some Infos")
        .build();
cinder thistle
#

oh my god.

lost matrix
#

I can also just upload skins to my resource pack and can use them ingame

cinder thistle
#

that looks so useful

#

open source it or else

#

it's not hard to recreate but that's work

#

half the point of open source is to be less work for everybody

ivory sleet
lost matrix
#

Ill think about it 😛
But there are some dependencies on external websites (for example i get my base mc resources from InventiveTalents website)

acoustic tapir
#

if you have the code or a website on it, like I can have hh: mm: ss on my timer at the bottom of the scoreboard, hours: minutes: seconds

cinder thistle
#

ah

acoustic tapir
cinder thistle
#

that sentence makes no sense

acoustic tapir
#

why i want to set the scoreboard so that it shows my hours, minutes and seconds

#

and I need help with that

cinder thistle
#

what have you tried

sullen dome
#

java.lang.IndexOutOfBoundsException: Index 976 out of bounds for length 976
what?

#

where's the logic

acoustic tapir
#

public String shortInteger(int duration) {
String string = "";
int hours = 0;
int minutes = 0;
int seconds = 0;
if (duration / 60 / 60 / 24 >= 1) {
duration -= duration / 60 / 60 / 24 * 60 * 60 * 24;
}
if (duration / 60 / 60 >= 1) {
hours = duration / 60 / 60;
duration -= duration / 60 / 60 * 60 * 60;
}
if (duration / 60 >= 1) {
minutes = duration / 60;
duration -= duration / 60 * 60;
}
if (duration >= 1)
seconds = duration;
if (hours <= 9) {
string = String.valueOf(string) + "0" + hours + ":";
} else {
string = String.valueOf(string) + hours + ":";
}
if (minutes <= 9) {
string = String.valueOf(string) + "0" + minutes + ":";
} else {
string = String.valueOf(string) + minutes + ":";
}
if (seconds <= 9) {
string = String.valueOf(string) + "0" + seconds;
} else {
string = String.valueOf(string) + seconds;
}
return string;
}

sullen dome
#

god

#

for so much code, please use paste's

#

?paste

queen dragonBOT
acoustic tapir
#

Is that correct ? if so, where do I have to do this with me

sullen dome
#

can't read it like that lol

acoustic tapir
#

wait

sullen dome
#

or just use ```this

acoustic tapir
sullen dome
#

what do you want to do there actually?

#

just make an upcounting timer?

sullen dome
#

ah dude, hate that starts-with-0-thing

cinder thistle
#

i love it

#

1-indexed is ass

sullen dome
#

dude

cinder thistle
#

the last value in an array with a length of 976 would be index 975

#

very nice

sullen dome
#

you doesnt start counting with 0...

acoustic tapir
#

i want the timer to look like this rather than 23434 seconds but 01:44:22

sullen dome
#

lemme send you code lol

acoustic tapir
sullen dome
#
   public static String convertedTime(int time) {
        int hours = time / 3600;
        int minutes = time % 3600 / 60;
        int seconds = time % 60;
        return String.format("§b%02d§7:§b%02d§7:§b%02d", hours, minutes, seconds);
    }```
guess this is what you want?
#

where time is the current time in seconds

acoustic tapir
#

how does it look in the game?

sullen dome
#

hours:minutes:seconds

acoustic tapir
#

yes

sullen dome
#

in the actionbar

acoustic tapir
#

true

sullen dome
#

?paste

queen dragonBOT
acoustic tapir
#

that's how I want it

sullen dome
#

that's what i used in my old plugin, maybe it helps

acoustic tapir
sullen dome
#

why tho? you just have to use my convertedTime() instead of your old

cinder thistle
#

oh god you're talkin about that

sullen dome
#

yeah you see now

sullen dome
#

its really really old

#

like about 1,5 years

#

where i made that, i didnt even know that constructors exist lol

acoustic tapir
#

I have to be completely honest I don't know where to put this in

sullen dome
#

where do you send your timer to the actionbar?

#

or whereever you send it

acoustic tapir
sullen dome
#

kinda feel like you are making a challenge plugin lol

#

player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(ChatColor.GOLD.toString() + ChatColor.BOLD + getTime()));

#

replace getTime() with the one i sent

acoustic tapir
#

ok thx

sullen dome
#

sure

#

Kinda feel good, as i'm not the only german one here

#

only thing i hate is, i feel like everyone still speaks better english lol

near kayak
#

finally made the texture pack using this

acoustic tapir
#

wtf du bist deutsch

near kayak
#

`{
"parent": "item/generated",
"textures": {
"layer0": "item/diamond_sword"
},

    "display": {
        "thirdperson_righthand": {
            "rotation": [0, 90, 42],
            "translation": [0, 2.75, 0.75],
            "scale": [0.9, 0.9, 0.9]
        },
        "thirdperson_lefthand": {
            "rotation": [90, -90, 42],
            "translation": [0, 2.75, 0.75],
            "scale": [0.9, 0.9, 0.9]
        },
        "firstperson_righthand": {
            "rotation": [0, 90, 25],
            "translation": [1.13, 3.5, 1.13],
            "scale": [1, 1, 1]
        },
        "firstperson_lefthand": {
            "rotation": [0, -90, -25],
            "translation": [1.13, 3.2, 1.13],
            "scale": [1, 1, 1]
        },
        "ground": {
            "rotation": [180, 0, -90]
        }
    },



"overrides": [
{"predicate": {"custom_model_data":1}, "model": "item/custom/tpstaff"},
{"predicate": {"custom_model_data":2}, "model": "item/custom/frezestaff"}

]

}`

sullen dome
#

in der tat

acoustic tapir
#

komm mal bitte in den talk

sullen dome
#

mom

near kayak
#

that much

#

lol

#

does anyone have like a force resource pack code or something

cinder thistle
queen dragonBOT
near kayak
#

i fixed it

cinder thistle
#

ty

#

no you didn't

near kayak
#

wym

cinder thistle
#

this is hard af to read

#

so use one of those two options so we can read it

near kayak
south onyx
#

how do i check if a player hits player who is holding shield

cinder thistle
#

good god

cinder thistle
#

check if their hand or offhand is a shield

near kayak
#

particles

quaint mantle
#

whats the java statement for

in: 7
current: 6
max: 10

get the new current and leftovers
cinder thistle
#

modulo?

#

or u talking about Ints#constrainToRange(int, int, int) from apache

quaint mantle
#

so new current would be 10, and the leftovers would be 3

cinder thistle
#

that makes no sense

quaint mantle
#

sigh

#

aight, monke logic time

cinder thistle
#

your logic is stupid

paper viper
#

lol

quaint mantle
#

Monkey A has 2 bananas
Monkey A can only hold 5 bananas

Monkey B wants to give Monkey A 10 bananas

Monkey A takes 3 bananas and gives back 7

paper viper
#

bruh thats simple logic

#

lol

#

you take how many bananas A has currently

cinder thistle
#

wdym java statement

paper viper
#

add it to how much B is going to give to A

cinder thistle
#

you'd have to do that manually

paper viper
#

then take that to the modulo

#

yea

quaint mantle
#

explain the fucking modulo

cinder thistle
#

you'd have to do subtraction and stuffz

quaint mantle
#

babyfeed me i have no clue how it works

cinder thistle
#

feed u dat pus

quaint mantle
#

because i dont feel like writing clunk code when i dont have to

cinder thistle
#

lol

paper viper
#

not modulo actually, just subtraction

quaint mantle
#
ma = 3
mb = 10

new, leftovers = (mb - ma + ma), (mb-ma)
#

fix

#

thats it i think

#

wait

#

fuck

cinder thistle
#
Monkey a = new Monkey(2, 5);
Monkey b = new Monkey(69);

int leftovers = b.giveBananas(a, 10);

...
int giveBananas(Monkey monkey, int amount) {
  if (amount + monkey.getBananas() > monkey.getMaxBananas()) {
    monkey.setBananas(monkey.getMaxBananas());
    return amount - monkey.getMaxBananas();
  } else {
    monkey.addBananas(amount);
    return 0;
  }
}
quaint mantle
#

you have to take away from monkey b

cinder thistle
#

well yes but

#

you get it

quaint mantle
#

bro

#

if i wanted that function i wouldve made it

cinder thistle
#

oh shit that's recursion hold on

paper viper
#

lmao

cinder thistle
#

fixed

cinder thistle
#

you have to do it yourself

quaint mantle
#

@paper viper how do i do this

#

this is so simple but im braindead

paper viper
#

im in class rn

#

if i were to code this it would take me like 2 minutes

#

lmfao

quaint mantle
#

disculpe

cinder thistle
#

anyways

#

this would look a lot nicer if ExampleDataHolder was in a seperate class

#

I don't want it to be in a separate class

#

but I also don't want an ugly ass import

quaint mantle
#
class A extends B {

}

class B extends A {

}
cinder thistle
#

nonono

cinder thistle
carmine ivy
#

How do i disable compass teleport minecraft

cinder thistle
#

compass teleport?

carmine ivy
#

Yeah everytime i use it it teleports me

#

And I don't like it

quaint mantle
#

its in the worldedit config

carmine ivy
#

Ah ok

#

Thanks

#

Its not there thi

#

though*

cinder thistle
#

this is ugly

abstract relic
#

what

#

plural words in package names is ugly yea

#

but structured code?

#

especially when your project gets bigger its so nice

near kayak
#

bruh I had 1 comma in the wrong place and it was enough to ruin my code

#

it took me 3 hours to realize

abstract relic
#

wouldnt ur compiler yell at you

near kayak
#

in the editor

#

It was a texture json file

#

so yea

#

-_-

abstract relic
#

OH

#

look

#

mine yells at me

near kayak
abstract relic
#

also if you look at minecraft log while reloading resource pack it shows you what is wrong. with it 🙂

near kayak
#

interesting

near kayak
#

thx for the info though

abstract relic
#

lol

near kayak
#

ok it seems like problems are forever

#

so I have this

#

first two run mwa

#

the wooden sword though

#

the texture won't work

humble stirrup
#

that indentation tho

near kayak
#

also this is the sword

#

and this is the texture

#

and Im like

carmine ivy
#

Pog texture

near kayak
#

im running tests

#

rn

#

so I don't have something good

#

bc I am not gonna spend 5 hours on blender rn

#

ok

#

?

#

anyways so what is the problem

#

maybe bc I have the name wooden_sword

#

and it is the minecraft name

#

or something

near kayak
rugged topaz
#

i'm pretty sure this is spigot related

near kayak
#

or just download a scoreboard plugin

#

that supports citizens

rugged topaz
#

and use it?

near kayak
rugged topaz
near kayak
rugged topaz
#

thus i'd prefer help with the code

#

then to use someone else's plugin

near kayak
#

OMG I FIXED IT

#

finally

near kayak
outer crane
#

for the love of god please format your code

young knoll
#

What

outer crane
#

```java
code here
```

young knoll
#

Do you have a method inside a constructor inside a method

outer crane
#

also that

abstract relic
#

it'll tell u whats wrong with it**

#

you do

outer crane
#

i mean

#

you do

abstract relic
#

he has a method in a constructor in a method

#

learn java

outer crane
#

^

#

dont start with plugins

young knoll
abstract relic
#

i cba to help you with basic java stuff, basic programming stuff for that matter

quaint mantle
#

It's fun and interactive, I'm pretty sure.

young knoll
#

I never liked CA

#

But it's up to you, there are hundreds of resources you can use

quaint mantle
#

I took it a couple weeks ago to see if it would be good for beginners and its perfect. Very interactive and will keep people wanting to learn java to stay for some beginning level java

narrow furnace
#

ca is not great in my experience

main dew
#

How I can add ProtocolLib to Maven?

young knoll
#

Check the readme

near kayak
#

is there a like a wiki for 3d textures and models bc im ok with the like 2d ones but 3d textures wont load anyone that is willing for me to dm him my texture pack and yea tell me what is wrong with it

south onyx
#

how do i check if axe is fully loaded

near kayak
#

oh

#

just let it be

#

or calculate the time

south onyx
#

hmm

#

ok

#

but

#

then

#

how do i check if an axe is like at its lowest point

#

on the screen

#

so i can check the time to see how long it takes to get loaded

near kayak
quaint mantle
#

Does anyone know how I can modify the data of a jigsaw block in spigot without using raw data? Please ping me on response.

mortal cedar
#

So I just tried to make an easy invsee command in 1.16.1 by opening a player inventory to another one.
And then this happened: https://imgur.com/a/mZV8RQ8

oak mica
#

How do you launch a block into the air and make it fall back down?

mortal cedar
#

Does anyone know what happened there?

main dew
#

How I can add ProtocolLib to Maven (I want version 3.6 it is important)

mortal cedar
#
<repositories>
  <repository>
    <id>dmulloy2-repo</id>
    <url>https://repo.dmulloy2.net/repository/public/</url>
  </repository>
  <!-- And so on -->
</repositories>


<dependencies>
  <dependency>
    <groupId>com.comphenix.protocol</groupId>
    <artifactId>ProtocolLib</artifactId>
    <version>3.6.0</version>
  </dependency>
  <!-- And so on -->
</dependencies>
#

Just changed the version

south onyx
#

how do i get a radius around a player, and loop through all the x-y-z locations in that radius and add them to a list?

main dew
#

@mortal cedar ;/

mortal cedar
#

idk how I said I just changed the version

#

Else you could just import the jar

main dew
#

How?

candid galleon
#

@oak mica falling block

mortal cedar
#

File -> Project Structure -> Libraries

main dew
#

but as Maven

candid galleon
#

it looks like 3.6.4 and 3.6.5 are both hosted

#

but i see no 3.6.0

#

if for some reason you really need specifically 3.6.0, you can download it manually and insert it into your .m2 dependencies

#

but i'd recommend just updating the protocol version, or programming with different versions in mind

main dew
candid galleon
#

cool

#

so just use 3.6.5 instead of 3.6.0 then

mortal cedar
candid galleon
#

gotcha

#

you might have to set the URL to https://repo.comphenix.net/content/repositories/releases also

main dew
#

I don't understand

#

sorry but normal I don't work on Maven

candid galleon
#
<repositories>
  <repository>
    <id>dmulloy2-repo</id>
    <url>https://repo.dmulloy2.net/repository/public/</url>
  </repository>
  <!-- And so on -->
</repositories>
#

replace the url between <url></url> with the new url that i sent

south onyx
#

how do i get a radius around a player, and loop through all the x-y-z locations in that radius and add them to a list?

candid galleon
#

are you looking for entities, blocks, etc.?

#

there are infinite locations in that radius

main dew
#

@candid galleon what I make bad?

candid galleon
#

<version>3.6.0-SNAPSHOT</version>

#

replace that with 3.6.5

main dew
candid galleon
#

remove the -SNAPSHOT

main dew
#

see 2 screen

sullen dome
#

it should be 1.8-R0.1 iirc

#

nope--- it's the whole

candid galleon
#

we're talking about ProtocolLib, not spigot

sullen dome
#

ah i see, forget about it lol

final fog
#

Should I cast an OfflinePlayer as a player? Or should I do something else.

candid galleon
#

OfflinePlayer#getPlayer

final fog
#

Casting it gives me an error

#

oh

candid galleon
#

@main dew try changing the <id> to comphenix

#

you should also probbaly separate your dependencies / repositories more

candid galleon
#

and again the URL for the repo should be https://repo.comphenix.net/content/repositories/public

#

you currently have it https://repo.comphenix.net/content/repositories/releases

#

i sent the wrong URL in the first one my bad

main dew
#

someone effect ;/

candid galleon
#

hm

#

try changing the id back to the original?

#

if that doesn't work idk

cinder thistle
#

I want it to be built-in

#

although ig you could just move it to a seperate file anyways

oak mica
#

Since I am not summoning the block

candid galleon
#

why can't you?

oak mica
#

I am using blocks around the player

candid galleon
#

yeah?

#

you can't break the blocks around the player and summon fallingblocks at the same time?

oak mica
#

i could maybe

#

ok, thanks

rugged topaz
#
Enderman enderman = (Enderman) p.getWorld().spawnEntity(p.getLocation().add(randomX, randomY, randomZ), EntityType.ENDERMAN);
enderman.setMaxHealth(2000);
enderman.setHealth(2000);
enderman.setCarriedMaterial(new MaterialData(Material.ENDER_PORTAL_FRAME));
enderman.getEquipment().setItemInHandDropChance(0);```
shouldn't `setItemInHandDropChance` work for this instance? or i guess not because that qualifies the exact item drop chance, but any help?
candid galleon
#

Does it not?

#

@rugged topaz

rugged topaz
#

no

sullen marlin
#

I think enderman carried material is different from item in hand

rugged topaz
#

iteminhand doesn't work for endermen

young knoll
#

setCarriedBlock

#

I believe the drop is always 100%

rugged topaz
#

enderman.setCarriedMaterial and enderman.setCarriedBlock would then have the same achievement

#

since both work, i just need to set the drop rate to 0% though

young knoll
#

Try EntityDeathEvent with getDrops

#

IIRC it's a mutable list

rugged topaz
#

ah

#

i'm pretty sure i can also,

e.getDrops().clear();
e.getDrops().add(new ItemStack(Material.LEATHER, 32));

on the enderman

#

lemme see

#

nope, just gotta listen for an enderman

#

thank u

#
        if (e.getEntity() instanceof Enderman) {
            for (int i = 0; i < e.getDrops().size(); i++) {
                if (e.getDrops().get(i).getType() == Material.ENDER_PORTAL_FRAME) {
                    e.getDrops().remove(i);
                }
            }
        }

look right?

arctic summit
#

how do i set a players gamemode once they respawn? i tried PlayerDeathEvent but it doesnt have any properties for that

#

should i try PlayerRespawnEvent

young knoll
#

Yes

#

And a 1 tick delay

arctic summit
#

ok ty

#

i wouldve forgot abt the delay but it makes sense

rugged topaz
#

@young knoll help me out w thatt^

young knoll
#

I'm not sure why it has that warning

#

But it's not an error

rugged topaz
#

ig we'll see

#

is there a way to cancel a playerdeathevent?

sacred phoenix
#

@lost matrix earlier you gave me this to measure blocks per second java public double getCurrentVelocity(final Player player) { return player.getVelocity().length(); } We are going faster then this is able to pick up.....

young knoll
#

No

#

You have to cancel the damage event instead

#

You can't go faster than it can pick up, it returns your velocity

#

If you are moving you should have a velocity

rugged topaz
sacred phoenix
#

ok

lost matrix
#

If you are still going too fast then you need to do some really expensive maths.
The problem could be an overflowing double in the equation of calculating the distance between two points.
sqrt(dx^2 + dy^2 + dz^2)
You can imagine that the overflow might happen because of all the squaring.
Pretty unlikely that you hit that limit but if you do you need to wrap the values in a BigDecimal and calculate the distance by hand.
And that is really slow. @sacred phoenix

rugged topaz
#

o okay

#
    public void die(Player p) {
        String cause;
        String causeSelf;
        EntityDamageEvent damageCause = p.getLastDamageCause();
        if (p.getLocation().getY() <= 0)
            p.setLastDamageCause(new EntityDamageEvent(p, EntityDamageEvent.DamageCause.VOID, 1));
        switch (damageCause.getCause()) {
            case VOID:
                cause = "fell into the void.";
                causeSelf = "fell into the void.";
                break;
            case FALL:
                cause = "fell to their death.";
                causeSelf = "fell to your death.";
                break;
            default:
                cause = "died.";
                causeSelf = "died.";
                break;
        }

this don't seem to b workin, it constantly calls a void death fr some reason

lost matrix
young knoll
#

I imagine the setDamageCause may reflect in the variable you have

rugged topaz
#

got rid of it, that didn't fix my issue

young knoll
#

Where are you calling the code from

lost matrix
rugged topaz
#

the two callers

    @EventHandler
    public void onPlayerMove(PlayerMoveEvent e) {
        if (e.getTo().getY() <= 0) {
            die(e.getPlayer());
        }
    }

    @EventHandler
    public void onPlayerDamage(EntityDamageEvent e) {
        if (e.getEntity() instanceof Player) {
            Player p = (Player) e.getEntity();
            if (p.getHealth() - e.getFinalDamage() <= 0) {
                e.setCancelled(true);
                die(p);
            }
        }
    }
lost matrix
young knoll
#

I imagine it is for customizing the message

rugged topaz
#

^

young knoll
#

However the death event has event.setDeathMessage

lost matrix
#

This can be done in the death event.

rugged topaz
#

and teleporting the player to spawn

#

without the respawn menu

young knoll
#

gamerule doImmediateRespawn true

#

Or player.spigot.respawn

rugged topaz
#

it also checks for certain items inside the player's inventory

#

for effects blah blah

lost matrix
rugged topaz
#

dot dot dot btw

#

the difference in the format is negligible

somber hull
lost matrix
rugged topaz
#

calling the playerdeathevent rn and we'll see

lost matrix
somber hull
lost matrix
somber hull
#

But i want it to check every 30 seconds not print every 30 seconds

lost matrix
young knoll
#

Technically you can use the config as a cache, but it's a somewhat slow cache

somber hull
#

Why dont they go trhough?

rugged topaz
young knoll
#

you didn't call it

#

Bukkit.getPluginManager.callEvent IIRC

lost matrix
young knoll
#

It also does some string stuff each time

#

It's not a direct map lookup

lost matrix
#

Its this weird Memory something something where it tinkers with the String to path conversion. idk. But its not meant to be used as a replacement for proper data structures.

young knoll
#

mhm

#

I basically wrapped it with a direct map lookup if the value has been read before

lost matrix
#

MemoryConfiguration. Thats what i meant.

lost matrix
lost matrix
somber hull
#

well im telling you they are going through

#

The [<>]

#

idk why but < works, but > doesnt

#

< executes the SpawnBoss() method every thirty seconds

lost matrix
somber hull
#

I fucking hate math...

#

Gime a sec

young knoll
#

I see

lost matrix
#

^^

rugged topaz
#

o

#

oops

arctic summit
#

?paste

queen dragonBOT
arctic summit
#

did i set up a scheduler right? i want it to set the gamemode 1 tick after you respawn

#

^ code

young knoll
#

Yep

#

I think you can technically use runTask as that has a fixed 1 tick delay

#

But I would say it's less readable

arctic summit
#

ok ty

#

just dont wanna go thru a headache figuring out if i did it wrong or not

lost matrix
arctic summit
#

i want it delayed by a tick tho

#

and this doesnt specify

lost matrix
#

You can just do runTask because it will be run in the next tick anyways.

arctic summit
#

oh

young knoll
#

I would keep the runTaskLater so its more clear

#

If it's going to be seen by anyone else I guess

woeful moon
#

Other than looping all online players in a for loop, is there a better way to send everyone except one person a message?

lost matrix
woeful moon
lost matrix
woeful moon
south onyx
#

how to check when a shield breaks by an axe

lost matrix
rugged topaz
rugged topaz
#

o thank

#
ArmorStand as = (ArmorStand) p.getTargetBlock((HashSet<Byte>) null, 3).getWorld().spawnEntity(p.getTargetBlock((HashSet<Byte>) null, 3).getLocation(), EntityType.ARMOR_STAND);

Caused by: java.lang.IllegalStateException: Start block missed in BlockIterator
what's the solution 4 this

deft sedge
#

I am getting an error this is it: Caused by: java.lang.IllegalArgumentException: location.world
here is the code

#

?paste

queen dragonBOT
deft sedge
#

Any ideas as to why

somber hull
#

https://paste.helpch.at/equwojukok.cpp
SpawnCheck() runs every 30 seconds
And the secondsuntilspawn = 60
for some reason. it just runs spawnboss() every 30 seconds instead of every 60
if (plugin.data.getConfig().getInt("nextbossspawn") > System.currentTimeMillis()) { i have messed around with the operator here and it doesnt work either way <, or >.

#

please mention me if your responding 😄

quaint mantle
#

what line @deft sedge

deft sedge
#

in code

#

the error says that it's around location.world

#

idk what that means

#

is it supposed to give me a line?

quaint mantle
#

yes

#

post the entire error

deft sedge
#

ok i will

#

one sec

silent vigil
#

how would I get a players head?

#

(with their skin)

quaint mantle
#

make a PLAYER_SKULL and set them as the owner

silent vigil
#

how would I do that?

#

(as in set them as owner)

quaint mantle
#

SkullMeta

deft sedge
#

theres the error

quaint mantle
#

.setOwningPlayer(uuid) I think

silent vigil
#

how would i get the skull? I cant find the Material.PLAYER_SKULL in itemstack

quaint mantle
#

StartCommand.java:74

#

what line is this

rugged topaz
deft sedge
#

startcommnd is the name of the class

quaint mantle
#

you're using an older version Ukraine?

silent vigil
#

nope

#

1.16.

quaint mantle
#

PLAYER_HEAD then

silent vigil
#

like this?

rugged topaz
#

looks fine to me

silent vigil
#

ok ty

south onyx
#

how do i check if a player jumps

quaint mantle
#

PlayerMoveEvent and make a check there

south onyx
#

yeah but how do i check?

rugged topaz
#

playermoveevent -> get the y value of the from, and compare it against the y value of the to

quaint mantle
#

you'd have to make it yourself

deft sedge
rugged topaz
#

unsure if that's the best method

quaint mantle
#

no

#

that's why I'm asking

south onyx
deft sedge
#

ooh i pasted it

#

lemmie resend

quaint mantle
#

just say what line 74 is

rugged topaz
#

!p.isSwimming and !p.isFlying gets rid of two checks

quaint mantle
#

that's easier

silent vigil
#

@quaint mantle sorry for so many questions

south onyx
quaint mantle
#

just check if they're in a ladder then

rugged topaz
#

try Player#getLocation#getBlock#getType != Material.LADDER

silent vigil
#

but how would I get skull meta? would it be playerhead.getItemMeta or smth?

south onyx
#

ok

deft sedge
rugged topaz
deft sedge
silent vigil
quaint mantle
#

world = Bukkit.getWorld(content.replace("world= ", ""));

#

so I'm assuming this is the problem

#

and it's not consistent with this others

#

the others are x: y: z:

#

but this one is world=

silent vigil
#

Would i set owningplayer or setOwner?

quaint mantle
#

onwingplayer

#

setOwner is deprecated

silent vigil
#

ok

#

ty

deft sedge
silent vigil
#

whats offline player var type?

south onyx
#

@rugged topaz like this:

somber hull
#

https://paste.helpch.at/equwojukok.cpp
SpawnCheck() runs every 30 seconds
And the secondsuntilspawn = 60
for some reason. it just runs spawnboss() every 30 seconds instead of every 60
if (plugin.data.getConfig().getInt("nextbossspawn") > System.currentTimeMillis()) { i have messed around with the operator here and it doesnt work either way <, or >.
please mention me if your responding 😄

rugged topaz
#

OfflinePlayer?

silent vigil
#

sorry im a moron

south onyx
#
f (e.getFrom().getY() < e.getTo().getY() && !entityWasDamaged.isSwimming() && entityWasDamaged.getLocation().getBlock().getType() != Material.LADDER) {
                
            }```
#

if*

silent vigil
rugged topaz
#

or did you just type it up

silent vigil
south onyx
#

ide

#

eclipse

rugged topaz
#

ah

south onyx
#

here

rugged topaz
#

oops

south onyx
#

ill send my whole event

#
@EventHandler
    public void onJump(PlayerMoveEvent e) {
        if (cantJump.contains(entityWasDamaged)) {
            if (e.getFrom().getY() < e.getTo().getY() && !entityWasDamaged.isSwimming() && entityWasDamaged.getLocation().getBlock().getType() != Material.LADDER) {
                e.setCancelled(true);
                entityWasDamaged.sendMessage(ChatColor.GREEN + "You can't jump, since your 'bones are broken :)'");
            }
        }
    }
rugged topaz
#

that should work

#

try it out

south onyx
#

ok

young knoll
#

I would recommend giving them jump boost >128 instead

#

It will stop jumping but not ladders and such

deft sedge
#

@quaint mantle SHould i make it world:?

quaint mantle
#

:) made these 2 events for myself

deft sedge
#

should I make it world: and not world=

quaint mantle
#

I have no clue how your config is set up

#

why are you asking me