#help-development

1 messages ยท Page 409 of 1

tardy delta
#

early returns please and use Math.min

alpine swan
#

yes, why?

remote swallow
#

paper cancel the right click air

#

add (ignoreCancelled = false) after the event handler

alpine swan
remote swallow
#

paper jank probably

pearl oyster
#

So 12hours is hard limit per author id ?

remote swallow
#

i would guess so

#

you can probably ask simple when hes around

pearl oyster
#

What is his timezone

remote swallow
#

pst

pearl oyster
#

I see who is simple exactly can you give me his tag ?

remote swallow
#

@sterile axle

pearl oyster
#

Ty

small hawk
#

How can i block all ClickTypes in InventoryClickEvent, wihout making huge if statement?

hazy parrot
tardy delta
#

bruh whats wrong with checking Record.class.isAssignableFrom(raw)

#

legacy stuff ig

fresh timber
#

if I make a RPG game and store all the stats in PDC is there a problem with that or would it work fine?

tardy delta
#

id store them in a db

#

but thats just me

fresh timber
#

yea but that is very difficult atleast for me

#

also there arent going to be too many stats

tardy delta
#

or use an yml file whatever

fresh timber
#

yea I dunno how to do those

#

I only know pdc and like mysql

tardy delta
#
BukkitWiki

The Configuration API is a set of tools to help developers quickly parse and emit configuration files that are human readable and editable. Despite the name, the API can easily be used to store plugin data in addition to plugin configuration. Presently only YAML configurations can be used. The API however was designed to be extensible and allow ...

fresh timber
#

but mysql takes a while to set up

tardy delta
#

lol

fresh timber
#

and has weird cmds

tardy delta
#

lol

hazy parrot
#

sql syntax is so eloquent

fresh timber
#

id go for more of annoying than eloquent

zealous osprey
#

Is there a way to use a profiler for ones code?
Cause Intelij provides such for own made applications, but what about external enviroments.

tardy delta
#

i use visualvm

#

but measuring execution time goes brr

quaint mantle
#

How can I modify the item drops in BlockDropItemEvent?

tardy delta
#

check the docs

quaint mantle
#

Looks like I can get the items but I can't modify them

zealous osprey
frosty cairn
#

no no

hazy parrot
frosty cairn
#

wait, wrong chat lol

#

what chat i need to use?

#

help server

zealous osprey
#

Is there any method that is more lag-friendly than Block#setType?
Cause it seems that this method is cause for most of my lag within a function.

round finch
#

yo what is the best way to figure out spigot plugin development beside the spigotmc docs
is there like way to look at the source or something

#

just wanna dig a little deeper

remote swallow
#

?stash

undone axleBOT
remote swallow
#

bukkit is the api, craftbukkit is the impl, spigot is the server

round finch
#

does that contain it all?

remote swallow
#

yeah

round finch
#

ok saved it

#

thanks!

weak meteor
#

Can someone help me with the vaultapi stuff
?

dusty herald
#

ok but with what

weak meteor
#

Like implementing it in the plugin and then just deleting some amount from users

dusty herald
#

are you using an economy plugin?

weak meteor
#

i got this in the onEnable ```java
if (!setupEconomy()) {
getLogger().severe("Vault or an economy plugin is missing!");
getServer().getPluginManager().disablePlugin(this);
return;
}

weak meteor
#

but i dont know wheretf is setupEconomy coming

brave sparrow
#

You have to make that method

weak meteor
#

found it in the github

dusty herald
weak meteor
#

Yes

#

i can copy and paste the code there?

brisk estuary
#

does anybody know if there is a tag for concretes? I didn't find any, but maybe I'm a little bit blind XD

river oracle
#

Just because you don't have to go through the interfaces. However nothing meaningful you might need to look into work distribution post by 7smile7

remote swallow
#

?workdistro

river oracle
#

That's what I was looking for ^

tardy delta
#

would getting an item from a array with VarHandle#getVolatile be slower than a simple a[i]?

quaint mantle
#

Any way to get a random location from already generated chunks?

tawdry finch
#

lowkey kinda scary that i just made chat GPT make a quite complex plugin demo in like less then 2 mins and i deadass works rlly well

sterile token
tawdry finch
#

yeh ik ik just this was kinda crazy since it worked within like secconds and i didnt even need to change any of the code XD

sterile token
#

๐Ÿ’€

#

Its fucking amazing for coding in my case lat year i was coding a crates plugin, and he made itself the 40% of the plugin

#

But on the other hand it make devs to lost ability for coding because you will most of the time dont even read what he gives you and instead plain example code he give you

tender shard
quaint mantle
#

How do I use that

rough drift
#

Is there a way to get the server.jar within a plugin?

eternal oxide
#

yes but not easily

#

new File() and grep the files

rough drift
tardy delta
#

windows ๐Ÿคก

#

windows has find iirc

rough drift
#

what if I use bundler/versions and figure out from server software & version

eternal oxide
#

grep was just used as an example. you'd do it in java

#

there is no way to know the jar name from within the plugin (not that I know of)

rough drift
#

Well I don't exactly need the jar that got launched, just the spigot server, so bundler versions it is ig?

eternal oxide
#

bundler?

dry yacht
remote swallow
#

coudnt you get the path of the plugins jar, back peddle out of the plugins folder and scan all the jars for Bukkit.getServerVersion or Bukkit.getVersion in a class name

rough drift
eternal oxide
rough drift
remote swallow
#

yeah

quaint mantle
dry yacht
remote swallow
eternal oxide
#

you could try `Spigot.jar...

rough drift
eternal oxide
#

sorry Spigot.class

remote swallow
remote swallow
#

you just scan all jars possible

eternal oxide
#

What EXACTLY are you trying to do?

remote swallow
#

starting with server.jar, spigotX.jar paperX.jar etc etc

rough drift
#

Like literally that

eternal oxide
#

then Spigot.class and as above

rough drift
#

alr

eternal oxide
#

if the security manager allows it

rough drift
#

You mean Bukkit.class right?

#

I don't see a Spigot.class, unless you mean Server.Spigot

eternal oxide
#

I ment Spigot, but you could do bukkit

#

yep Bukkit.class should work

rough drift
#

testing it

#

@eternal oxide @remote swallow It seems to give the API jar using Bukkit.class, which is still fine

eternal oxide
#

the API jar is teh server jar when on a server

rough drift
#

Server\bundler\libraries\spigot-api-1.19.3-R0.1-SNAPSHOT.jar

eternal oxide
#

then try CraftBukkit.class

rough drift
#

Oh no it's fine as well

#

I'll try CraftBukkit.class if I need it later

eternal oxide
#

will probably give you the same, but worth a try

#

