#help-development
1 messages · Page 578 of 1
Tried that, the passangers don't rotate with the origin
Ignore what I have said
rotations are weird, idk if they are relative to the direction they are facing or not
are there any requirements for the md5 package? does it need to be a bungee cord server or nah
No, Spigot shades the BungeeChat module
sounds good, thanks
Worst case, you alienate your probably 3 CraftBukkit die hard users
Won't someone think of the children craftbukkit users
ahhh, ffs, rotations and such are relative to the origin of the display block entity, as denoted by the end of the blue sight line when showing bounding boxes.
OMFG but scaling isn't relative to the origin, bruuuuh
do I need any other plugins for Executable Items to work on my server?
should i use dependency injection, JavaPlugin#getInstance or does it just depend on the situation?
Hello, how can I get a Arrow's shooter ?
I normally prefer injection, but sometimes I'm too lazy so I use the singelton pattern. Tbh idk why people are so crazy about dp injection, aslong as you can be sure that the plugin only ever has one instance running, it shouldn't make a difference.
You could have at least made a small attempt, https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Projectile.html#getShooter()
I found x)
I was a little confused with ProjectileSource
See child interfaces
I have another question, how can I make a recipe like this?java recipe.shape( "S", "F", "", "S", "E", "F", "S", "F", "" );Because I get this error:java java.lang.IllegalArgumentException: Crafting recipes should be 1, 2 or 3 rows, not [9]
How do u set a skull texture in 1.20 again? i keep forgetting and google is being useless
Just join the string rows together is all
recipe.shape(
"SF ",
"SEF",
"SF "
);```
oooooh thanks !
yea
thanks
what the hell is this example x-x
blame alex
how can i change the display name on the head?
Does anyone happen to know whether recursive stuff is possible with CompleteableFutures? So something like
CF<Object> fun(int arg, CF<Object> cf) {
return cf.thenAccept((obj) -> {
if (arg < 0) {
fun(arg++, cf);
}
Sysout(arg);
return obj;
});
}
dont u love intellij using 70% cpu usage and just crashing
paper moment
i loveee paper
are persistendatacontainers more usefull or nbttagcompounds (id have to use bukkit)
yes
or they basically the same
if (!u.isProxy() && !address.equals(u.getLastIp())) return; !u.isProxy() returns true and !address.equals(u.getLastIp()) returns false, why does it not return?
Hi there,
I'm trying to colorise my console output message but I don't suceed.
My best attempt was with this : System.out.println(Ansi.ansi().fg(Ansi.Color.YELLOW) +"Initialisation des Shematics ignorer"); it don't display error or color code before the text but it don't colorise.
Can somebody help me please ?
use a command or something to modify the values
Because only one is true?
&& means both sides have to be true
if i have a link thats like
mysql://some_stuff
do i just add jdbc: before mysql?
No, the JDBC format is different from the mysql format.
ok thjanks i didnt know
im using a pebblehost db and it just gives me that link and a host and database name so what would i use?
If you're connecting directly using a mysql client, you should be fine using thier connection string. However, if you want to connect using the jdbc, you'll have to rearrange the string to follow this format.
jdbc:<STORAGE_TYPE>://<HOSTNAME>:<PORT>/<DATABASE_NAME>
ight ty
My server just crashes randomly, I have no idea why or wheter it has something to do with the plugin I am developing. This is the console error
https://paste.md-5.net/vudixigore.cs
Yeah, but i don't know whats causing it
I think I am, can check though
yeah, sometimes, but it doesn't always crash, so I don't know which attacks or actions are causing it
You could make it ignore npcs
Is there a way to retrieve a list of permissions without the names being turned into lower case? I'm making a prefix plugin and all the permissions are lower case
permissions are all checked lowercase
however permissions are not prefix
all permission plugins support some for of getPrefix
LuckPerms and other plugins use permissions for prefixes and suffixes and they have the correct case
End portal fires respawn event doesn't it?
i was rushing and the ! confused me
Why are you linking it to me?
They're permissions
Are you making a permissions plugin?
No, I want to retrieve the permission list without it being lower case
even teh page you linked says they are meta, just converted to permissions. Use the correct get method to retrieve meta
If you're not the one storing and handling the permissions then you probably won't be able to access them in the original case
So how do I retrieve meta?
No clue with LuckPerms
meta nodes
as I said, meta
You should implement a universal API to access though, else you are restricted to only LP
@quaint mantle Look how quaterions work lol
You ain't gonna get that by just gessing
how can i make on right click with an item in the hand send something?
?interactevent
The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.
For example, only executing code if the main hand was used:
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
return; // do not progress past this point |
}
// provide functionality
}
im surprised someone has pr'd a MainHandPlayerInteractEvent and OffHandPlayerInteractEvent
Too late now
I don't see why the interact event would be special?
not really, but I agree with choco. just use the getHand method
MD has said that firing it twice was a mistake
well I'm saying its not too late to add those events, but it would be dumb to just do that for interact event and not the dozens of other events that have hands
you'd still have the base interact event, just those 2 sub events could exist too
I honestly kind of don't mind it firing twice. Makes supporting two hands very easy
Fairly confident that both of those methods have getHand() methods
I added getHand() to every event that had been missing it up until the time I committed it
Well those were added in 1.19.1
So you're SOL
I mean if the value isn't exposed then you've not got any way to know which hand was used
I'm not sure I understand the need for forwards compat
Anyone using 1.19 should be on 1.19.4
Yeah, bare minimum 1.19.1 if you're really dead-set on this
Oh it was .2
Misread the commit dates
Interact event
does anyone knows a getlocation alternative for 1.8? i can't get it to work
so the 1.8.8 spigot api doesn't find the .getLocation
in a spawnCommand class
its a config.getConfig().getLocation("Location");
oh
how do i need to add it to my code then?
ConfigurationSection#getLocation should work
its likely your getting the wrong key / config is empty
it just shows me this in the line: Location spawn = config.getConfig().getLocation("spawn")
the getLocation is red
there is no getLocation in 1.8
just call get on path and cast it to location
and consider upgrading
Why do you need it
Not really
i agree :p but in the cases like this its nice to know when somethings added xD
Too old! (Click the link to get the exact time)
That's what we have the blame for
but then again thats code is old asl and adding @since to every single method available rn would be annoying, mainly just saying for like new things that get added
I’ll do it for payment
because its a pvp server
You can always just disable your attack cooldowns on 1.9+
yeah but pvp has changed in that version right?
really?
but idk why people hate new pvp combat mechanics
Of course
its nice compared to just spam clicking hoping you click faster than some dude with a macro
Not family friendly
speaking of that
Hows the gun situation with minecraft are they still gonna eula it :((
no if you call it pew pew instead of ak47
Pew
Apple did it first 🔫

on a scale of 1 to apple what is appling on here
💣
At least a 3
With a hint of green
how do you feel knowing that one day 1.8 is gonna be older than some of the people in here
That's okay
pew-pew-47
ngl i like the sound of this better
pew p 5 (mp5)
should i handle player profiles via UUID or playername?
so:
profilesFolder.dito.yml
profilesFolder.heshwidhdieheusis.yml
online-mode is set to false
playernames would be easier to navigate
or maybe i shouldnt create seperate files for each player
uuid
i think uuids change in offline
why would you use offline mode
welcome to offline ^
is online mode set to false just for offline or do you use a proxy/bungee?
i use proxy
wdym
then UUID will be the online one, so long as you setup bungee correctly
Maybe the proxy is also offline
i would hope not
why would i not let cracked players join my proxy but let them join my gamemodes
this is so stupid
Maybe the line was never on to begin with
am i the only one confused by this statement?
your proxy should be online, subservers must be offline as all traffic is going trough proxy, it will not allow cracked players anyway
im just correcting your statement
and i will not help you if you allow cracked players
So the proxies offline as well dito?
I still vote we ban like paper does
then leave me alone
whats the difference
yes
offline-mode jars should be something only plugin/spigot/paper devs get ong
keep it out of public hands 
okay mister inclusive and tolerant burchard
that respects everyone except for cracked players
gl getting help with that attitude
as you should
why should you support cracked players lmao
They offer no incentive or good for your server
???
theres a HUGE player counr
that statement is just false xd
ah yes the person who cant afford 25$ and is likely under the age of 8 will be a great community member
second biggest derver is cracked
just because youre from a rich country where you wipe your ass with 20$ bills doesnt mean everyone else is aswell
so what
Yeah but every country's currency is different
just because you bought a house dowsnt mean you need a 200k kitchen
i got no help whatsoever rn
its like u guys get hard when someone mentions offlinemode or cracked players
get over it

Offline mode isn't overall supported here lol
very tolerant and inclusive of the server 👍
try asking in paper discord, they will probably help 
But the question is still right: if you had the money to buy your device, why don't you have money to buy a 30 dollars game?
-at least if the device is even bought by you xD-
this is a completely stupid statement
id you had the money for a 600k house why didnt you spend an extra 200k for a stupidly expensive kitchen?
if you buy a 600k house its likely the kitchens are already 100k
Whose question is useless?
also its one-time purchase, I literally bought premium 9 years ago, that makes it 3 dolars a year lmao
see if you hadnt bought it
it wouldve made it 0 dollars a year
plus kitchen comes includede with the house
Thats like saying if you bought a 500$ pc why did you spend 100$ on a cpu
because... you did lmfao, its comes with what you buy

its mt choice not to buy minecraft and its my choice to support cracked players
Unless you buy it in seprate parts and not prebuilt
i asked a simple question how is offlinemode even relevant
and even if it is
just answer the goddamn question
instead of@giving me a lecture
Depends on the question
saving player data for offline mode servers
uuid or names basically
Ugh
Offline mode also supports saving for uuids
idk why you guys really couldn't just answer him
That's irrelevant.
If the user decides to get a new name, its their decision.
The server may or may not support it.
...
i thought uuids change based on what mojang sends?
I was meaning the server can ban players for changing names for example.
or does offline mode do something funky to keep uuids the same?
Offline mode UUIDs are based on the username
If you want to change your name you basically accept that you lose all your stats in offline mode.
if just a server, offline mode UUID is calculated on the server using the players name. Online they are retrieved from Mojang. If behind a proxy they depend on the proxy settings
Either way, doesn't matters.
Yous really could just answer him, instead of fucking make him angry.
how do i make "clickable" test and also put it inside a book lmao
im trynna make fake books with packets
yk what nevermind ill just make a gui
Doesnt mean you are entitled to help however and certainly doesnt mean this community needs to support offline mode or your choices. Remember those who choose to provide help are doing so freely and therefore dont have to.
i never said im entitled to help. when i ask a question i expect an answer, not a lecture, if you dont want to help me just ignore my question. I dont want to be taught a lesson about offlinemode when im asking something irrelevant to that. also, if this server is supposed to be "inclusive" and "tolerant" why does everyone here start crying whenever i mention legacy or offlinemode?
Again you are not entitled to help. Just because you ask a question doesnt mean someone has to answer you
get lost with inclusive and tollerant shit
literally said right there that you could ignore the qurstiont
it's against discord TOS to discuss piracy
just an excuse for bad behavior and a self entitled attitude
Inclusive and tolerant does not mean supporting law breaking.
glhf
i almost got banned yesterday for saying i dont support lgbtq bruh 🤣
That’s not very inclusive and tolerant of you
"you should be inclusive and tolerant"
i mean
i dont support it but ive never spread hate towards lgbtq
Sure but this is a public discord meaning anything you put here is free for others to comment on and as i said this community does not support offline mode no matter what you choose to believe.
just because you're free to comment on my message doesnt mean you should, and again when i ASK YOU NOT TO LECTURE ME and continue lecturing me thats just being a dickhead
You are free to ignore them
highly doubt that is the reason. Staff here would not ban for that
Yeah, i am sure there was more to it lol
if you say that in other places, yeah maybe. Here probably not
i expressed my opinion as a Christian on abortion and some dude said fuck you for being Christian and im going to burn your church 😭 i can link you the messages aswell, and then i mentioned lgbtq in a completely unrelated conversation and some helper told me to get lost 😭
Sounds like you are just being toxic and provoking an argument
i got asked what i thought about abortion dude
the first, one is unecessary though you probably should have told staff about that
and i answered the question
though it's likely too late now
they saw it
choco told me to stop talking
and i alr reported rhat dude so
idrc
Yeah, "you were asked" means you were already in an argument and someone was pushing your buttons
no.. we were talking about crime rates and new laws
and someone brought up abortion
and asked me what i thought about it being legal/illegal
that was probably me, we were just discussing. Not sure at what point it got out of hand, probably after I left lol
Choco does not tell people to stop talking about somethign unless you had already been warned
I remember all that and it wasnt quite that elegant as you put it lol. However what you said wasnt also the worst either
not sure why youre trynna defend that guy but whatever
ill link you all the messages id you dm me
Choco just didnt want you to rile up more people and it turn worse theb what it was at
defend Choco? Just I've know this crowd for a long time so I know how they react
usually if chat is too heated staff want to cool it down
still defending the guy that told me he would burn down my church and that im a little bitch for being a Christian
meant to reply tk thsi
Let‘s just keep wasting our times in the development chat
this*
I do not believe for one instant that Choco said that
reminder we are in #help-development as well
yeah wtvr
link his message where he threatened to burn down your church
^
not choco* but wait ill find it
thought so
#general message
never said choco said that
lol fucking simple
ha completely OUT of context
Hey guys
theres like 7 other messages i reported
what if we didnt talk about this again
I did, you said there shoudl be one day a year where nothign was a crime
what's poppin
especially not in development
It's clear that assumptions were made and things were handled poorly.
he was replyign to YOUR statement
Can we take it out of this channel?
yeah as a joke? if i had taked the same way about Lgbtq that he did about my religion i wouldve been banned from here and reported by now
but youre only tolerant when it suits you 🤷♂️
Yeah that happens all the time, you'll have to get used to it
I'm not tollerant at all. I hate everyone equally
but its unfair how me not supporting lgbtq is a huge deal but him sayinf stuff like that is nothing

For the most part I agree, but I gotta say I am a bit discriminatory against myself
#general message
@eternal oxide very inclusive and tolerant of him
very respectful gentleman
Stop trying to force this "tolerant" crap on everyone.
Be polite but respect is earned
am i homophobic and need to be banned?
yes
you are such a joke honestly
and he was being polite
as i recall
right?
I really don't care
you did before i linked you the messages and proved you wrong;)
um, you proved nothign, You seem to live an a fantasy world
In order to be more included and tolerated, just use
if(e.getAntagonist().isBeingIntolerant() || e.getAntagonist().isBeingExclusive()){
e.setCancelled();
}
}```
Spoonfeeding ik, but still
e.setCancelled(bool) takes in a boolean value. This code would not run unless you aren't implementing Cancellable, which I think you should
Eh, phone code
I don't wanna spoonfeed, but I'll help you
<3
public void onRespond(PlayerRespondToCommentEvent e){
if(e.getAntagonist().isBeingIntolerant() || e.getAntagonist().isBeingExclusive()){
e.setCancelled(true);
}
}
Also gotta add the FatherNotFoundException to the method signature since that error is common.
i probed that youre full of shit and so is this server where not supporting lgbtq is a bannable offense but literally disrespecting a whole religion and crying over something that doesnt even concern you is nothing and just a joke. Choco even told the guy that was harassing me that i was a troll 😭
Yeah I can see why you were told to stop talking
god this channel is slow, gotta wait for an actual dev question for this to clear up
Ay, uh... this server is about code and plugins, not religions or sexual preferences.
Everyone needs to keep that to themselves
NO
Well lgbtq isnt a religion. And quite a lot of people here are not religious at all. Disrespecting a religion isnt the same as disrespecting a person
yeah disrespecting a religion is worse
It's a sexual preference. Nobody needs to know that here.
whats bad about it
everyone who uses e for event names, please rename them right now
single letter naming isn't clear
^
UNLESS it is ALWAYS done that way throughout the entire project for that particular variable
No it isnt, but you can choose to believe so doesnt mean everyone else has to agree with that either.
I mean you could in that case, but for sake of consistency its better to not
So if ALL players and ONLY players are listed as p, then it's fine
but that's hard to do if you have a killer and a killed
I prefer to just be more direct
comments are overrated tbh
I don't comment my code. I do right docs though
most codes dont need comments but need better naming and more readable code
Disrespecting anything is moot, because it's opinion vs opinion.
Docs = life
I've been working on documenting my code better and it honestly is the most satisfying thing to never have to go back and read my code to know what it does, I just hover my mouse and boom, full sentences.
i forget what my code does in like 2 hours
Sure, but disrespecting a religion still isnt the same as disrespecting a person
Either way, people just need to chill and not be so sensitive. Who cares what a random stranger on a social platform thinks about you? It'd just as well be a bot. Just do your own thing.
Or randos can just leave if they just want to rile people. Cant fault a community that mostly self regulates
There's reasons I'm not a moderator here XD
I just wanna code
Not sure why i would care?
Did you think I expected you to care? XD
its not that i care tho, its the fact that when expressing my opinion about the lgbtq i have to be cautious and watch my words not to get banned, but whenever someone expresses their opinion about Christianity, its whatever and doesnt matter. its not even expressing an opinion, i love chatting about my religion, but straight up disrespecting it for no reason isnt cool
No, hence it being stupid you say such things
and im the one that gets blamed for being harassed lmao
I get the frustration, it's a daily situation for me. So I just discuss intended topics instead.
this is being disrespectful aswell ^ literally no manners
You feeling ok or do you need to get some air?
Ya'll missed the sarcasm in that response.
No, just noted that the sarcasm was a response made in negative emotion, and directed at my lighthearted jab at myself
Well guys I'm out. Too much butthurt here.
I'll return when the code comes back
being respectful and polite towards a person you dont know is really easy idk why everyones so rude here
I disrespect and am rude equally to everyone so dont feel like it is just you 😉
why not be respectful and polite to everyone equally
Did they do something deserving of that from me?
When you get the same kind of response from everyone you really should work out the common denominator is you.
ive always been taught that youre the reflection of your home, your manners and the way you act around people says a lot about where you grew up and how youve been taught as a child
Lil you are still pushing buttons and can;t work out why you are riling people up
I do, just dont care for peoples emotions is all
Thing is i choose when i want to be polite, not because some rando on the net said so
it should be the other way around but you do you
Well unfortunate for you i suppose. Here in the US we get to choose
Is there any disadvantage to start imports? I just noticed IJ has been using them. I've always shyed away from them, I was wondering whether I should just turn this IJ setting off
Yes
Star imports, causes the compiler to import everything in that package whether you use it or not
I read start imports and was thoroughly confused
You should, its only beneficial of you use IJ's build system because its system will correct the imports to not include everything
For efficiency's sake, you should only import exactly what you need
Welcome to #help-development where helping developers is often overshadowed by unnecessary, over-drawn out conversations leading to nowhere
God IJ making this annoying, I just added 9999 imports required lol for star
Can we not, please?
Lmao
Any idea why WorldCreator#createWorld is nullable?
Where were you 10 mins ago? XD Coulda used the help when it was still burning down
I don't see anything in the docs for it
If it fails to create world, would return a null?
He was enjoying the fire
probably playing the banjo with his GF
or whatever canadians do
Dancing with mooses
Why would it fail to create though?
Well, that's a good question. Maybe a corrupted world or existing folder by that name already exists?
so the bungeecord code makes it seem like
translateAlternateColorCodes doesn't parse rgb tags, but ChatColor#of does. BUT the problem is that ChatColor#of seems to hardcode the section symbol
should I just translateAlternateColorCodes(of("...")), double it up?
ah no of() doesn't do what I want either
translateAlternateColorCodes should parse them if you use the correct format
But the correct format is wack
whats the correct format?
&x&r&r&g&g&b&b
what the fuck
Yea, but doesn't ChatColor#of() do that formatting?
This is why most people make their own parser for &#rrggbb
its gotta be some NMS thing
Wait, &g? What's that do?
is there a regex or method someone made to convert a nicer RGB tag to the bungeecord parseable one
nvm apparently the serverlevel adds itself on its constructor
which breaks SRP but ok
got one in a gist?
or maybe somewhere in this channels history
Its nms what did you expect lol
idk I just need something to parse a nice looking tag
I think this is what most people do.
public static final Pattern HEX_PATTERN = Pattern.compile("#[a-fA-F0-9]{6}");
public static String formatHexColorCodes(String string) {
Matcher matcher = HEX_PATTERN.matcher(string);
while (matcher.find()) {
string = string.replace(matcher.group(), "" + ChatColor.of(matcher.group()));
}
return string;
}
Yeah that’s basically it
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.md_5.bungee.api.ChatColor;
/**
* Represents a utility class for text.
*/
public class TextUtils {
private static final Pattern hexPattern = Pattern.compile("#([A-Fa-f0-9]){6}");
/**
* Colors a String, replacing all hex colors with their respective ChatColor.
*
* @param message The String to color
* @return The colored String
*/
public static String color(String message) {
Matcher matcher = hexPattern.matcher(message);
while (matcher.find()) {
String color = message.substring(matcher.start(), matcher.end());
message = message.replace(color, String.valueOf(ChatColor.of(color)));
matcher = hexPattern.matcher(message);
}
return ChatColor.translateAlternateColorCodes('&', message);
}
/**
* Capitalizes a String. (e.g. "hello" -> "Hello")
*
* @param toCapitalize The String to capitalize
* @return The capitalized String
*/
public static String capitalize(String toCapitalize) {
return toCapitalize.substring(0, 1).toUpperCase() + toCapitalize.substring(1);
}
/**
* Removes a file extension from a String (e.g. "hello.txt" -> "hello")
* @param fileName The String to remove the file extension from
* @return The String without the file extension
*/
public static String removeFileExtension(String fileName) {
return fileName.substring(0, fileName.lastIndexOf('.'));
}
}
Enjoy
The whole mess, look at that
Smh you don’t force the rest of the string to lowercase
can't bother
lowercaseize
Lol
checkmate
middlecase
Java doesn't want us to dynamically load classpaths. But Bukkit force it in order to load plugins. Bukkit doesn't want us to dynamically register commands. But I ... ?
You can dynamicly load commands, but why would you
its less annoying
that's about it. I dynamically load my commands
I might end up making a gradle / maven plugin for it though
But Bukkit doesn't provide an API
no it doesn't
Can you give me the code to load it? Because on the internet is unreliable.
can anyone help me understand [04:10:29 ERROR]: Error occurred while enabling Uhc v1.1-SNAPSHOT (Is it up to date?) java.lang.VerifyError: Bad type on operand stack Exception Details: Location: me/blendy/uhc/npc/NPCManager.handlePacket(Lnet/minecraft/server/commands/CommandBanIp;Lorg/bukkit/entity/Player;)V @188: invokespecial Reason: Type 'net/minecraft/tags/TagDataPack' (current frame, stack[3]) is not assignable to 'net/minecraft/world/entity/ai/goal/target/PathfinderGoalDefendVillage' Current Frame: bci: @188 flags: { } locals: { 'net/minecraft/server/commands/CommandBanIp', 'org/bukkit/entity/Player', 'java/util/Iterator', 'me/blendy/uhc/npc/NPC' } stack: { 'org/bukkit/entity/Player', uninitialized 179, uninitialized 179, 'net/minecraft/tags/TagDataPack', integer }
i particularly would like to know what class the @188 is referring to
this error occured when i ported my plugin from 1.18.2 to 1.20, in 1.18 it run just fine and in 1.20 (after a couple adjustments) i got it to compile but to throw this at runtime
(it's not NPCManager.java as that doesn't have 188 lines)
hey
Anyone know how to find out the new packet names? I am porting smth from 1.12 that creates a PacketPlayOutSpawnEntityWeather packet and I cant find the equilivent for 1.20
https://nms.screamingsandals.org maybe this is useful
nope
I already have 2 tabs open comparing both 1.12 and 1.20
I cant finda nything I will try again but nothing related to weather exists in 1.20
What does that packet even do? Change the weather for the player? For the world?
Set the type of weather?
I don’t think there’s a special packet for that anymore
I imagine it’s just spawn entity
Yeah that's for lightning or thunder or something iirc
Or are they looking for player specific packets?
Wait. wtf?
Why's that one categorized under loot?
The weather affects fishing?
yes
Higher catch rates, I think unique types of loot
Did not know that. lol
Has that always been the case kinda like local difficulty or was that mechanic introduced sometime later?
Welp. Been doing it all wrong then. xD Never knew about it.
can you send players messages async i cant remember
Yes, there's the AsyncPlayerChatEvent.
ah neat
Yes messages are safe to send async
can anyone help?
It’s just a packet
you are comparing two different class types i believe, whats the code that triggers this?
its the error line of this class (NPCManager)
that method doesnt even have reflection (directly) 😭
i dont know
thats why im so confused
where are you using TagDataPack ?
whatthe
nor CommandBanIp
maybe bad nms remap?
¯_(ツ)_/¯
and buildtools
i did buildtools
Are you depending on the right version
i dont wanna seperate from the convo too much but
what cli is that?
Remove the spigot-api dependency
That's OhMyPosh
spigot includes spigot-api
wdym by cli, its the intellij terminal, using zsh and pl10k
Ah, so OhMyZsh
javadocs and all i need too?
Should
yeaa
oh is a intellij plugin interesting
Wrong reply but whatever
What does your build section for the special source look like?
how it looks on my emulator (konsole)
also @civic apex not sure if you saw this since it might of gotten mixed into the convo lol
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-obf</id>
<configuration>
<srgIn>org.spigotmc:minecraft-server:1.20.1-R0.1-SNAPSHOT:txt:maps-mojang</srgIn>
<reverse>true</reverse>
<remappedDependencies>org.spigotmc:spigot:1.20.1-R0.1-SNAPSHOT:jar:remapped-mojang</remappedDependencies>
<remappedArtifactAttached>true</remappedArtifactAttached>
<remappedClassifierName>remapped-obf</remappedClassifierName>
</configuration>
</execution>
<execution>
<phase>package</phase>
<goals>
<goal>remap</goal>
</goals>
<id>remap-spigot</id>
<configuration>
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
<srgIn>org.spigotmc:minecraft-server:1.18.2-R0.1-SNAPSHOT:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:1.18.2-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies>
</configuration>
</execution>
</executions>
</plugin>
i didnt but it shouldnt cause issues
it compiled and worked totally fine with that same setup when it was on 1.18.2
and it did on various other plugins i made
but ill remove it sure
Are you making this plugin for 1.20.1 or 1.18.2?
Cause you missed the section at the bottom that still says 1.18
Plus, you should be using version 1.2.4 of the special source plugin
If you are working on 1.19+
Ah yeah that’ll do it
it worked!
well im getting other exceptions but they are unrelated and not throwing bytecode i dont understand at me
ty
@noble lantern https://github.com/romkatv/powerlevel10k
if you want i can share my dotfiles @noble lantern
how long all these fancy terminals been around for? i swear these werent around a few years back
I assume those are like config files for that cli?
config files yeah
I think they've been around for quite some time now.
called dotfiles because they usually are in .config or dirs that start with a dot (hidden in linux)
terminals are also composed of a few different componentts
depends on what you mean
outside of eye candy
zsh and its plugins are really useful
mainly just the eye candy :p
srsly
I think people just aren't aware of them. It's not like most server admins rice their terminals anyways.
i installed omz on school computers lmao
Ah, I use exa.
btw you also need a nerd font @noble lantern
sadly i do my dev work on windows :p
you can use wsl
Those icons would be nice, but I don't think it would play nicely with exa.
That uses the normal ls command right?
and you should prob try to switch it to linux if you can (if its not like for windows)
no i just aliased ls to colorls
i also aliased neofetch to neofetch | lolcat
Wait, what's lolcat?
i aint heard that name in a fat minute
aliases
rainbowwww
idk why but the thing on the bottom looks like the shadow outline of a reddit mod lol
?
whats that
nothin nvm xD
Ah geez I see it
btw its showing the colors of the theme
Ooo, can you share those?
idk what that is ._.
Those look clean.
im using the bl1nk theme
with jetbrainsmono nerd font
also even if you use bash you can get some customization of the ps1
this is how i have my bash (which use when i ssh as then i lose stuff like nerdfonts, truecolor etc)
https://bash-prompt-generator.org/ you can make it w sth like htis
then paste it into your .bashrc
Can anyone create a plugin for me?
it is simply a plugin that after death a chest menu will appear with 2 options, if the user chooses option (A) they will lose 10 experience and keep the item in their inventory, and if they choose (B) they will lose the same item as normal and of course they won't lose experience. If they don't choose or leave the server, the plugin will choose (B)
I don't mean grave
You can probably go on the forums and offer someone $5 to do it lol
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
😛
Can you do it again?
if i have a link thats like
mysql://some_stuff
do i just add jdbc: before mysql?
for a single-host connection yes
well it doesnt work
Show us the connection code
all i have is the username, password, port, and host im just trying to connect to database google isnt very helpful
String password = "pass";
String username = "user";
try {
database = new Database(url, password, username);```
``` public Database(String url, String password, String username) throws SQLException {
connection = DriverManager.getConnection(url, username, password);
}```
what library you use for database (what provide the Database class)
java.sql.*;
please help me code a free plugin
if thats what you ment?
encapsulate DriverManager.getConnection in a try catch
and print the exception if any
you didn;t load a driver
wdym
Class.forName
huh?
i didnt need to do any of this last time :p
20€
hello, id like to make a plugin that disables the console messages that op's get in the chat. I've seen some people saying it is impossible to do. does anyone know if it is actually possible/impossible to do. to add, the gamerule settings do not work
can you provide example of what messages
gamerule exists
the gamerule settings do not work
how does that not work
when the gamerules are set to false, the console commands stil come through
again, provide example
wont let me post pics here for some reason
!verify
Usage: !verify <forums username>
ye the gamerule should work
Which one did you set and to what
/gamerule commandBlockOutput false
it-
That's not coming from command blocks is it
😛
Is there any force resouce pack plugin for proxy server?
does the main one not work for proxies?
Yeah only one pack
ah you want multiple packs per server?
Setting in properties.yml per each server should be fine
hash's are broken on 1.17+ too btw so change names if you want packs to update from an old one your using
No only one resource pack for proxy
I wanna send resource pack when player connect to proxy server only once
To do that your gonna need to send the pack manually to your players, or just use https://www.spigotmc.org/resources/forcepack.45439/ and deal with the load times between servers
To the client, resource packs are bound to the specific server, meaning even if you send the same pack on another server in your bungee network the player will be forced to load it in again
One way around this possibly is just send them the resource pack in the hub, when they change to a new server they should still have the resource pack equipped as long as you arent sending a new one to them
chatgpt ass

please help me code a free plugin
what
We can help you with the spigot plugin coding
If you're looking for someone to code you a plugin for free then
GL and
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
I just got chat gpt to write me a plugin
idk if it's good, no coding experience and simple concept, doesn't do database or any threads
probably bad
wanna scan over it
It is probably not the best
am no good bout java ._.
how does leaf decay work? does every block check in an area for logs during physics event?
it works through random block ticks (e.g. gamerule randomTickSpeed)
forgot this thread exists such a nice thread
needs to stay alive like the amogus one
They have "distance" block state that gets updated when: a log block is placed/removed or leaves are placed/removed
When the distance is 7 (I think) they decay if they are not persistent
Or something like this
The what
yeah that's super useful for my first plugin try
Why does that exist
does every block check within the maximum distance or will it just iterate around itself for a leaf block with a lower distance tag
sorry i said that in a way that makes no sense
I think it checks around the 6 touching blocks and gets the one with the lowest distance and then adds one to its own state
and then sends an update to update the other leaf blocks
ohh okay, so to replicate leaf decay youd have to make a custom tag that serves as the distance tag
thanks
I don't understand what you're trying to do or how but I hope my explanation was understandable enough and helped you.
I actually dug thru the leaves block code quite a bit when I was trying to replicate them in a minecraft clone
Oh I'm just trying to add custom leaves but for that I need to replicate leaf decay
Ooooh GL!
Ty
How computationally intensive is player. getPersistentDataContainer().get(..., ...)?
Like, would it be a big performance issue if I call that for every player online in a single tick, and there are ~100 of them?
nah you can spam it thousand of times
its mapped internally
Oh, awesome
but you should still do some kind of distribution
please help me code a free plugin
Whats the best listerner to use to see what a user is wearing
20€
like if it changes or what
just thjat its their
For the third time: not the correct place to ask this
you dont want to check the players inventory everytime he moves
rather use a scheduler
what exactly are you trying to do
Is it possible to set player's max health to like 5 hearts? (Only 5 hearts would be displayed)
yes
player.setAttrubute(Attribute.GENERIC_MAX_HEALTH, 10, Operation) or something
Thank you! I am testing it right now
player.getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(aDouble);
Is it a permanent attribute?
it is permanent until the player dies at least
not sure if it persists even thru death
🙏
?paste
when I package my plugin using maven, there is no remapped version in the target folder. The mojang mapping work as they're supposed to. This is my POM.xml:
https://paste.md-5.net/yolezeposa.xml
https://www.spigotmc.org/threads/spigot-bungeecord-1-17-1-17-1.510208/#post-4184317
Scroll to the bottom of this post
There is maven config
I am making levels for each mob, is there a more effiecent way than creating a class for each mob?
Probably yes
You know any?
no, since you have not provided any useful info
Have level integer field and calculate every stat based on that?
how can I change block hardness using nms
I want the player to not be able to mine a paticular material at all (no breaking animation)
you can't in the way you want
I already got the mining animation done with packets
just want to prevent potential issues
the breaking progress is client sided
The only way you can influence that is with mining fatigue iirc
im using mining fatigue currently but theres small ways to make it glitch
if you're trying to create your own mining system, don't forget insta-mineable blocks exist.. like hypixel did
I already made my own mining system I just wondered if I can make the block unmineable
are you applying mining fatigue only when player is looking at a specific block ?
I apply on mining abort event
and remove if mining any block thats not mushroom
also on join, death, ect
ye I don't believe you can solve that
unfortunate
But try asking later if someone else has a better idea
There is a metadata tag you can set for this, if you look at the bedrock block nbt you should see it
No need for events if you just set that tag
alright, cool
I cant remember its exact name but the bedrock block uses it and is why you cant mine it lol
I can't seem to find it
I believe that property is controlled by hardness tho
Bedrock having -1 so unmineable
so ill have to figure out how to change hardness of block to -1?
again, you can't
alright
You can, probably takes some nms since i dont see an api method for it.
Will be able to look when i get home
nope, that property is not synched to clients
You should use Mining fatigue and handle all the block breaking server side
That is the only real way to do what you want
They are using it, but they remove the mining fatigue and that causes small timeframe where players can start mining the block
Yeah don't remove it
It needs to be there all the time
what gamemode are you making cus you can restrict some stuff and get away with it on some gamemodes
if I dont remove it then id have to simulate block mining for every vanilla block
To give you an idea on how to change the hardness
ill check it out thanks
Yup
Again hardness is not synced to the client
It doesn't matter if you change it
If you have custom blocks you only need the mining system for them
The problem is there will be a slight delay before the mining fatigue activates
Which is why they can't remove the mining fatigue
And as such need to handle mining of all blocks
Please help me convert the code into a plugin
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
Not sure if this matters since the server controls whether or not a block can be destroyed
We've told you this so many times now
I will have to test when i get home
In here please
Yeah but the animation is client side
Which is what they want to prevent
Low ping I assume
Thought they wanted it unminable?
Not sure why thr animation would be important lol
They want to control the mining speed
So it looks right
Well they said unminable or that was what i read, in that case it wont help using that tag then
Ah ok
Again if its in regards to the animation, then the tag is still no good. Personally i wouldnt care about the animations if its a block not intended to be destroyed lol
wat da hell they got the csgo cl_righthand 0 in minecraft??
setCustomModelData?
set not get ok
?:D
Are you learning English ?
lmao
hello, i can't seem to figure out how to get the entity a player interacted with in an PlayerInteractEntityEvent, currently using a raytraceresult, using this code: java @EventHandler public static void onPlayerInteract(PlayerInteractEntityEvent e) { RayTraceResult res = e.getPlayer().getWorld().rayTraceEntities(e.getPlayer().getLocation(), e.getPlayer().getEyeLocation().getDirection(), 5); e.getPlayer().sendMessage(res.getHitEntity().getName()); }
and res is just null, what am i doing wrong? there seems to be no e#getEntity method for some odd reason...
e.getRightClicked()
ohhh
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEntityEvent.html
I'd recommend checking the docs in the future.
That way you spot what you are looking for pretty quickly:
declaration: package: org.bukkit.event.player, class: PlayerInteractEntityEvent
hi again, is there a item property to disable picking it up for one instance?
item#setPickupDelay
You can set it for entity
Yeh so what you are asking?
Or -1
just realised it after
Hello guys
How can I change the position of the axis of rotation of a quaternion? Basically I want to do the same as "Translation" of display but in quaternion. is this possible for the display entity?
@wet breach
my game is finished!!!
Ima upload it on spigot soon
first i need a repo before that
and Id also like to stress test it
you making it open source?
sure why not. I wanna be critiqued on how to make it more efficiant
I wont sell this one.
what is better is if people made PR's instead 😉
hmm so not open source?
just ask to look at the code?
no open source is good, allows people to make those PR's. PR means pull request, in order to make a pull request someone has to clone your repo to their account, and then make changes. Then there is a button where you can submit a pull request and this will go directly upstream, which would be your repo and it gives you the option to look at the changes they are asking for you to pull into your repo that they made.
yeah I know that. Just thought you meant that I can only allow certain ppl to get access since u said "its better to do that"
I thought you meant mutually exclusive
I said what is better if its going to be open source of other then people just commenting on your code
is that they instead just go ahead and submit changes for you
yeah true
nice
also
before I publish it... I wanna stress test it first
how can I get 10 ppl to use my plugin at the same time on the same server
xd
I want others to try to break it and find bugs im unaware of
what kind of
"Floor is Lava". You party up with as many friends as you want
oh we're back in 2017 now
and get teleported on a plot of land where a vanilla generated area is placed. and then lava slowly rises. last to survive, wins
what am i supposed to add to this pom.xml?
any dependancies you need from other plugins
the jar is 3kb
otherwise called "API"'s
its empty
just cause u didnt write code, doesnt mean it's empty
just stfu if you dont know what youre talking about
rude?



