#help-development
1 messages Β· Page 436 of 1
save your messages to a list:
List<String>
have an index somewhere:
int index = 0
every time you send the message, increase it:
sendMessage(list.get(index)); index++
when the index is equal to (lists size - 1), reset it to 0:
index = 0
ok i dont think playerasyncchatevent is a thing
its not showing up
is it asyncchatevent?
the reason that it has to be (lists size - 1) is because indexing starts from 0 and lists size is its actual size
hang on
are you using paper or spigot
asyncchatevent is a paper thing
but they shouldn't have much of a difference
π
i boosted the serv
oh yeah my bad
damnnnnn
the splash screen is already one reason to update
sick
beautiful
too true
Do they start at 2023.0 or 2023.1?
i think 1
I always wait for a few versions in because of my past experience with bugs
my previous was 2022.3 or smth
I'll wait a little bit then. <3
and this is the first pending update
π i like updating right off the bat just because, you know, fancy
do versions work the same for community and professional?
Based on their bullet point features also doesn't seem like it offers much for me anyway
not sure, last time i used ultimate was like a year ago
Yes. Ultimate is basically just extra plugins
yep
I am with 2023.3
ikr
damn you're from the future
lol
i'm with 2026.2
I wouldn't buy ultimate ngl
F
gonna move to fleet once it has plugins and GH Copilot. Copilot for Go is so damn good
basically lmao
yeah i used to use it but then it expired or something
you can ask for renewal right?
does anyone here have a preferred list making piece of software?
somebody gave it to me
then it makes sense
but i just kept creating new intellij accounts and getting 1-month trials
but then i got tired and installed community
I've been using notepad++ but it's not really made to take quick notes and do quick checklists
too much work
lol
i mean it's just a couple clicks to get an account with gmail
just use those clicks to get the plugins
bruh
just use disposable emails at that point
i just kept creating them along my journey in life lmao
and i have them all on my phone
they all have different purposes
for example i use this one for spam
i use this one because it's easy to remember
this one is also for spam
wth
this one used to be my youtube main acc
etc
my notifications for gmail are on silent
and i don't get any anyways lmao
not exactly
i just created them at some point in time
and they served a purpose
and I thought it was bad that I have 7 active email accounts
ultimately
amateurs
I have like 10
I used them for discord nitro promos lol
I use 2
my school and my main one
InteliJ is a drug dealer. Give it free to all students so it's the only IDE you learn.
what are you studying?
its the IJ model. Get everyone they can used to using IJ as early as they can so when they are no longer students it's so tempting to continue using it
just a snippet of what I have
ffs
man why these keep showing on my feed
the parentheses aren't even complete
most normal python code
i am going to eat your blanket
I've been like 4 years coding in python
do you need therapy
I do
lmao
import os
os.system(f"python {__file__}")
this one is better
it's a while loop but making a process each time
wouldn't that just launch itself infinitely
so you're saying that deleting the core directory of an operating system is better than hanging the system once?
cya
i mean the deletion wouldn't probably even go through lmao
but it could
perhaps
it will delete some files that aren't being used if run on admin
fuck trustedinstaller
always forbids me from annihilating my system
stupid witchery
yeeeeees
for (;;) is pure style
the best infinite loop is
for (double i = Double.MIN_VALUE + .00000001; i != Double.MIN_VALUE; i =+ .00000001)
so it's technically infinite but it will potentially end and the user won't know why
wth is this
The Uwu Language Β Phonology Β Consonants w [w] v [Ξ²] ([v] in some dialects) ny [Ι²] Β Vowels Some vowels have alternative notations which can be used when diacritics are not available: ΓΌ /ue [y] u [u] Ε© / un [Ε©] ΓΆ / oe [ΓΈ] o [o] Γ΅ / on [Γ΅] a [a] aa β¦ The Uwu Language Read More Β»
who stole my code
naaaaaaah
someone tried this
i;m trying to find a thing
yeah i can't find it
shit
there was a thing that would uwufy your spigot console
spare us
how do i set a items damage?
get its item meta (make sure it has one):
if (item.getItemMeta() != null) {
ItemMeta meta = item.getItemMeta()
cast the meta to Damageable (make sure it's Damageable indeed):
if (meta instanceof Damageable) { // make sure to import the correct Damageable
Damageable damageable = (Damageable) meta
}
set its damage (you'll see how) and pass the meta back to the item
Why dont they have any access modifiers?
Does a damage of 0 mean fully repaired?
should, yeah
And you should write getters and setters. Dont access fields directly.
Never make your fields public.
Your fields
But only those that need getters and/or setters
There is still a lot to learn but you are definitely improving.
Keep trying. You'll get there eventually.
i started coding my paid plugin when i barely knew shit
and it took me like 7-8 months
it got completely recoded in the process
and somehow even got accepted
i got 1 purchase, then my paypal was blocked
so i now have this resource as a free one lol
It takes me several weeks to do a proper minigame...
noob
Yes
me plenty noob
Last one i did was a castle defence game where you could upgrade catapults and canons
and recruit melee, ranged and cavalry soldiers.
Then you had to defend waves of different mobs with occasional boss stages.
Only for the pathfinding
A lot was actually just tinkering with packets
not completely the same
NMS contains packets. You can also work with packets without using NMS.
but i'd say they are on the same wavelength
Packets are the information that gets sent between client and server.
i mean it is java
Because sometimes you dont want an object to be on the minecraft server.
So if you want the client to see something that is not actually on the server
then you simply send him a packet that tells him "a mob just spawned at x y z"
even tho there is no actual mob
protocollib
plib is the non-nms way to work with packets
yeah
and https://wiki.vg/Protocol for info
Please don't have so many things at main class mate!!
It's hard to understand what half of them are for
Create configuration, event manager or other classes that will move out things
It's not that big of a deal
But it's better
Create new classes and group your objects in a meaningful way
if those are settings i would see them in a settings related class
Or for events it would be also an option to create a method like registerListeners
Just don't put so many things in classes / methods and it should be fine
You can create class called like ListenerManager and in there you have list of events and you can add / remove events from there (not directly from map) and then register() method that will loop through all added events in list
And then you just create new instance of the class in your main class and can add and register it
That would be the best option
Especially that you have multiple listeners
You could also skip the list and register it within one static method
With the use of method params
Choice is yours
I feel like Bettanation is probably the youngest dev here...
Someone created a Team using ProtocolLib here? My old code uses reflections which would like to avoid.
My main concern is the ClientboundSetPlayerTeamPacket#parameters field.
Im not sure how to modify the Optional<Parameters> object.
isn;t that just a nested class foir the player
public b(ScoreboardTeam scoreboardteam) {
this.displayName = scoreboardteam.getDisplayName();
this.options = scoreboardteam.packOptions();
this.nametagVisibility = scoreboardteam.getNameTagVisibility().name;
this.collisionRule = scoreboardteam.getCollisionRule().name;
this.color = scoreboardteam.getColor();
this.playerPrefix = scoreboardteam.getPlayerPrefix();
this.playerSuffix = scoreboardteam.getPlayerSuffix();
}```
Yeah my main problem is modifying this field here
Because i dont find a enum wrapper for the "ChatFormatting" class
This one? import net.minecraft.EnumChatFormat;
A ProtocolLib wrapper. I need a way of changing the ChatFormatting field in a type safe way.
Hi, can someone help me with this error I'm getting? I don't know how to fix. https://pastebin.com/06yyQwDF
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
VarHandle and MethodHandle isnβt an option?
I will not manually use reflections to change fields now...
Anyways im ditching this approach. Ill just create a scoreboard throght the api
Oh yeah md sniped me
My reasoning is that i dont want to mix purely virtual entites with server aware scoreboards
My main goal was changing the name of NPCs through the scoreboard. But ill take a different approach:
Add them to a scoreboard to hide the names completely and mounting them with a text display entity to display the name.
Ah I see
Someone can give me a help here?
https://www.spigotmc.org/threads/nms-setslot-packet-fields.598455/
I dont see a setslot packet so setslot must be a field within a different packet
See that is not quite the same as saying set slot. Could have said it involved containers lol
It comes from the previous packet
i need to inject the packets and hold the last set slot packet and get the container state?
So a packet is sent from the server and then you should get a related packet back and it should be set already
Yes
its possible to get it without get the last packet? i want to send this set slot packets without this
Probably, will need to find the related area in nms where it gets info of the state of the container
ok, thanks π
So will probably need to load nms code into ide so you can have your ide do searching for you
prob its on the Container class
I would start from the packet code in nms
And work back towards the server code
Usually less stuff in packet area making it easier to see what info its stuffing in there and where it is coming from lol
i will get all the SetSlot packets that the player receives and check the state IDs, maybe i find a pattern
Its something created by the server in the beginning. So would look at the open or click container first
ooh yeah
The id is a way for the server to track that the containers state changed usually something added or removed
Reason this is like that is because you can send a set container slot packet to update window properties without the containers state changing
Vault doesnt shade in junit so there is no need to update
there is an update for VaultAPI
1.7.1
it fixed
Junit is for testing and since its not shaded all you have to do is just make sure you are specifying correct junit version if you are doing any testing and since you are not compiling vault from source you are not running junit tests on vault
Therefore the fix is simply done by you
alright, still want NOT to have an vulnerability even with maven only
You dont
better safe than sorry
You dont have a vulnerability if you are not using that junit version
Not sure why that is hard to understand
i'm not using junit at all
Then you have nothing to worry about
so it's probably getting it from somewhere
and that somewhere is vault api
that's why it got detected
Do you know what a transitive dependency is?
Just because somethin has a transitive dependency doesnt mean said dependency is on your system or is automatically downloaded
i know
Then you have nothing to worry about
myself? i don't worry about those things
You dont even use that junit version nor are you compiling and conducting tests on vault
other people do
I wouldnt worry about other people
That cve only affects developers if at all for the mc community lol
i won't care about other people
i fixed it, the review remains
that's life I guess
Not sure what that has to do with junit
it was "in general"
but alright
i understand that junit won't affect myself and my plugin
but better be safe than sorry and don't make people angry ig
You can open an issue on github for vault if you want
Doubt the author of it pays attention to spigot discord or is even here lol
he fixed it in 1.7.1
Then nothing to worry about then lol
do any of you happen to know why goats don't have goals in their remapped nms class file?
it's weird because other animals have them and these don't seem to inherit anything
Do goats even do anything?
If its not present in the remap it most likely means there isnt any api for it yet or nothing is modified.
they have to implement it somewhere
Or simply they dont do anything goal wise
so thats a yes i did need to account for unbreaking myself
I mean even cows have goals
The api doesnt need to implement it if it isnt making use of it.
The only time something gets remapped is because it has been modified or touched. Same principle in why not all mc code is present in the spigot jar sources
this took a deep philosophical turn...
then how come every mob except goats and dragons implement goals?
Well dragon is different
yeah that one didn't confuse me
As for goats as i said there is probably nothing touched or provided differently from the api currently
I mean I am also looking at the decompiled code, no goals
When new things enter the scene not everything has an api component specific to it upon new spigot versions
This method allows spigot to update regardless if spigot implements something specific to it
So all this means is that in the future it might get added. I am not home yet to look at source code to see what exactly goats do lol
But just stating not everything in mc gets implemented into the api either
You could however look into making a pr for it
lol
Anyways driving home now
goats use the brain system
i hate when shit breaks due to typos
spent 2 hours to figure out that i used "types" instead of "roles"
A brain has sensors, goals
yeah the actual answer seems to be brains
memories
I was looking at it now
this sucks
btw why do they use Maps.newHashMap() and shit instead of just doing new HashMap<>(), anybody knows?
yeah
because they don't like orange
wise
so for some mob types I need to set a goal but for other mob types I have to set activities?
yeas
thanks I hate it
that's too much angle brackets
if there are more than 2 in a row you probably need a new wrapper class
because what the fuck
ah shit are activities not something I can create
Has to do with type inference
You should use new hashmap though
The other way doesnt work with method parameters
soooo why are they doing it this way
why not
oh ok
Its essentially the same
Except for what i said
Other then that caveat doesnt really matter
It stems from before diamond operator was thing and introduced in java 1.7
its redundant nowadays
so, some more legacy code in a class that's used exclusively in non-legacy code
thanks mojang i hate it
Basically what i said but in a long winded way to add the caveat on the one difference
this makes me want to code in brainfuck
the only static thingy I use is Sets.newConcurrentHashSet
because I can't bother doing Collections.newSetFromMap(new ConcurrentHashMap<>())
Collections.empty... 
rarely
bad
jesus how do the brains actually work
Dequeus.Collections.newSetMapSync<>() is useful too
or unmodifiable 
new ImmutableWhatever
java needs a better immutable collections api
@echo basalt do you have any clue of what happens if you give a goal to an entity type that relies on a brain?
pretty sure the brain overrides the goals
but try and see
I never messed with brains
it's also what I am assuming
but messing with goals seemed to do nothing
seems like I'll have to extend behavior and insert it into the brain somehow
from what I remember, a lot of it was immutable
so you'd need to use mad reflections and unsafe
but things might've changed
well
you can just this.getBrain().removeAllBehaviors();
on the fly
so it might not be frozen
thing is right now i'm trying to inject further behavior
just use kotlin, problem solved - every collection is immutable by default
cries in adding Mutable prefix to everything
lol
kotlin is shit
that's why lots of people don't have them
yep there's a lot of immutable garbage in here
why do you think so
no. i will not open this discussion again
not my problem
eh ok
how can I make SimpleDateFormat which puts "d","mins","secs" after digits itself?
tried this:
f.e.: DD'd:mm'm:...
^
oh my god what is this
ooh thats makes sense π
tysm
lmao
Do all new mobs just use brains now
seems like it
Is there a way to remove the background color from a text entity in spigot?
Set the background color to have an alpha of 0
Uses a bukkit color
that does not have alpha
nvm
Does someone have an idea of what this is?
bad shading by the looks
how do I include NMS in my plugin? I tried adding 'org.bukkit:craftbukkit:1.19.3-R0.1-SNAPSHOT' to my build.gradle but it could not find that
?nms
ty
hi guys , how i can create a custom enchant?
any info on how to translate that pom file into a gradle file?
Spigot uses maven
there are ways around it to use gradle but I don;t know them and they are not supported by Spigot
you would need to use something like paperweight
And then youβre forced to use paper api instead of spigot
simpler to use maven
uh where did I go wrong?
I use spigot 1.12.2, an error occurs about the absence of an object(see txt)
please tell me what is wrong?
are you implementing a raw interface?
ok so I see it's a type erasure issue but the problem is that I really want to override that
oh uh let me check I might be
extending smth abstract
me being bored in lesson
you did not put the command in your plugin.yml
wow, that's right, thanks! hehe
class Test<E extends LivingEntity> extends Behavior<E> {
@Override
protected boolean checkExtraStartConditions(ServerLevel var0, E var1) {
return super.checkExtraStartConditions(var0, var1);
}
}
this should work
I gues
uh now it just doesn't override
are you sure you have it exactly like in my code block abovne? because that compiles fine for me
np
man writing this is turning out to be quite the nightmare
I think I finally sort of understand both AI systems
np
Wasn't able to find it, didn't look much
it's in the overview of the javadocs π
public static boolean checkUpdate() throws ParseException {
Calendar c = Calendar.getInstance();
c.set(Calendar.HOUR_OF_DAY, 0);
c.set(Calendar.MINUTE, 0);
c.set(Calendar.SECOND, 0);
c.set(Calendar.MILLISECOND, 0);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date today = c.getTime();
Date date = sdf.parse("2023-03-28T22:00:00Z");
if(today.toInstant().isAfter(date.toInstant())) {
return true;
} else {
return false;
}
}
Hi, im having an issue with this code (java.text.ParseException: Unparseable date: "Wed Mar 29 00:00:00 CEST 2023")
why not using an Instant?
what?
take a look at the javadocs
ah shit
should probably not read from random address offsets
a question with instant how can i check if a day is passed
could probably do something with minus the other day and see if the result has 1 day or more
UHH?
lemme guess, that is an access violation
my halt instruction kinda fucks up then
@rocky tree no friend requests
I missed, sorry
better
Unsafe!?
looks like i triggered someone
Well, I just happen to rarely ever encounter people who use it
U still working on that minestom thingy?
but why
ye but this is something else
Is there a way to get the dead "parent" slime when a new slime spawns?
I need to check whether the slime spawned due to a specific slime dying
Ah, fourteen im gonna be a real annoying conclure today, and tell u to use varhandle
varhandles to access raw memory?
i was bored in programming class and started doing this
Ah
i guess save a dead slime's location and then check if the new slime spawn location is very nearby
How do I implement minecraft api in my project? I'm trying 'net.minecraft:minecraft:1.18.2' but I'm not getting it, it's returning "Could not resolve net.minecraft:minecraft:1.18.2"
?nms
run buildtools for your version
i probably already caused a few memory leaks
Thought about that, too. Was hoping there's a better solution π
whats even the dif between an arraydeque vs an arraylist?
Internally?
why to use one or the other
iirc resize strategy is different
Yeah deque doubles and arraylist increases by about 50%. Also arraylist starts with an initial capacity of 10 and deque with 16
wow
Just stick with an ArrayList if you just wanna use it as a List π€·ββοΈ
deque has some nice pop and peek methods
Anyway fourteen, I was gonna say u coukd use the new foreign memory api but then I remembered its still preview
Yeah but that's Stack behaviour
Its a better version of unsafe
hmm
cant do maths
its always 25900 though π€
ah it somehow loads 25800 and 100
Also btw look at this, very neat https://openjdk.org/jeps/431
I suppose there's no way of checking which Vindicator a Vex belongs to?
Besides checking for the closest one on spawn or doing another workaround.
bruh i am telling unsafe to free address offsets instead of abslute addresses
how am i not getting an access violation π€
month ago maybe
Myea
Might be possible with nms
i need smth to do when sitting in the train
But else youβd need a hacky workaround as such
Well I'll go with the workaround then - although it might be slower
Thats fair, is ur professor impressed by ur work then?
uhh professor, its just college and the java lessons dont really interest me
havent learnt anything i didnt knew
π₯²
thats how college goes
Valid
Please tell me if there are events that can catch keyboard presses, for example, when you press the Z key, do something
no
You cant do key input logging
key logging π₯Ή
The client translates those into packets, which it sends to the server where server interprets it etc
How to get the texture of a player's head as a URL
PlayerProfile#getTextures I think?
And then you have SkullMeta#setOwnerProfile and getOwnerProfile
(PlayerTextures#getSkin and getCape provide you with relevant urls)
Excuse me, can you please elaborate?
Ho do i use maven modules for a spigot plugin to add WorldGuard6 and WorldGuard7 Dependecy? Is a question that i asked yesterday to but i didn't really understand how to do it
On what? You get the skull meta from the item stack, get the player profile, get the textures and then grab the url
your probably going about GUI's the wrong way if you have a quesiton like this
Thx
You have to use nms
Xessentials has a command /home username:
Which returns a list of homes of a user.
Is there a way to make the console run this command to then catch the response to use it for another action?
lol my number 2000 becomes 25808 and 200 becomes 25800
Basically you dump some nbt data that into one of the stacks so that theyβre different by definition
or you could add a color code at the end of the name/lore
Yeah that works also
No
^ but there exists plenty of resources to learn from
Are you coding this in Java?
Yes
You can parse the command line
But doubt essentialsX exposes an api where you can hook a callback into that command
Hmmm another approach is to make changes in the userdata file of xessentials maybe
EssentialsX has an API you can use. You don't need to run a command to get the homes
Oh
That solves that
That would be amazing
I tried to look for that, but didn't find a lot of documentation. I'll give it another search tonight
Tyty
They also have a discord you can get help from
iirc its called moss
Dunno if its any good but yeah, worth a shot
Is their discord easy to find?
Linked in their plugin page iirc
Good luck
π«‘
player.getInventory().addItem(ItemStack.deserialize((Map<String, Object>) plugin.getConfig().get("items." + args[1] + ".itemstack")));
Caused by: java.lang.ClassCastException: org.bukkit.configuration.MemorySection cannot be cast to java.util.Map
only if i reload this happens, but if i add the item without reloading it works just fine
https://jd-v2.essentialsx.net/com/earth2me/essentials/iessentials#getUser(org.bukkit.entity.Player)
https://jd-v2.essentialsx.net/com/earth2me/essentials/userdata#getHomes()
You can get IEssentials by getting the Essentials plugin instance
declaration: package: com.earth2me.essentials, interface: IEssentials
declaration: package: com.earth2me.essentials, class: UserData
That seems like a bad way to do it
Why is it a one liner
Split things up and don't deserialize everytime
how can i save item, without serialize?
ok I think I was wrong, I think it might not be possible to inject a behavior into ai using a brain
The brain is for remembering stuff
yeah like remembering what behaviors mobs have
just use getConfig().getItemStack("items." + args[1] + ".itemstack")
can you directly cast a Player to an EntityPlayer? if not, how?
no
you cast the Player to CraftPlayer, then call getHandle()
also you should be using mojang maps, the proper name is ServerPlayer, not EntityPlayer
have any of you successfully injected custom behaviors into nms brains without creating the brain from scratch?
wdym
Are you on a modern version?
no
Like 1.17+
?nms
?switchmappings
that's what I mean
if you're on 1.16.5 or older, forget what I said about mojang maps
yea, i am
wait nvm i need an (nms) Entity not an EntityPlayer, should I do ((Entity) ((CraftPlayer) player).getHandle); or what
Hello, the metadata packet has changed in 1.19.4, what should i put in the params? (mappings or no mappings)
EntityPlayer extends Entity
the SynchedEntityData (DataWatcher) class has two methods
packDirty() and getNonDefaultValues(), which one of them should be in the params of the metadata packet?
Change boolean to "you have 1megabyte memory leak"
getNonDefaultValues()
Thanks.
at least that's what I'm using, and it's been working fine so far
oh wait yea i just imported mistyped something and got confused thanks
Ok, thanks for the help.
np
lol when i store at offset 1, offset 0 gets overwritten
and always with the same 25800 π€
is there any way i can give rewards to player on per hour (online) basis?
scheduler or smth
?scheduling
@hoary zodiac no i can not
today is breaking stuff day
objective: create as many access violations as you can
oh ye when i write two bytes after each other, the first one gets overwritten
Thank you for your response. This helps :)
Why are blocks that are not in the game yet (or entities like the camel) already part of spigot? π
because you can get them through the experimental data pack iirc
Yes
Oh I see. Will #isSpawnable on the entity type enum return false for those entities? And what's the equivalent for blocks?
No, they're all spawnable. We have no way to determine whether or not an entity or material is experimental
Sadge. Alright, ty
Smh maybe you should
At least you get an exception. Technically I could try to spawn each mob and if I get that Exception I know it's experimental lol.
yup but I think it was in there before 1.19.4
I tried spawning random entities - then I ran into this^^
Bro since the last IJ update
My shit just completely freezes
And my entire computer starts lagging and I have to task manager it
It is harder for blocks tho. I made a minigame that you have to stand on a random block - new blocks are included and basically make it impossible π
Yeah, Mojang sort of put us in a shitty situation
It's a hard problem to solve. Right now, you can't iterate over the Biome enum without getting an exception because the cherry blossom biome is there but if the pack isn't enabled then it doesn't exist
We're trying to migrate to a registry approach where instead those would just be null
yep same its super annoying
usually happens when I paste stuff
I added in API for armour trims for instance and it pulls from registries and makes the constants nullable if the pack isn't enabled
Pending merge, but yeah, ideally that's how all our API works moving forward
I see why there's a problem with that, yeah. Glad you are attempting to fix it for future versions though
I also don't know why Mojang introduced datapacks for experimental stuff and did not just stick to snapshots
huh I actually managed to inject my custom behavior into the brain ai system
it wasn't too bad either, first try
now doing the goal-based one...
Well it makes the snapshot process move a bit quicker. It's fine, it just sort of makes API design a lot harder
Meh I still don't think that it's a good idea. I was confused on how to run the new snapshot since nothing was available after setting up the server.
Before that change I just installed a snapshot version and everything was working. Now you also have to configure datapacks.
Well they're targeted for 1.20
If they'd just make their update notes more clear then it would be a bit less of an issue
Even with update notes there's now additional complexity if you want to play a snapshot version (with new content)
So they just contain bugfixes for experimental datapacks now?
Hm? No. The last two snapshots have been for 1.20. The first of which removed the 1.20 experimental pack and added all of its contents into the actual snapshot
1.20.x may end up containing some 1.21 features under an experimental data pack
I doubt 1.20.0 will because they haven't revealed any info, but .1 or .2 may
Was there a 1.20 snapshot that did not have the new content? As in required the datapack?
Otherwise I might have installed a 1.19.4 snapshot. I don't remember
Was like 1 or 2 months ago
Oh. Yeah in that case I installed that snapshot for nothing. Datapack would have been enough
Why i cant run buildtools
this thing wont download
Starting download of https://piston-data.mojang.com/v1/objects/8f3112a1049751cc472ec13e397eade5336ca7ae/server.jar
i tried opening it in my browser and nothing
Make sure you don't have anything that would block the download
my isp
loads fine for me
only in iran
I need free gradle lessons
speak
isnt that meant to be on a test class
yes
not in the gradle file
i mean
that's my university task
i just cloned git repo to folder
and used eclipse to open the project
and it has 70 errors
In what part specifically
cuz of imports
Its a bit bigger
idk like anything bout gradle
Than like maven for instance in terms of learning
Thatβs the dependency scope of a project (module in maven)
implementation means compile
runtimeOnly means compile but u cant use classes in ur ide
compileOnly means provided
TIL runtimeOnly
ok so i don't see micronaut which is compile
and lombok
which is provided
none of them are imported to my project
idk in maven there were buttons for update
you just paste the dependency and update
U use eclipse?
As much as he hates it, you may have to ask him @worldly ingot
He used gradle w/eclipse so he may know
help me plz
@worldly ingot
69
errors
oh shit i see
i have jdk 17 attached
and the thing is for 11
Yeah, was about to recommend the Errors or Console tabs because they tend to say what the issue is
Someone discovered gradle i see
i wish i could escape that
Im scared of it
Amogus plugin
π
im making a player head plugin wich should drop the player's head on death but it just drops the steve head:
Material type = Material.PLAYER_HEAD;
ItemStack item = new ItemStack(type, 1);
SkullMeta meta = (SkullMeta) item.getItemMeta();
meta.setOwner(p);
item.setItemMeta(meta);
return item;
}```
indentation is correct and it shows no errors
You should use setOwningPlayer
& use a player instance
i tried but it shows an error if put the ''p" variable in it
have the method take a Player var and then where you use the method pass in a player instance
im pretty new so idk what im suppost to do??
How to get the texture of the head from the front view (should be the same as what appears in the member list when you press Tab) as an image URL.
you have getPlayerHead(String p) use getPlayerHead(Player p) and then pass PlayerDeathEvent#getPlayer() to the method
check online for an api you can call
I want to know more about it.
https://mc-heads.net/avatar/NAME/UUID/100 should work
THX
where i have NAME/UUID that means a players name or a uuid and is not need, example https://mc-heads.net/avatar/The__Epic/100
getEyeLocation is a clone right?
yes
cool
ty it worked
Ah shit
hi.
i have a few questions, but i dont really need help with my code right now though.
?ask
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!
Can I use world creator async?
Can i import a .jar.src.zip file in intellij???
tf is jar.src.zip
looks like randomly concated extensions lol
fork the file over to me and I'll see what you could do (in theory)
.jar.src.zip π³
Needs more jpeg
new Thread()
The right way or the bad way?
No
Im that dumb I dont know how to create a freacking spigot thread
I mean the web ones
You just go to the section and click on button that says create thread.
?howtopostathread
Damn I am a wizard
No way
close!
I dont have that button
Are you new to the forums?
for a while I just had this bookmarked lmao
because I had a hard time finding it
and then it just happened to appear in my search bar whenever I needed it
You need to be in a forum
You're on the New Posts section.
Thanks
Don't use that link
why not
I feel so dumb bro
that'll make a thread in the spigot-plugin-development forum
isn't that what they were looking for
Which might be what they want but probably not
assuming that this is #help-development
heh Deque#get not existing
xD
Are you new to the site?
I will just use that link
You need to be in the proper forum
Like did you sign up recently?
Have you met the post requirements?
I disable adblocker and now i see it
is that a thing? O.o
You have to have like 20ish posts before you can post in any section of the forum.
I think you're limited to Spigot Discussion or something until you meet it.
π€¨
by 20 posts you probably mean replies to threads
Yea
just for clarity
Maybe it changed, but it was def a thing when I originally signed up.
I don't recall that π¦
Don't think that's the case
You should be able to post in any forum
Exception to services & recruitment
yeah there are requirements for posting in services & adding premium plugins but that's it i think
Another question how do i paste my console?
Like I saw on some forumus they show the console in a code block
[CODE]your stuff here[/CODE]
β€οΈ this is why I love kind people
i just maybe fixed one of the most random ass bugs in my code ever and i just wanted to make sure here that im not going insane
but you know how some countries like germany use commas for decimal points instead of periods
I see tables in that help page but I don't actually think we support tables lol
can the double format in code too change like that
If you mean DecimalFormat, yeah, you can pass in a Locale
I think I've only ever seen one plugin page that used it, but it was a long time ago.
god
because i had this random ass bug with my custom damage system where sometimes people were being oneshot and sometimes not and apparently this was because commas were being filtered out causing damage numbers to effectively become 10000x their original number
Unsure how that would ever be an issue unless your damage values were being passed along via strings for some bizarre reason
well the custom damage formula i wanted to be customizable
so i needed an evaluation method
so yeah the damage numbers are being inserted as variables into a string function
Help
The logs are too big and the page crased
you usually dont need to send the entire log
Then either cut down the logs or link to an external site.
just the bit with the error
?paste
Can I send it here?
use the website shadowmaster linked
or if its small enough you can send it here sure
Okay :)
Like to send a .txt file
no
But im not at my computer
Well then I cannot do anything
Open the link, paste your log, then save it using the buttons on the right, then give us the link.
That's not a valid link.
Copy the link at the top once you save it.
.............................................................
^
Either you have bukkit or you have fabric. You cannot choose both without a catch that we do not support
Okay let me delete it
Also delete the spigot.yml file
maaannn im so confused i keep getting 2 of the same library in my final jar
idk what im doing wrong
one is relocated
the other is not
Uh okay but why this for?
it is probably corrupt
Because of what the error says.
ohhhh
Omg thanks
I will give my life to you guys
β€οΈ
Now it works fine but i got a little error with the threadpool
heh
Welp. You gotta yeet that plugin
What could be the cause for this error from maven package me.gurwi.worldguard6 does not exist, im tring to add multi module thing to maven and im getting this error
name: EDFplugin
version: 0.0.1
author: EtoileDeFeu65
main: fr.etoiledefeu.edfplugin.Main
commands:
test:
description: Commande de test
permission: admin.test
permission-message: Vous n'Γͺtes pas autorisΓ©.e Γ exΓ©cuter cette comman
my plugin.yml
hi i dont understand why the console at /rl it say me "permissions.yml is missing"
yeet?
in my tuto there is no permission.yml
Remove
what the hell are you doing
Server is not fully started yet. Please retry
But it is
It happend to me before
I can wait hours
Apparently not. lol
please
then some plugin is doing things it shouldn't do
how do i find out what plugin
just dmed you about the .jar.src.zip file reply when you can
Give plugin list
beware: that is a fabric mod
Just uncompress that zip and move the files to their proper source
Figure out the right fabric version, set up the gradle buildscript, etc
its 1.19.2
proper source?
Kill "FastLogin" first
You know, the proper source folder
wait let me see