actually no, it shoudl give you the spigot server jar

#

in versions

rough drift
#

I am not using nms rn

#

I'll do it later if I need to though

quaint mantle
slate coral
#

Hey Guys!
I have a quick question.

Is someone familiar with adding support for custom flag handling with WorldGuard?
We are currently supporting only the newest WorldGuardAPI version and noticed afterwards
that it doesn't fit with the other API versions and it seems like WorldGuard has a different structure
for like every version.

Is there a workaround? Or would be the way to go... to check the version and add a complete different handling for like
every single different version?

Thanks in advance!

ocean hollow
#

How to make a circle of particles around an entity for 15 seconds? I tried to search, but there are some super hard mathematical calculations

twilit roost
#

is there some alternative for runTaskTimerAsynchronously with BukkitRunnable, that doesnt error out?

rough ibex
#

Error out?

#

What are you getting?

twilit roost
eternal oxide
#

full error

twilit roost
eternal oxide
#

GameListener.java:271

twilit roost
#

that id liune is 271

eternal oxide
#

did you provide the delay and repeat?

twilit roost
eternal oxide
#

then Paper

twilit roost
#

also yep >_<

#

thought this will be same in Spigot, so I wrote here

#

cuz their discord is dead

eternal oxide
#

what they are sayign is don;t pass a runnable, use teh runtask... of teh runnable

#

new BukkitRunnable() {} runtasktimer...

twilit roost
#

i dont get what you mean

eternal oxide
#

or use Spigot and you won;t get a warning

onyx fjord
remote swallow
#

instead of

Bukkit.getScheduler().runTaskTimerAsync(plugin, new BukkitRunnable {}, timer, timer );```

use 

```java
new BukkitRunnable{}.runTaskAsync(stuff);`
tardy delta
#

create a class

twilit roost
#

ooh tysm

#

also kindof dumb
what is the diff between delay and period?

cuz I can't seem to understand it

eternal oxide
#

delay = before it runs

onyx fjord
#

Delay is the first run delay I think

eternal oxide
#

period = time between repeatsd

twilit roost
#

ooh right

#

tysm

weak meteor
#

Compilation failure
An unknown compilation problem occurred

#

With maven

#

I tried to do smth with Vault and then deleted all of vault

#

code and dependencies and Stuff

#

and now i keep having that error, what can i do?

#

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] An unknown compilation problem occurred
[INFO] 1 error
[INFO] -------------------------------------------------------------

#

nvm

#

just found it

#

not nvm

#

smone?

rough ibex
#

you need to give more than just that.

#

1 error, okay, what is the error?

warm galleon
#

for developing Bungeecord plugins, are the versions backwards compatible? Like for exmaple I if I were developing a 1.8.8 and a 1.16 plugin, would I be able to use the latest build for both?

sullen marlin
#

Yes, latest bungee supports back to 1.8.8

warm galleon
#

tyvm

weak meteor
rough ibex
#

that's it?

#

nothing else in the console

tardy delta
#

unkwnown ewror

remote swallow
#

open the drop down on the thing that appears when you build

weak meteor
#

How can i send a imge?

remote swallow
#

verify or

#

?img

undone axleBOT
remote swallow
#

on the poup at the bottom of your screen, do you see mutliple drop downs on the left of that popup

weak meteor
#

Look

#

Thats what i get

warm galleon
remote swallow
#

if you really need to, select a version then change it back

#

because mc dev doesnt support legacy project creating

warm galleon
remote swallow
#

they are all snapshots

warm galleon
#

no like what would I put in <version>

remote swallow
#

1.8.8-R0.1-SNAPSHOT iirc

warm galleon
#

that was my guess as well but doesnt exist lmao

#

is there a way to browse the versions xD

#

yep

#

i think

#

yeah

#

bungeecord

#

not bukkit

#

is it different xD

#

fr

remote swallow
#

bungee is on krpyton iirc

#

only 1.19 is

#

sad

#

might be on an md repo

warm galleon
#

i doubt it works with 1.8.8

#

Cannot resolve net.md-5:bungeecord-api:1.8.8-SNAPSHOT

#

i believe you're correct

twin venture
#

hi , do i need to use nms and spawn a entity , to get its entity id?
or i can create new Integer and set it to the packet paramter where it ask for the entity id?

warm galleon
#

i just checked only 1.15 has multiple versions i think

#

the r0 thing

weak meteor
remote swallow
#

on the left of that screen what do you see

#

you should see mutliple drop downs most likely one with your project name on

weak meteor
#

Yes

#

It says

remote swallow
#

click the one at the top

#

then find the error in that log

weak meteor
#

?paste

undone axleBOT
weak meteor
#

that appears

remote swallow
#

run mvn clean package -e

weak meteor
#

i need to install maven on my pc for that?

#

i guess yes

#

down at the right?

remote swallow
#

press control twice

#

then type it

weak meteor
#

?paste

undone axleBOT
weak meteor
#

there you go

remote swallow
#

control is the "run everything" menu i think

#

?paste ur pom

undone axleBOT
remote swallow
sullen marlin
#

Typing that error into Google gives answers

#

Share your pom

weak meteor
tiny ferry
#

hello guys, i came back after 2 years of plugin dev break, trying to update my old plugins to 1.19.3, but i cant even seem to import the API properly?

https://imgur.com/a/P0KPSpa

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

sullen marlin
#

Try removing the <configuration section for the compiler and see what happens

tiny ferry
#

ahhhh

remote swallow
#

i would recommend using maven or gradle to make that easier

lost matrix
sullen marlin
#

Now add this to the properties section:

<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

lost matrix
#

Simplest way

<properties>
    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.compiler.source>1.8</maven.compiler.source>
</properties>
#

Oh yeah sniped

sullen marlin
#

The original issue might be because you only set source not target, but try this

weak meteor
#

thank you so much

lost matrix
#

Sure. Just apply an attribute mod when they join

#

No you can just change the attributes of every Entity as you like

#

Why?

#

Have you tried setting Arrow#setKnockbackStrength to 0?

smoky oak
#

*-1 ?

#

is there a entityAccellerateEvent

#

cant u use that then?

#

wait lmc velocityevent

#

well

lost matrix
#

You can check for the ProjectileHitEvent before that

echo basalt
#

Not quite

smoky oak
#

cant you register the tick the arrow hits the player in a static list and check that list for said timestamp

echo basalt
#

Player#getVelocity only returns server-sided velocity

smoky oak
#

actually

echo basalt
#

Player-induced movement seemingly isn't considered

smoky oak
#

why dont you just cancel the arrow hit event and just call player.damage with the same damage of the event

quaint tapir
#

I'm using RunTaskTimer to repeat a task multiple times after a delay but I only want it to repeat 5 times
whats the simplest way to do so

#

.runTaskTimer(plugin,1,1);

lost matrix
smoky oak
#

cant you remove that too and tell the nmsPlayer to stick an arrow into its representation

#

the arrow i mean

echo basalt
#

player#setArrowsInBody ??

smoky oak
#

check event, damage player, cancel event, remove arrow

echo basalt
#

pretty sure that's athing

smoky oak
#

probs

#

im guessing here

lost matrix
# quaint tapir `.runTaskTimer(plugin,1,1);`
    new BukkitRunnable() {

      private int ticks = 0;

      @Override
      public void run() {
        if (++ticks == 5) {
          this.cancel();
          return;
        }

        action();
      }

      private void action() {

      }

    }.runTaskTimer(this, 1, 1);

But at that point you should create a LimitedBukkitRunnable class

smoky oak
#

just

#

manually apply it

#

get the velocity impact and rotate it to represent the direction of the hit. that rotated vector you just put into player.addVelocity

#

u can probably hardcode that part

#

i meant to rotate the vector such that the force gets readjusted to come from the 3d direction youre hit on

#

rotation isnt 2d limited

lost matrix
#
  private boolean hitEvent = false;
  
  @EventHandler
  public void onVelocity(PlayerVelocityEvent event) {
    if(hitEvent) {
      hitEvent = false;
      event.setVelocity(event.getVelocity().multiply(0.25));
    }
  }

  @EventHandler
  public void onHit(ProjectileHitEvent event) {
    if(event.getHitEntity() != null && event.getHitEntity() instanceof Player) {
      hitEvent = true;
    }
  }

Try this

smoky oak
#

welcome to the server

#

have you seen the remapping plugin

echo basalt
lost matrix
#

Alternative is changing the attribute for one tick.
That sounds janky to me

echo basalt
#

You'll need to adapt this

#

but that's roughly how kb is handled

#

it might be 1.8 specific though

#

isCrounching -> isSneaking etc

smoky oak
#

i mean

#

isnt 1.9 knockback changed?

echo basalt
#

idfk

lost matrix
#

So you suggest cancelling the knockback all together and calculating it yourself...

echo basalt
#

ehh

smoky oak
#

yep

lost matrix
#

It has to. If the hit event is cancelled then the velocity wont change.
Btw you can shorten this check

  @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
  public void onHit(ProjectileHitEvent event) {
    if(event.getHitEntity() instanceof Player) {
      hitEvent = true;
    }
  }

Because instanceof accounts for null

#

Ah and set the prio to monitor

#

Just the hit event

#

As shown above

tiny ferry
#

Is there an easy way to force a player respawn now? this is my very very old code which i tried to change but doesent work haha


                 ((org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer)p).getHandle().playerConnection.a(new net.minecraft.server.level.PacketPlayInClientCommand(net.minecraft.server.packs.PacketPlayInClientCommand.EnumClientCommand.PERFORM_RESPAWN));
smoky oak
#

/kill doesnt do it?

tiny ferry
#

no i mean if a player is in the dead screen, force respawn him

#

like revive him

smoky oak
#

iirc theres an instant respawn option

#

cant u just enable that

#

it should be server side

tiny ferry
#

Hmm i dont think it solves the issue because i kind of need to be able to controll it too but im not sure

#

i have a function where you respawn immedietly under certain circumstances as a zombie

#

i think it would interfere

quaint tapir
#

How do I create a "new world" in a server
Like if I wanna teleport players into a "new world"
kinda like what people use for different games on a server
not all the minigames are hosted on the same lobby

#

can I load a world

#

with builds n shit

#

not a fresh world

brave sparrow
quaint tapir
#

Alex

brave sparrow
#

if you load a world by a name that already has an existing world directory it will load the existing world

quaint tapir
#

Weird question

#

DId you work for mineplex

brave sparrow
#

yes lol

quaint tapir
#

I remember you ahah

#

thanks for the help tho

brave sparrow
#

no problem

storm stump
#

If I make custom entities but intend for them to be ephemeral (i.e. world is reset upon every server restart), do I need to make sure serialization works with EntityTypes and everything? (1.12.2)

#

I'm unsure how to make sure custom entities are serialized but if I'm sure that they only are forgotten by the server on restart then I won't have to even concern myself with that case

#

Do entities get serialized on world unload or chunk unload

drowsy helm
#

yes they do

#

they have to be registered to the server orelse they wont persist on chunk unload

#

or you can avoid registering the entity and listen to the ChunkUnload event and manually serialize and deserialize

storm stump
#

How would I manually serialize the entity

drowsy helm
#

find a way to serialize your entity which isnt too hard then on chunk unload store it somewhere

#

then on chunk load respawn the entity with that serialized data

storm stump
#

Can I just store it into some EntityManager class and then run addEntity on chunk load?

drowsy helm
#

yeah definitely

#

just have to account for nbt and variables of the entity

storm stump
#

Can I just keep the entity data in the server and just addEntity to the undeleted entity

#

Like hold a reference to the entity so it isn't GC'd

#

Then readd it later

drowsy helm
#

uuh you can try im not sure how spigot would like it though

storm stump
#

Thanks for the input brother

drowsy helm
#

all good

buoyant viper
#

?jd-s for self

undone axleBOT
buoyant viper
#

oh good actionbars do take in a component

topaz idol
#

How do I remove a permission that is set by minecraft like minecraft.command.me ?

buoyant viper
#

use a permissions plugin like luckperms or group manager

storm stump
#
    private HashMap<ChunkCoordIntPair, AbstractMob> chunkMobs = new HashMap<>();

    @EventHandler
    public void onChunkUnload(ChunkUnloadEvent event)
    {
        Chunk bukkitChunk = event.getChunk();
        net.minecraft.server.v1_12_R1.Chunk chunk = ((CraftChunk)bukkitChunk).getHandle();
        for (Entity bukkitEntity : bukkitChunk.getEntities())
        {
            net.minecraft.server.v1_12_R1.Entity entity = ((CraftEntity)bukkitEntity).getHandle();
            if (entity instanceof AbstractMob)
            {
                chunkMobs.put(new ChunkCoordIntPair(entity.getChunkCoordinates()), (AbstractMob)entity);
            }
        }
    }

    @EventHandler
    public void onChunkLoad(ChunkLoadEvent event)
    {
        Chunk bukkitChunk = event.getChunk();
        net.minecraft.server.v1_12_R1.Chunk chunk = ((CraftChunk)bukkitChunk).getHandle();
        World world = chunk.getWorld();
        for (AbstractMob entity : chunkMobs.values())
        {
            world.addEntity(entity);
        }
    }```
#

Awesome

topaz idol
#

When I negate it is still accessible

drowsy helm
topaz idol
#

Custom coded.

pseudo hazel
#

is it set by the plugin or by minecraft

#

whatever that means

topaz idol
pseudo hazel
#

you can try using just unsetPermission like normal

#

if that doesnt work idk what to do

topaz idol
pseudo hazel
#

oh then I have no clue sorry

topaz idol
#

If anyone else does know please do help!

brave sparrow
#

@topaz idol donโ€™t unset it

#

Set it with false

topaz idol
pseudo hazel
#

which one

brave sparrow
#

Yes, thatโ€™s how you remove a permission, you set it to false on the attachment

brave sparrow
pseudo hazel
#

well usually you would use unsetPermission but sure

#

I guess both can work

brave sparrow
#

unset would be if it was granted on your attachment

pseudo hazel
#

what does that command do anyways

quaint mantle
#

I'm taking plugin ideas, you can send detailed outline in the DMs. I'll share the sourcecode with you.

brave sparrow
#

If it defaults to true you have to explicitly set it to false

#

If youโ€™ve granted it you can unset it

pseudo hazel
#

I have an idea, fix my code xD

topaz idol
quaint mantle
#

What is your code @pseudo hazel

pseudo hazel
#

well I am running into presumably some memory issues but its very hard to debug

quaint mantle
#

Send me the snippet in the DMs

topaz idol
pseudo hazel
#

its not a snippet

pseudo hazel
#

like there is just some issue with my plugin I think but I dont know where to look

topaz idol
#

I'm just using bukkit's permissions method

pseudo hazel
#

brad, what does the command do in the first place?

brave sparrow
#

Itโ€™s the emote command

pseudo hazel
#

oh

#

I see

#

is that not an OP only command?

brave sparrow
brave sparrow
pseudo hazel
#

weird

quaint mantle
#

Why "Minecraft Plugin Requests" subforum is dead

topaz idol
brave sparrow
topaz idol
#

I've tried to set to false as one way of fixing it.

drowsy helm
topaz idol
#

Those permissions are all permissions without attachments specifically.

brave sparrow
#

Well of course they donโ€™t have attachments

#

Theyโ€™re set to default to true

#

You have to explicitly set it to false and add the attachment

#

Can I see how you tried to do that?

#

I checked the code

pseudo hazel
#

maybe it did in the past

verbal slate
#

Guys, help, please. I've already tried a bunch of different checks and all to no avail.
I have several items in my inventory. Each of them has a specific slot in the player's inventory (EquipmentSlot). I need the player to get the potion effect when the item is in the right slot.
For example, leggings must be in the LEGS slot for the player to get the effect. While it still gets the effect if they are in HAND. I also have a pickaxe, which just gives an effect to the player if it is in HAND.
In general, please tell me how to fix this behavior?

rough ibex
#

that indentation ๐Ÿคข

verbal slate
#

I do not know how to remove extra spaces in the discord automatically

brave sparrow
#

First off

#

?paste

undone axleBOT
pseudo hazel
#

you should use early returns

#

to make it more readable

verbal slate
#

where?

pseudo hazel
#

everywhere where possible

#

for example at the start of that second part

verbal slate
#

to avoid else?

pseudo hazel
#

make if (!addEffect) return;

quaint tapir
#

I want to store values in an item but persistent data containers are slow
My idea was to store data in the lore of the item but I also want my item to have a displayed lore
is there anyway to have hidden and displayed lore in the same item
Or any other method I could use to achieve this

pseudo hazel
#

no to unindent the rest of it

brave sparrow
pseudo hazel
verbal slate
#

And is it possible to put return in BukkitRunnable?

quaint tapir
pseudo hazel
quaint tapir
#

persistent data containers were being slow

pseudo hazel
#

what kinda data needs to get updated every tick

quaint tapir
verbal slate
pseudo hazel
#

using the items lore is just as slow as the pdc

#

like lore is also in the itemmeta technically

quaint tapir
#

soo

#

whats the best method then

pseudo hazel
#

well

#

you can just add it in pdc

brave sparrow
#

Itโ€™s serialized JSON

quaint tapir
#

thank you

valid basin
#

Does someone know how to spawn an entity in a chunk where player's aren't active currently? I've tried loading the chunk and nothing worked. I'm open for ideas. Here's my code:

pseudo hazel
#

nothing worked as in they didnt spawn?

valid basin
#

They spawn and despawn a few milliseconds later

#

if u aren't at that location

verbal slate
verbal slate
brave sparrow
#

?paste your code @verbal slate

undone axleBOT
pseudo hazel
#

so the issue is that it adds the effect regardless of the slot?

verbal slate
verbal slate
pseudo hazel
#

oh btw sorry for the confusion but early returns in for loops should usually just continue the for loop, using continue instead of return, or you will skip the remaining items to check

verbal slate
#

Exactly.. I forgot myself too

pseudo hazel
#

so at what point do you check like leg slot for example

#

because right now it adds the effect for every item in the hand

#

because of the else

#

where you just check is the item in either hand, not what item it is

verbal slate
#

In general, as far as I know, using this line I have to get an item in a given slot (in our case, LEGS. But apparently it doesn't work that way or I'm confusing something.
I want to say that there is no need to check for slots here, because I get an item from the right slot right away.
Then I only check for the existence of a tag on the item, and if there is one, it means that the item is in the right slot and the item is an artifact.

#

ItemStack is = inv.getItem(slot);

pseudo hazel
#

so when do you want the leggings to add the effect, I assume only if its in the leggings slot right?

verbal slate
#

Right

pseudo hazel
#

and artifact.getEquipmentSlot should return LEGS for leggings right?

verbal slate
#

Yeah.. I found it, but I don't understand why they return the value of HAND

pseudo hazel
#

what is returning the value of hand

#

all artifacts?

verbal slate
pseudo hazel
#

I mean to me it sounds like you need to check is the itemstack is has the correct tags or whatever

verbal slate
#

the method of getting the slot: EquipmentSlot slot = EquipmentSlot.valueOf(instance.getConfig().getString("artifacts." + artName + ".equipSlot"));

pseudo hazel
#

like is is very poorly named but looking at the code it represents the item that is currently in the slot that an artifact should be in

#

so then to addEffect, you need to check if that item is actually an artifact item

pseudo hazel
#

but I dont see you checking what kind of item is actually is

verbal slate
#

the item will be 100% an artifact because I get it from the player's artifact list

#

there are no problems with this

pseudo hazel
#

well is is directly coming from the player's inventory

verbal slate
#

What's really weird is that EquipmentSlot has all the artifacts HAND when it's not

pseudo hazel
#

debug it

#

by printing what the value of slot is

verbal slate
#

okay

pseudo hazel
#

then see if eveyrthing returns hand

#

if not you need to read back at what I was saying

verbal slate
pseudo hazel
#

I cant read that but I am assumig its what you wnat it to be since not everything is HAND

verbal slate
pseudo hazel
#

okay so as I was saying

#

the is itemstack is created from what is inside the players inventory at the artifacts target slot

#

but you need to check whether that target slot actually contains an/the artifact

#

because an artifact object is not an itemstack right?

#

like does Artifact extend anything?

verbal slate
#

public class Artifact implements Iterable<ItemStack>

pseudo hazel
#

okay

#

so then check if is equals artifact

#

and print it

verbal slate
#

return false

pseudo hazel
#

that means that the item is not the artifact

#

wait

#

why is the artifact an Iterable<ItemStack> and not just an ItemStack?

#

iterable means it is a collection that can be iterated over

verbal slate
#

This method seems to use iterations, so so.
It was written before I started writing plugins, by an ex coder

pseudo hazel
#

okay

#

so an artifact has multiple items

#

idk what that means

#

can you explain what an Artifact is in this context?

verbal slate
#

In general, I'd better try to rewrite this moment now. And then I'll let you know what happened

pseudo hazel
#

yeah I agree, Artifact seems like a weird name for a collection of items

verbal slate
#

In general, items is for kits. For example, a set of a sword and a bow (which are also artifacts).
Honestly, I don't even use it, because it's nonsense. The kits need to be placed in a separate place.

wet breach
#

because artifact generally refers to a single item, unless you want to pluralize it

valid basin
#

Guys does someone know how to set entity knockback to 0

#

Like for example wither skeleton

#

so when they're hit with bow or regular hit they take no damage at all?

eternal oxide
#

no damage? cancel teh hit event

valid basin
#

I want them to take damage

#

just no knockback

eternal oxide
#

simplest way is to set velocity to zero in the next tick

valid basin
#

ik MythicMobs have that feature

valid basin
eternal oxide
#

next tick

bleak comet
#

hi, i try this but its dont work, do you have anyidea ? ItemStack lapissss = new ItemStack(Material.INK_SACK);
lapissss.setDurability((short) 4);

                p.getInventory().removeItem(lapissss, Integer.parseInt(String.valueOf(Main.getInstance().getConfig().getInt("UPGRADE_LAPIS1_COST")))));
remote swallow
#

?notworking

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

remote swallow
#

thats code

#

not an ever

#

error

bleak comet
#

The method removeItem(ItemStack...) in the type Inventory is not applicable for the arguments (ItemStack, int)

#

sorry wrong copy paste before

remote swallow
#

you are trying to pass an int to a method that doesnt take an int

young frost
#

does anyone know of a plugin where people can make kits and use them and other people cant see them?

remote swallow
#

fuck cmi

bleak comet
remote swallow
#

what is the integer you pass meant to do

bleak comet
#

i understand what you said but i dont know how the fix this

remote swallow
#

tell me what you expect the integer you pass to do

young frost
#

players

remote swallow
#

it isnt

young frost
#

players make the kits and use them and other people cant use them

bleak comet
#

i want to remove lapis lazuli from player inventory

remote swallow
#

yes

#

so why do you pass an integer

#

and have an item of ink sacs

young frost
#

@quaint mantle i been looking everywhere ;-; pls halp

#

bruh

#

that would take a little while

remote swallow
#

you did ask in help dev

young frost
#

well......

#

yea

#

@quaint mantle so is that a no...?

bleak comet
young frost
#

im not asking for that

remote swallow
young frost
#

im asking if anyone knows one

remote swallow
young frost
#

essentials dont got that

remote swallow
#

you most likely need to commision something

#

?services

undone axleBOT
young frost
#

yea

rough ibex
#

either commission or do it yourself

young frost
#

no

#

u know crystal pvp ?

#

im tryna make a server for that

#

oh

#

its gonna be like a practice server

#

so peopple can make their own kits

remote swallow
#

yeah, you either need to make it yourself or comission it

young frost
#

k

#

whats a good price for it?

#

@remote swallow

#

k

#

ima go in fiverr :/

alpine narwhal
#

Lmao

pseudo hazel
#

is anyone familiar with this error? org.bukkit.configuration.InvalidConfigurationException: unacceptable code point '' (0x0) special characters are not allowed in "'reader'", position 0 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:106) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]

#

it seems to happen when I load a yml file for the first time

#

an empty file

#

when I open it there are some weird invisible characters but I know for a fact that the file its building from is totally empty

eternal oxide
#

Paper

pseudo hazel
#

oof

eternal oxide
#

however, it's probably your file encoding thats at issue

pseudo hazel
#

yeah probably

#

idk how it got messed up

#

when I look in the built jar its also wrong

#

but in intellij and vscode its fine

eternal oxide
#

always utf8

pseudo hazel
#

I just use YamlConfiguration so I dont specify an encoding format

eternal oxide
#

if you have resource filtering IJ will parse the file in your resources. If ij is set to the wrong default encoding I guess it could change it

pseudo hazel
#

whats resource filtering

eternal oxide
#

a setting in your pom

pseudo hazel
#

oh well I don't use that

#

and I checked encoding settings and it looked fine

#

the weird thing is I use this file multiple weeks so idk why it would fail now out of nowhere

#

I mean I did mess a little with when the config is read but idk how I could find out if thats the issue

distant ridge
#

Anyone work with the DiscordSRV API?

remote swallow
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

pseudo hazel
#

weird because I am shading that thing for a month now and it worked fine

distant ridge
#

How can I specify what channel a message needs to go to through DiscordSRV API? I'm guessing I need to set the channel in an event like DiscordGuildMessagePreProcessEvent but the channel names are always final.

drowsy helm
#

use the discord srv discord

#

the method should use a channel id

distant ridge
#

But I'm trying to send a message to a discord channel that has the same format as what's configured in discordsrv already

analog thicket
#

I just wasted 5 hours of my life because I'm stupid -.-

#

i love it

#

stupidest reason ever. I ADDED THE WRONG LOCATION

quaint mantle
#

welcome to plugin development

analog thicket
#

Worst thing is.

#

it was two lines..

#

i used 5 hours on two lines

remote swallow
#

i spent like 3 hours on 1 letter

analog thicket
remote swallow
#

it took me like 20 min after i had slept

analog thicket
#

Know the feeling. Did that today lol used 2-3 hours on something i couldn't get working. Slept, got it working in 10-20 min -.-

wet breach
#

in regards to events

#

guildmessage event is messages from the discord side not the mc side

distant ridge
wet breach
#

what do you mean?

distant ridge
# wet breach what do you mean?

My chat plugin has multiple channels. Using the built in DiscordSRV send command it only sends to global. I need to somehow send that chat to Discord using DiscordSRV with whatever the user configured for that format.

wet breach
#

gamechatevent allows getting the channel and changing the channel

#

at least that is what I see from the source

distant ridge
#

and sending with the default format?

wet breach
#

idk what you mean by format

#

if discordsrv allows a user to configure a format, then it isn't something you should worry about as that would be something taken care of by discordsrv

distant ridge
# wet breach idk what you mean by format
DiscordToMinecraftChatMessageFormat: "[<aqua>Discord</aqua> | %toprolecolor%%toprolealias%<reset>] XYZZZ %name%%reply% ยป %message%"
DiscordToMinecraftChatMessageFormatNoRole: "[<aqua>Discord</aqua>] %name%%reply% XYZZZ ยป %message%"```
#

this is the format defined in messages.yml of DiscordSRV

wet breach
#

ok what do you want to do with it?

distant ridge
#

By default it only sends to global

wet breach
#

then change the channel in the event

distant ridge
#

It says the channel is final

wet breach
#

I don't see where it is set as being final

#

from the code there should be a method for setting/getting

distant ridge
#

I could only find getting not setting

wet breach
#

personally I would just use my own api for discord related things

gritty brook
#

Is there a possible way I can make a non redstone block send out a redstone signal?

heavy mural
#

Quick question: does anybody know if negative slimesizes still create an upside-down slime in 1.19.3 spigot?

tender shard
gritty brook
#

can I use that to send a constant redstone signal?

#

like how a redstone block sends a constant signal

tender shard
#

not sure, you gotta try it and probably you need to set it again everytime the blockstate gets updated

desert tinsel
#

Whats the difference between PlayerInteractEntityEvent and PlayerInteractAtEntityEvent?

jagged monolith
gritty brook
#

is there a listener for that?

hybrid spoke
brave sparrow
#

PlayerInteractAtEntityEvent is a subclass of PlayerInteractEntityEvent

#

The only distinction is that it contains location

kindred valley
#

๐Ÿ˜ญ๐Ÿ˜ญ

eager nova
#

How can I get the third(result) slot of a custom anvil inventory? Only "test1" will be output

#
            Inventory inventory = event.getInventory();
            if(event.getSlot() == 0) {
                player.sendMessage("test1");
            }
            if(event.getSlot() == 2) {
                player.sendMessage("test2");
            }
            if(event.getRawSlot() == 2) {
                player.sendMessage("test3");
            }```
tardy delta
#

Don't compare titles, inventory has a equals and hashcode impl

tender shard
#

well event.getSlot() is obviously 0 so ofc it'll never print "test2"

#

what event even is that?

chrome beacon
#

Not sure why you're bothering with a system like that. It will get removed real quick by leakers

grand magnet
#

I have a question for you. Why do you think I write in here. To tell me not to do it or to get help?????

chrome beacon
#

You haven't exactly given enough information to help

grand magnet
#

I have given you enough info

chrome beacon
#

What is the MySQL object? Why would readValue return something, if you're not specifying where it should return from?

grand magnet
#
        String value = null;
        if(isConnected()) {
            try {
                Statement statement = connection.createStatement();
                ResultSet result = statement.executeQuery("SELECT value FROM License WHERE server='BetterLobby'");
                
                if(result.next()) {
                    value = result.getString("value");
                } else
                result.close();
                statement.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }
            
        }
        return value;
    }```
chrome beacon
#

Commissioned plugin or is that your alt

eager nova
sullen canyon
#

show your command method please

hazy parrot
#

You just declared your list, you never initialize it

#

Or well, collection

haughty storm
#

Is it possible to make entities like Zombies like a pet, so that it follows and fights for you

onyx fjord
#

๐Ÿ˜ณ

#

You initialize it

#

= new Something...

hazy parrot
#

?learnjava

undone axleBOT
hazy parrot
#

Sorry, but that is fundamental concept

onyx fjord
#

@hazy parrot you don't know how many times I forget about it too ๐Ÿ˜ญ

hazy parrot
#

Nah, not really, we are here to learn

onyx fjord
#

List<String> stringList = null;

There u go, initialized? Initialized

#

๐Ÿคจ

tardy delta
onyx fjord
#

Because it's not how you do it @south gulch ...

#

Show code

hazy parrot
#

You have to initialize object, code from kacper was a joke...

onyx fjord
grim oak
#

Hi, I'm trying to use Gson to serialize an itemstack and I have the following code:

Gson gson = new Gson();
String serializedItem = gson.toJson(item.serialize());
plugin.getLogger().warning("Test: " + serializedItem);

But when I run it, I get an error but only when the item has an item meta. I think its because of the way the meta is formatted in item.serialize(), so I tried the following to try to get around it:

Map<String, Object> serializedItem = item.serialize();
        
serializedItem.remove("meta");
serializedItem.put("meta", item.getItemMeta().serialize());

plugin.getLogger().warning("Test: " +  gson.toJson(serializedItem));

And doing this seemed to work, but now the meta is lost when I try to deserialize.
Is anyone able to help out? Thanks

heavy maple
#

Basically my plugin is not writing data sometimes to the yaml file

#
                    configs.getConfig().set(uuid + " istemp", false);
                    configs.save();``` a little snippet of how I am trying to do this
tardy delta
#

Class x is in unnamed module?

grim oak
# tardy delta what error?
Caused by: java.lang.UnsupportedOperationException: Attempted to serialize java.lang.Class: java.lang.String. Forgot to register a type adapter?```
#

Want me to send the entire trace?

tardy delta
#

what does item.serialize() return?

#

ah nvm

#

is the error at serializedItem.put("meta", item.getItemMeta().serialize());?

grim oak
#

Oh yeah I forgot to say that Item is just an ItemStack, its whatever item is in the players main hand at the time

#

No

#

there is no error in that part of the code

#

The error is in the first snippit of code at the gson.toJson()

green prism
#

Quest plug-in

wary harness
lavish wing
#

Hey guys, can someone tell me how to make a minecraft server using netty? Is there any info about this somewhere?

haughty storm
#

I am trying to make a Team and add the player and an entity to it so they can't attack each other. But when I add both of them, they can still attack each other

        ScoreboardManager manager = Bukkit.getScoreboardManager();
        assert manager != null;
        Scoreboard board = manager.getNewScoreboard();
        team = board.registerNewTeam(p.getUniqueId().toString());
        team.setPrefix(ChatColor.DARK_PURPLE + p.getName());
        team.addEntry(p.getUniqueId().toString());

        team.setCanSeeFriendlyInvisibles(true);
        team.setAllowFriendlyFire(false);
frosty cairn
#

Hi, do you know what is the best free faction plugin

#

i need one but idk what to choose

oak locust
#

Hi, I am currently working on a lobby plugin. I want to make players unable to place, break or interact with blocks in general. I already implemented some code for that in my plugin, but when a player tries to break a block they can break it and then it reappears. Same with placing blocks; it plays the sound of placing the block and the block stays there for like one tick before it disappears. How can I prevent players from starting to break a block and placing a block? I want to make it the same as on hypixel where players are unable to even get the block outline.

Current code which is causing problems:

    @EventHandler(ignoreCancelled = true)
    public void onBlockBreak(BlockBreakEvent event) {
        event.setCancelled(true);
    }

    @EventHandler(ignoreCancelled = true)
    public void onBlockPlace(BlockPlaceEvent event) {
        event.setCancelled(true);
    }```
haughty storm
#

You could just set their gamemode to adventure

oak locust
#

You are such a genius

undone yarrow
#

Seeing as there's no Citizens 2.0 discord server afaik I'll ask it. Does anyone know if it's possible to make an NPC only visible to a single or group of players?

oak locust
onyx fjord
#

๐Ÿ˜‚most friendly discord server

quaint mantle
#

ok so I am having this problem with my project(a test mod/bot that integrates baritone api 1.19.2) how do i add a dependency for baritone api 1.19.2 as show in the below code and error. PS: can someone rewrite my way of adding the baritone dependencies cause the method i am trying does not work

onyx fjord
#

What does spigot have to do with modding

quaint mantle
#

my problem is not that of modding but adding dependencies

onyx fjord
#

Ask forge I guess tho they aren't the nicest and most competent people

quaint mantle
#

they arent

#

i tried and they said i was dumb af

onyx fjord
#

Classic

#

Honestly just boycott forge

eternal oxide
#

1.9.1.jar and depend of 1.19.3?

quaint mantle
#

they just redirected me to a tutorial on basic java

quaint mantle
eternal oxide
#

ah depend version not MC

quaint mantle
quaint mantle
#

idk how to write dependencies

#

i never learnt that

onyx fjord
#

Oh shit

quaint mantle
#

what happened

onyx fjord
#

Yeah that's not how it works

quaint mantle
#

wdym

onyx fjord
#

Look at forge dependency and then baritone

quaint mantle
#

wdym

#

like can you write the fix here

#

i told i dont mess with gradle files

onyx fjord
#

I suggest you to learn gradle basics

tardy delta
#

gradle ๐Ÿ’€

quaint mantle
#

i will can you help out rn pls

#

please

#

dm me the sollution if possible ty

green prism
#

please, can you help me?

#

I have a running Thread in this discord:

I have 3 tasks (Walk a specified distance, pickup a specific item and kill a specified mob).
In your opinion, what is the best way to keep track of the progress?

quiet ice
#

Also, have you defined the needed repository for baritone? If not, you must add it

quaint mantle
#

but i need forge dependecnt too

quaint mantle
quiet ice
#

(okay actually now that I looked at it twice the answer is definitely no. Ugh, this will be fun)

#

We are going to do it the simple way: Do you have that baritone jar put in a subdirectory of your project?

#

If not, do it

quaint mantle
#

Yes sir

#

ok this is gonna sound stupid but how do i put the jar into the subdirectory i am using intelij

quiet ice
#

Then add compileOnly files("path/to/your.jar") instead of implementation 'com.github.whatever:whatever'

quiet ice
haughty storm
#

I am trying to make a Team and add the player and an entity to it so they can't attack each other. But when I add both of them, they can still attack each other

        ScoreboardManager manager = Bukkit.getScoreboardManager();
        assert manager != null;
        Scoreboard board = manager.getNewScoreboard();
        team = board.registerNewTeam(p.getUniqueId().toString());
        team.setPrefix(ChatColor.DARK_PURPLE + p.getName());
        team.addEntry(p.getUniqueId().toString());

        team.setCanSeeFriendlyInvisibles(true);
        team.setAllowFriendlyFire(false);
quiet ice
#

Never used IJ myself

quaint mantle
quiet ice
quaint mantle
#

now what

tawdry echo
#

top left button plus

quiet ice
#

nnonononononono

quaint mantle
#

what

quiet ice
#

Xemuain is suggesting a solution that is dangerous and wont work beyond IDE auto-complete

#

In fact, this window is the wrong one

quaint mantle
#

well the bariotne issue fixed

#

but

#

a new pproblem is here

#

I think i might cry now

quiet ice
#

If I had to guess you followed Xemuain's suggesting and in that case - you did an error

quaint mantle
#

baritone fixed

quiet ice
#

Ah well that works too

quaint mantle
#

there were 2 errprs

#

1 was baritone and the other was this

quiet ice
#

remove the comma on the minecraft '[...]' line

quaint mantle
#

either intelij wants to make me suicide

#

or

#

there is a problem with the dependiencie

#

` Task :compileJava FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Changes are not tracked, unable determine incremental changes.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3s
1 actionable task: 1 executed
`

quiet ice
#

I just realized that this is the wrong way regardless.
But I am afraid I cannot help beyond that because I have used forgegradle too rarely.

quaint mantle
#

I WANT TO DIE

#

i feel like dying

quiet ice
#

Since I guess you don't know how to use a terminal I think we are at a dead end

quaint mantle
#

i do

#

i just need help

#

programming wants to make me cry

#

it's like 2020 again

quiet ice
#

?paste Run ./gradlew.bat build --stacktrace, then post the results in the link below and give the resulting link

undone axleBOT
quaint mantle
#

when i first learned to code

#

I thought of trying making mods

#

tf

quiet ice
#

I have rarely worked with forge myself, so unfortunately I am of little help here

quaint mantle
quaint mantle
#

better position than i was yesterday

quiet ice
#

Most mainstream modding communities (i.e. forge, fabric, etc.) are cumbersome to work with.

quaint mantle
#

ikr

quiet ice
quaint mantle
#

dir instead of what

#

gradlew?

quiet ice
#

Or ls -l? Idk what the proper command would be

quaint mantle
#

lets try both

onyx fjord
#

Windows doesn't have ls

quiet ice
#

Just run it - I want to see the contents of the directory

quiet ice
onyx fjord
#

Wouldn't be surprised if they aliased ls to dir

quiet ice
#

It has been years since I last touched windows outside of school

onyx fjord
#

Yeah

tardy delta
#

ls only works on powershell

onyx fjord
#

For me like 2

#

And in school we barely use it too

quaint mantle
#

iik this is wrong but this is the only thing that has not resulted in an error i am so happy

quiet ice
#

No, without the build [..] part

quaint mantle
#

write the code

#

just write it

quiet ice
#

(like I guessed, you indeed do not know how to use a terminal)

onyx fjord
#

Code

quiet ice
#

Just dir

quaint mantle
#

so i just rut dir

quiet ice
#

yep

quaint mantle
quiet ice
#

this will be fun

onyx fjord
#

Yoo

icy beacon
#

what's the alternative for Player#isOnGround()? it's deprecated:
This value is controlled only by the client and is therefore unreliable and vulnerable to spoofing and/or desync depending on the context/time which it is accessed

undone yarrow
#

What would be the best way of making a plugin that allows you to use spells/powers with a thing in your hotbar. Example:
You have a nether star in your first slot which, when right-clicked, opens up a new hotbar showing all your spells/powers. When you select one using one of your hotbar numbers you can left click to use the spell/power (and it has a cooldown). When you open your inventory with the spell-hotbar opened you have a custom inventory showing all the spells/powers you own, and you can drag them to your hotbar and move em around
The spells would be something like "Push" (Push the target you're looking at away), and choke (Choke the target you're looking at).
I want it to be easy to add new custom spells/powers to the plugin without having to change the entire plugin.

undone yarrow
quiet ice
# quaint mantle

Could you post the contents of gradle/wrapper/gradle-wrapper.properties? If that file exists of course.

quaint mantle
icy beacon
quiet ice
#

Yeah checking the vertical movement and the block below the player should suffice

quaint mantle
quiet ice
#

not much more?
Regardless, that is all I wanted.

quaint mantle
#

no laughs?

#

guess i am the only one

quiet ice
#

I need to hunt down a gradle 7.5 gradle wrapper file. That will take a while so bear with me

quaint mantle
#

i got 5 hours

#

i think we can make it

onyx fjord
#

Why 5 hours

#

Till what

quaint mantle
#

i am in india

#

i need ot sleep

#

it's 7:20

#

pm

tardy delta
#

sleep is for the weak

quiet ice
quaint mantle
#

what

#

where

quaint mantle
undone yarrow
quiet ice
#

You need to create a new file

#

(thankfully we don't need to chmod it - at least I hope so)

quaint mantle
#

so i create a file called gradlew.bat and just past that in

quiet ice
#

Yep

quaint mantle
#

past*

quiet ice
#

*paste

quaint mantle
#

make a file in the whole project or m maid folder where the code is

#

main*

quiet ice
#

Next to the build.gradle file

quaint mantle
#

alr

#

ok made

#

@quiet ice

#

now hat

#

what*

quiet ice
#

Run ./gradlew.bat build --stacktrace again

quaint mantle
#

a background task started

#

@quiet ice

quiet ice
#

bashes head against table

quaint mantle
#

commits suicide

quiet ice
#

@tardy delta What is the windows requivalent of curl or wget?

#

Also does > work on windows?

quaint mantle
#

either he is playin Minecraft for 22 hours or he is running his bot

tardy delta
#

windows has curl ig

onyx fjord
tardy delta
#

curl works on windows

quaint mantle
#

POG

tardy delta
#

never used it tho, im used to wget

quaint mantle
#

my suffering is comming to an end

quiet ice
#

@quaint mantle Run rm gradlew.bat && curl https://github.com/FabricMC/fabric-example-mod/blob/bc4ffe06d1f1c0b420d7350664f79a83718616ae/gradlew.bat > gradlew.bat

quiet ice
quaint mantle
#

in gradlew.bat right

onyx fjord
#

You can always use a real shell

tardy delta
#

and turns out powershell has wget

quiet ice
#

No, in terminal

quiet ice
#

Since it appears that you are too dumb to paste a file I gave to you

undone yarrow
#

How can I check if someone right clicked a specific item (with a custommodeldata) in their hotbar?

quiet ice
#

PlayerInteractEvent or InventoryInteractEvent?

undone yarrow
#

ill have a look thaks

#

thanks

tardy delta
#

lol

quaint mantle
#

windows 11 moment

tardy delta
#

works on powershell

#

just a ms-dos moment

quiet ice
#

Well I guess then run:
rm gradlew.bat
Then run
curl https://github.com/FabricMC/fabric-example-mod/blob/bc4ffe06d1f1c0b420d7350664f79a83718616ae/gradlew.bat > gradlew.bat

tardy delta
#

rm doesnt work on windows hehe

quiet ice
#

oh no

tardy delta
#

only powershell ๐Ÿ’€

quaint mantle
#

fuck

tardy delta
#

del

quiet ice
#

Then use del instead

#

So del gradlew.bat

tardy delta
#

microsoft wants us to use powershell and i understand

quiet ice
#

Fucking ms-dos not supporting unix commands.

onyx fjord
#

Very intuitive

#

User friendly and all that

livid dove
#

Is there any easy way to utilise bukkit to identify a world folder?

tardy delta
#

uh what

quiet ice
#

?jd-s

undone axleBOT
livid dove
onyx fjord
#

My friends who never used Linux outside school know Linux commands better than cmd or powershell

#

And they often mistake them

#

Crazy

icy beacon
#

entity location seems to be their feet location, is there a way to get their head location

tardy delta
#

.add(0, 1, 0)

icy beacon
livid dove
icy beacon
#

entities are not all 1 block tall

tardy delta
#

bruh

quiet ice
oak lark
#

can i force give java and bedrock players rank?
Like Java players get rank called java and bedrock players get rank called Bedrock

tardy delta
#

bedrock players cannot join java servers?

quiet ice
#

(everybody brace for wall of text)

onyx fjord
#

Yeah you probably use geyser right @oak lark

icy beacon
tardy delta
#

man this channel is a joke

icy beacon
#

you can just check for their uuid and see if they're bedrock/java

tardy delta
#

๐Ÿฅน

onyx fjord
#

Or use some API geyser provides @icy beacon

icy beacon
#

maybe that too

quiet ice
oak lark
quiet ice
#

not 100% sure though

icy beacon
#

i know nothing about geyser

onyx fjord
#

Players on geyser also have different names

icy beacon
livid dove
onyx fjord
#

Those on bedrock start with a dot

quiet ice
oak lark
tardy delta
#

./gradlew.bat?

#

fuck windows

quiet ice
icy beacon
#

just give an according rank depending on whether the player is java or bedrock

#

what "option" are you seeking

quaint mantle
#

only gradlew.bat works no . or / or /.

onyx fjord
#

Lol

quaint mantle
#

should i dir again

undone yarrow
#

die*, and yes

livid dove
#

Best one ive seen all week was "guys why isnt knockback resistance workin on this config" and you could see clear as day they had spelt it nockbackresistance xD

quiet ice