#help-development
1 messages ยท Page 79 of 1
it does as those are the official math functions supported by sqlite
if you want to add, then do the addition before the query
LynxPlay's mom is supported by SQLite
BLOB
do you know this series on TLC about extremely obese people?
"my life with 600 pounds" or sth?
can't say I know it. These series of over weight people and other things change every year or something. In otherwords I have seen shows about such topics but like there is just so many of them lol
I only once watched one episode and this perosn was like "the doctor prohibited everything I Love to eat D: Only thing Im still allowed to eat is bacon and rib eye steak :'(" and then she started drying
crying*
lol
so either the doctor is a bit stupid, or there was a huge misunderstanding lmao
obviously there was a misunderstanding or they made it up. These shows while there is some truth in them some things are over exaggerated. It is a show afterall
she probably made it up haha
but yeah, funny series
drying
your mom is drying my clothes, after I
ehm
only cuddled with her
idk that's all I could come up with rn
Is it possible to cast a mob to a TamableAnimal?
Well it is not
then, ofc not
than i can not use .wantsToAttack
if(entity instanceof TamableAnimal) {
TamableAnimal animal = (TamatableAnimal) entity);
entity.wantsToAttack(...);
} else {
// It's not a tamable animal
}
^
entity
yeah that's how it works
animal
adele is drunk again
cant blame her
mob
YOU MAKE ME WANNA CALL YOU IN THE MIDDLE OF THE NIGHT
I KNOW THIS IS A FEELING THAT I JUST CANT FIGHT
Dumbenion

ignore us
I will smother you with barbeque sauce
@eternal night
lol xD
it's true
fun fact
Double.NaN == Double.NaN is false
@quaint mantle Weren't you able to add discord commands?
We need a command for this: https://blog.jeff-media.com/switching-from-spigot-mappings-to-mojang-mappings/
I'm tired of explaining this every day again
"Yo guys I added spigot remapped but now EntityPlayer is gone, fuck mojang mappings, wtf wtf wtf"
then we could just do ?learnyourmappings
?switchmappings
what happened to light mode
people kept complaining about it
bruh
then they complained about the dark mode, since it was "too dark"
so yeah I now adjusted everything a bit
just make it toggleable
it is
it's wordpress, yk
Can someone do a simple visual example about diff getKeys(false) and getKeys(true) ?
yeah but it's a full featured wordpress theme that I bought for 70โฌ
I am already happy that I managed to get the "code blocks" look half way decent
that is totally not worth it
I wont touch this again for the next 2 years lmao
i couldve made this website
yeah it wasnt
besides your main page
I dont even have ads on my site, I gain nothing from people visiting it ๐
Imajin do you code templates?
bro dont get me started on this
bump again
that theme costed me 250โฌ
damn i couldve made this
dont ask
top1:
second: "hi"
top2: "other"
getKeys false returns top1 and top2
for what
Html and css
getKeys(true) also throws you top1.second
I think if you are a developer, you should be expected to make your own website.
wat
that is a very shitty expectation
reinvent the wheel ๐
ui design is its own thing
I do java stuff. I have no idea about websites and stuff
I hate web development lol
it sucks
legitametally its awful
I could have made the website myself but that would take me like 30 hours. and in 30 hours I could earn more than 250.โฌ
I mostly code mc plugins and also javascript backend
i have lots of experience in web development but i hate it
I mean get someone to design your website, but web is so important nowadays that I think everyone should have some idea how to create a website
I seem to have caused a riot over my personal opinion
webdesign is like the cursed part of development
I mostly designing my own file api that why so im trying to figure how to do the section part haha
yeah I'm awful at design
+1 agree mate
I'd rather pay someone 250โฌ and have a nice theme immediately then spend 30 hours myself only to have a half-assed version
some people are just better at webdesign than me
I mean
nice
$250 is a robed lmao
I mean when i get a chance I'm going to make my own website, but like I hate web development it sucks
Frontend development sucks, backend not ๐ฅฐ
so if lawyers dont even defend themselves, why should developers do their own website
Still 250 is a gun steal bro
a gun steal? wtf lmao
is this some kind of idiom I dont know yet?
no its bad english for you got robbed at gunpoint if you payed that much
That i was trying to say thanks
b u m p
ah okay, well I decided freely to buy this theme
Didnt you already said bump?
yes but im bumping again
Map<Integer, String> inheritedPrefixes = user.getCachedData().getMetaData(QueryOptions.nonContextual()).getPrefixes();
int priority = inheritedPrefixes.keySet().stream().mapToInt(i -> i).max().orElse(10);``` This is more of a Java than an API question, so I'm going to ask here. How would I get the prefix's string of the highest `priority`. I'm not sure what to change in the `int priority` variable to do this. I of course need it to be a `string`, but yeah.
(still looking for webdesigners for a website for free for my charity - check the pinned post in #general )
Use a comparator to sort them
Could you elaborate on that, please?
i dont really understand your question, tbh
oooh wait
I'd stream the map's entries, then sort them by priority.
no need for a comparator bruh
the key already is an integer
Oh ok
I didnt know
Im just trying to help...
I'm not entirely sure how I would get the string of it though, that's my main issue.
I get the max priority, just not the string ๐
np I didnt mean to be rude lol
do you wanna get the "lowest" or "highest" prefix?
map.entrySet().stream().sorted(Map.Entry.<String, Integer>comparingByValue().reversed()) .forEach(System.out::println)
Both :P
Something like that mfalex?
erm whut lol
Well, two variables, one with lowest and one with highest.
why do you limit it by 10?
well just a basic example
Map<Integer, String> inheritedPrefixes = new HashMap<>();
String highestWhatever = inheritedPrefixes.entrySet().stream().sorted(Map.Entry.comparingByKey()).findFirst().get().getValue();
this will get your the lowest string
And what about editing them via stream?
why edit the stream? I thought they just wanted to get the highest/lowest value, sorted by the key?
Let me try it!
He want to sort them and modify them also
to get the highest value instead, just do .reverse()
I am extremely drunk, but here's my suggestions for both, highest and lowest:
// Get the "lowest" value sorted by the key
Map<Integer, String> inheritedPrefixes = new HashMap<>();
String highestWhatever = inheritedPrefixes.entrySet().stream().sorted(Map.Entry.comparingByKey()).findFirst().get().getValue();
// Get the "highest" value sorted by the key
Map<Integer, String> inheritedPrefixes2 = new HashMap<>();
String lowestWhatever = inheritedPrefixes2.entrySet().stream().sorted((o1, o2) -> -o1.getKey().compareTo(o2.getKey())).findFirst().get().getValue();
theare are probably way better methods. But I always think
- get it working
- improve it if the current version is causing problems, just let it as it is
or do you need both, the highest and lowest thing at the same time?
if so, of course you shuoldnt stream over the map twice
I need them separately, however, I am getting an error. Wouldn't I need to use the previous map (Map<Integer, String> inheritedPrefixes = user.getCachedData().getMetaData(QueryOptions.nonContextual()).getPrefixes();)
To get the prefix?
I should be needing to get the prefix.
I'm assuming it's java Map<Integer, String> inheritedPrefixes = new HashMap<>();
after stream(), filter it by adding this .filter(entry -> !(entry.getValue() != null))
that'll get rid of all null values
so just toss that inbetween stream() and .sorted(...)
This is the exact map I need, yes? Map<Integer, String> inheritedPrefixes = new HashMap<>();
your key, e.g. the Integer, will never be null though, right?
Ah, I see
have you used streams before?
Never ๐
is there a good guide on how to create npcs in 1.19
they are awesome! a bit confusing at first, but once you understand what they do, you'll learn to love them
Yeah, they seem very confusing haha
im trying to make a ServerPlayer using nms but i need a ProfilePublicKey no fucking clue what that is
Ok
oh wait is the ProfilePublicKey for chat signing?
Do ProfilePrivateKey
Not public
It will show for whole server
ProfilePrivateKey
public ServerPlayer(MinecraftServer server, ServerLevel world, GameProfile profile, @Nullable ProfilePublicKey publicKey)
oh wait i can pass null
ill try that
just a tiny example
List<String> names = Arrays.asList("peter","mfnalex","john","obama");
List<String> sortedNames = names.stream().sorted().collect(Collectors.toList());
String nameFirstInAlphabeticalOrder = names.stream().sorted().findFirst().get();
String nameFirstWithoutEInIt = names.stream().filter(name -> !name.contains("e")).findFirst().get();
we use "findFirst()" because we dont know whether any of those things actually "survive" the stream
e.g. the last one, "first name without an E" might be null if we don't have a name without an E in it
yea once your done with findFirst you have to use an optional ๐ญ
that's why findFirst() or findAny() returns an Optional
sure, but in thise case, its obvious that there is a name without an E ("john")
Map<Integer, String> inheritedPrefixes2 = user.getCachedData().getMetaData(QueryOptions.nonContextual()).getPrefixes();
String highestPrefix = inheritedPrefixes2.entrySet().stream().filter(entry -> !(entry.getValue() != null)).sorted((o1, o2) -> -o1.getKey().compareTo(o2.getKey())).findFirst().get().getValue();``` This one still doesn't work. The first one does though! https://fwoostyhub.com/๐ท๐ซ๐คน๐ผ
put it to null (ok my bad just saw that you find out)
i would prefer to null check tbh lmao
its so much faster
yeah i didnt notice the @Nullable until i put it in discord
that's because one of those users doesn't have any prefix
so instead of just doing get(), you should do orElse(null)
I have multiple prefixes, though?
print out the whole map
e.g. toss your map into sth like this
public static void print(final Map<?, ?> map) {
for (final Map.Entry<?, ?> entry : map.entrySet()) {
System.out.println(entry.getKey() + " -> " + entry.getValue());
}
}
int size = plugin.getConfig().getInt("size");
System.out.println(loc);
new BukkitRunnable() {
@Override
public void run() {
loc.getBlock().setType(Material.AIR);
System.out.println(loc);
}
}.runTaskLater(plugin, ((5 * size) + 20));
}```
So I'm trying to delete a specific string of blocks after a set amount of time however whenever I call this method. It only ever deletes the latest block placed. Any reason why that happens?
print out the whole map before streaming it
Will do
is there a villager trade event?
bumpity bump
package index
not helping
no
bruh
you gotta use the InventoryClickEvent
Map<Integer, String> inheritedPrefixes = user.getCachedData().getMetaData(QueryOptions.nonContextual()).getPrefixes();
String highestWhatever = inheritedPrefixes.entrySet().stream().filter(entry -> !(entry.getValue() != null)).sorted(Map.Entry.comparingByKey()).findFirst().get().getValue();``` Current code
Mayb you are using the wrong api method
I swear it worked a little while ago
Current code: https://github.com/FroostySnoowman/XOSurvivalCore/blob/master/src/main/java/fwoostybots/com/xosurvivalcore/Events/JoinEvent.java (line 57)
I'm quite lost now lol
Hello! I have a little question to ask. Is there a way to get the positions of end towers when the dragon is defeated? For example while respawning the ender dragon, the tower crystals are created again. Can I calculate where those crystals should spawn without actually respawning the ender dragon?
57?
not 58?
it came out to this
you did
Yep
I guess it shouldn't be that hard to get these, just enumerate all the block in a specified area on the same Y, each time you find an obsidian block, you can check it's a tower by checking all adjacent blocks (obsidian). When you found a tower, just get the highest block and find the middle of the tower
we currently filter all "not not null" elements >.<
mate that's brilliant thank you so much
yeah thats my fault, Im drunk
Holy shit I saw this embed and thought it was @vagrant stratus's code
i sent this code
Well that's a quick idea, I'm sure you can optimize it! And maybe some here know a better solution!
lmao why
?switchmappings
I'll try my best :3
damn nice
Yeah the profile picture lol
I was very confused seeing it not be under your username but having your pfp
bonk my code's actually good
lol
is there a zombie villager cure event?
but not the linked repo ;)
mfw capital package names and Main.java
Well, the system works, thank you so much, @tender shard!
Not even my code lmao
thats what i meant... whatever 
mine's #Good
This is my first ever plugin, so I feel like it's eh
I'm however improving the Anti-Malware code as I work on the paper fork, so there's that at least lol


yea.... as much as I dislike paper I'm not stupid enough to do a public fork using base Spigot ๐
rtfm
Lmao i having lot of troubles using Jackson to save and load a map
always welcome!
?
you can be glad that you never decompiled any of my plugins
My friend capitalizes package names and it kills me inside
unfriend them
luyten is too stupid to show this
- Read the last pinned topic
- 57000 results in 0,32sec
https://www.spigotmc.org/threads/how-to-detect-if-player-has-turned-villager-zombie-into-villager.157934/
boomp
Bruh stop
probably a classloader thing
Agree
If you wont be pacient, this is no the ideal place to ak for help...
im just making sure my message isnt lost in chat bruh
no ones gonna scroll up 24 hours
let me introduce you into discord thread
๐
no ones checks threads too
im not pushing for anyone to answer rn bruh
You have make mad
just making sure the message is not lost
How to get a BlockState from a Material guys? is it possible? ๐ค
That why thread exists
Lmao what an impacient society we have
A Material doesn't have a block state. Block has a block state
That wouldn't be ok in anyway, just refer to the two pinned messages
if you didn't get an answer yet, it's because noone knows the answer or noone had time to answer yet.
๐ก
No bruh you are being really ash** spamming a message every 30m
and again im not pushing anyone to answer right right now, like i said just making sure the message isnt lost. ill make a thread whatever
So if you wont open a thread and wait for answer your best option is to solve it yourself
i would love to have custom emojis rn ๐
Lmao what an impatient society we have created...
MystBin - IncomeIctTalks
wtf happened here lol
๐ฎ
Don't forget to enable notifications in your thread :)
true
Someone really assh-ole was spamming a message reference every 30m
mans gotta chill out
Imagine i have to block him because he was not going to cooperate and be pacient
no matter what happens - the office always has a gif for it, lol
I wish discord responsive design was that great as gif
Because cellphone design is ๐คข
wait wtf
is that leslie from P&R?!?!
anyone know why when i set a block type to a bed it only shows the bottom of the bed and not the front
because a bed is two blocks and you have to set both
i tried setting the block infront of it a bed aswell but it placed 2 beds that showed the bottom
yeah, you have to do this:
set both blocks to bed, then cast the head part to "bed" blockstate (NOT bed materialdata) ->
declaration: package: org.bukkit.block.data.type, interface: Bed
then you can use setPart(Bed.Part.HEAD)
Is there any API for applying a ChunkSnapshot to a chunk?
and then you have to update the blockstate again
yeee got it thanksss
oki
no
a ChunkSnapshot is basically a thread-safe copy of a live chunk. It's not meant be "set back" or anything
Whyyyyy bukkit
you'd literally have to iterate over all blocks and set them back, if you really need that
I wonder, what are you trying to do?
how do i update ablockstate again i forgot
sth like this
Bed bed = (Bed) block.getState();
bed.setPart(Bed.Part.FOOT);
bed.update();
oh wait
my bad
Bed is not a BlockState, but BlockData
beb
there is no need to update it again
Bed bed = (Bed) block.getBlockData();
// change it to FOOT or whatever
thats all you need
Thanks
np
I'm not attempting anything, however there is someone that wants to set entire chunks to air
If it was a block that isn't air I'd have a few hacks in store, but with air it is a bit difficult
they have to iterate over every block in that chunk
set them to air
thats it
ChunkSnapshots are really, as the name suggests, just a snapshot
setting a whole chunk to air should be possible very quickly though. just be sure to toss in "false" for setType()
Myes, but generally snapshots are kinda like backups - something that can be restored if needed
easy, lemme show you an example. gimme a minute pls
But in this case it isn't I guess
you can even map them using an array
as chars are shorts so not too many values to map
especially not if you limit it to like 256 hars
chars
true
No, two bytes in java world
And kindof getting deprecated
?
but you should be able to easily convert chars to ints or shorts
and map them in an array
Like, it's not something that will happen overnight, but I fully expect chars to be deprecated in a few years to decades
which is much faster than a hashmap
why would they lo
l
yeah
but array is possibly even faster
than a switch
idk
no
Apparently not fast enough
?paste
noice
like this
no
switch case would be faster
but this is not something you should worry about
enum Tile {
// array map thing
private static Tile[] map = new Tile[256];
// constructor
Tile(char c, ...) {
map[(int) c] = this;
}
public static Tile getByChar(char c) {
return map[(int) c];
}
}
unless you have like 124751 enum constants
that you dont have to expand it manually when you add a new enum
np
But it takes much more memory :/
^ this is how bukkit does it e.g. for the ChatColor class
?
stop worrying about memory or "which is faster"
just do whatever is more convenient
thats like 256 * 8 bytes
That array doesn't take that much memory
thats nothing
and only worry about performance if you actually have performance problems
premature optimization is like getting condoms to jerk off
whut
It's nothing close to Minecraft storing millions of blocks in ram
Memory is the least of all concerns
You allocate the whole array for few chars, a map is way more light
Well you're almost taking 1kb :oooo ๐
true but its only 256 elements in this example
Allocations are very expensive, but memory that is left to "rot" (but still is getting accessed frequently) is very cheap
who cares about 256*8 bytes
Sorry I'm always reaching the perfection
you should stop doing that
Do I need to talk about that RegionatedIntIntToObjectMap again?
get your job done, and then later, when something goes wrong, then you can look into optimizing it
It's like mutilation, but I can't do otherwise
i'd rather add 5 new features within a day than worrying about doing 1 thing perfectly
because you will never get shit done if you worry about stuff like this
I remember it well no worries ๐ญ
Doen git has an option to replace variable string to another thing?
its just not worth it to worry about tiny improvements
no, of course not
but maven has
Depends on which case, most of my work consist in optimizing up to the tinest bit
yeah that's just not worth it
Hmn ok i ask because im doing som js test and i have a file which contains some credentials, so the file should be uploaded but need to get credentials stripped out
noone cares if your enum lookup takes 0.0000001 seconds or 0.0000002 seconds
if it takes 0.01 seconds, then you can start worrying about it
Thanks for keeping me in the correct path ๐ฏ
Depends on the frequency
np :3
for real, premature optimization is only worth it if you really got nothing else to do
hmm
generally you should do it like this:
- get something that works
- see if it causes trouble
- if yes, optimize it. if no, go to step 1 again
Make a product first. Optimize later
how do i change my nickname on spigotmc?
Unless you are doing IO
?changename
Name changes on the forums are granted to those who have donated to the project. Donations are processed manually and generally take up to 24 hours. The donation widget can be found on the home page of SpigotMC at: https://www.spigotmc.org/.
TL;DR: 10$ and you can change your name
If you do IO, optimise instantly - delaying it is very dangerous
how do i delete my account then?
๐
do you wanna delete it to create a new account, or do you wanna delete it because you wanna get rid spigotmc in general?
because creating a new acc is not allowed
if you really wanna delete your account: tmp-support@spigotmc.org
I regret to inform you that the answer is a resounding no. Either way I wish you the best luck in finding the bride that best suits you.
that is a way nicer answer than I expected
so thank you, mr geol โค๏ธ
this make no sense
it does make sense. almost all websites do not allow you to change your name at all
spigotmc allows it for people who donated
Well the larger ones do
perfectly fine logic to me
People will always complain about monetization no matter how benign it is
pay 10$ now, get 3 redempts tomorrow
In fact I know few on top of my brain that do not allow to change names
people would still complain "why don't i get 4 redempts for 10$"
That's a steal
Though it's still a non-0 amount either way
I'm worth much more than $10
uuuuuuh
Probably closer to $15
well redempt
you have to think about the fact that once someone bought you, they also have to feed you
and pay for your internet
and stuff
Still worth
Is to posible to have a ServerSocket listening and responding at the same time?
do you at least do the dishes etc?
no
not at the exact same time ๐
Not the most efficient use of a redempt but yes
You could always just get a dishwasher if that's what you need
yeah I got my new apartment in about a month
and it has both, a dishwasher and a washing machine โค๏ธ
whats the point lol
I am so happy
the point is to make people donate
ah wow
i dont see anything wrong with it
you probably used spigot for free since years
how is it so bad if you just donate 10$ now
Do you need a redempt
and whats the point on "those website"
.
Database does not allow for name changes
bro, it's just how md5 decided to do it. if you don't like it, don't donate, but pls don't mock us with your opinions about it
it's not something we decided
Do you mean netty does input output at the same time ?
My services are available for the low price of $120k/year
as said, feel free to whine yourself out at tmp-support@spigotmc.org
change your name, keep it, create a new account, we don't care
Honestly it's $10 to support the project. They give you the code for free so it's the least you can do
i cant afford that
that's why I stopped doing free plugins
if you offer something for free, people are upset and demanding all the time
if you sell something, everyone is friendly
No redempt for you
making people pay a tiny bit of $$$ makes all those weird kids go away
sadly kind of true
yeah it's frustrating
I mean i need to be able to receive and sent data thru a Socket
no support = ez fix
i saw a project that said no we donโt accept donations cause they donโt want to have the feeling of owing people which to me is an interesting concept
and i can relate
even worse - imagine being md_5. he spends like half of his whole free time to maintain spigot. then someone complains "why can I not change my name?!?!?!" and is upset about it. instead of being happy that spigot exists and is free, in the first place
really makes me angry
not good for my blood pressure
Just do a stack. In anyway the network can't handle both at the exact same time
That's how internet works
Or a queue in fact
How do I save data to a file
I mean i have done a simple api for using ServerSocket and Socket, but it doesnt seems to be able to this:
client -> server "hi, im a client"
server -> client "hi, im a server"
what data, what file
uh what is the problem
echo "data" > file
I'm curious to see how you did that because that's strange ^^
You have an inputstream and an outputstream
I have something weird
you ARE something weird
you are being very vague not allowing us to help
No no
its like sayinf my plugin doesnt work
I mean i uwill explain and send code
i have something weird
I remember when I once was in voice chat with verano
oh bruh dont start shitying me
and then he was like "oh wait, I gotta call the police, someone outside is shooting with a gun"
and when he came back, he talked about "kitchen roosted" the whole time
this is america
nah hes from uruguay
@tender shard check DMs whenever you can pls
Inded
When someone DMs you asking for help
im not asking for help

Retropper i have this structure:
Connection object which has inside a getAddress(), getPublisher() and getSubscriber()
Publisher and subscriber implements runnable
Im doing mainly that
I think the problem is caused because the publisher is not well designed
Let me sen code
I ask for help because i never could make ServerSocket and Socket work
Did you follow a tutorial on these before ?
No i just readed about ServerSocket and Socket
They're quite simple to use. The serversocket only accept new connections (it's like the creator of the end of the socket). So the ServerSocket create a Socket, so Create a thread for each new socket. Listen to it and send through it
It's the same from each side, you have the input and the output
Well I'll wait to see your code
how can i make it so my plugin doesnt need to be installed to work? its just a library and i want people to be able to use it without having to install the plugin, ive seen plugins with this
plugins that depend on your library have to shade it
People will have to shade your library into their pkugin
https://github.com/Slikey/EffectLib this plugin for example has a repo, i have a jitpack repo would that work?
- make people shade it, or
- get it approved for maven central and make people use the plugin.yml's libraries feature (kinda unrealistic though)
yes
jitpack would work ofc
but jitpack sucks ass and not in the good way
ah
sorry I always have to add the "and not in the good way" part
lmao
i'm infamously known for saying this all the time
It's actually ok, never faced annoying issues with it
yeah it's okay, I guess I just dont like because of oraxen
yeah but you gotta make it compile on their servers too
so good luck if you're using NMS
it's tedious to make this work
if you only depend on spigot-api, then sure, it'll work without problems I guess
i am doing that and it works fine so far
isnโt there that repo that has all the nms versions on it
at least, there used to be
oh yeah
but do they at least also have the remapped ones?
what is this repo called again? never used it
code-something
was it codemc or
yea
ah yeah
I cannot wait for them to go down
because mojang one day decides to enforce their shit
yeah well anyway, I dont like jitpack. I dont even have a reason not to like it
i just dont like it haha
setting up ones own repo is so easy
Sorta help dev, how can I make a slot empty like the sides of an inv
like making a full item texture
forgot how
whut?
sorry i dont really understand
Transparent?
No
like, make an item model that fills the whole slot including the edges
wait
smt like that idk
You'll need a resource pack
Yeah I know
I just forgot how to make the model, best place I know where to ask lmao
Like I got the pack working
I just need those like 2 pixels
Oh ๐ Well I'll try to take the inv texture, cut it just to get the slot size, and full it in white
oh no that's not what I mean
well it's easy
The white is like an item
- you create a texture that fits perfectly into the GUI
- You make it work for some special item with custom model data
I got both sort of
I just need the texture to expand a couple of pixels
and I forgot how to change the inv model
Isn't it a png file ?
No the model is a json
the png is the image to put on the item
My issue is making a model big enough to fit the extra border pixels
Well I'll just expand the png, but I'm not a pro on this so that's maybe not the good way to go sorry ๐
expanding just makes it higher qualtiy
Can you show the model json ?
This, you see how some slots are filled in? that's a texture with a model of full size
that's what I mean
Don't have one
just using a default glass pane model rn
Yeah just figured
Though I need the same effect with items
I am scanning all images within the help development channel to find the place where it was again
This one is from Origin Realm
You should definitely have a look to see how resource packs are powerful
But if you are interested in custom UI or have a project feel free to DM me ;)
JSON derulo
thats funny asf
Don't tell me your jager is gone
how would i go about registering events in a library? i have a library and i want to register events but since it wont be installed on a server it has no main class
like listeners ?
yeah
You'll have to create a method that the users will have to initiate, or just do your API a plugin
Most code I see that wants to do that requires the consuming plugin to call a method for that
haha never
so id get a plugin from the user and just use that to register?
I always got at least 2 new jรคger bottles at home
Are you german ?
Right sir
yes sir
This drink is wonderful, congratulations
most people hate it
I can tell you that in France it's maybe one of the most considered
in france it's probably called Jรคgermeisteaux
We shouldn't have this conversation on here actually. Just pretend it never happened
bullshit, help-development is the best offtopic channel ever
unless someone actually asks any question, then we gotta shut up with offtopic lol
le Jรคgermeisteaux
Does it actually means something in German? I'm thinking about Schwarzkopf
yeah
Jรคgermeister means "Master of hunting"
do you remember Gรถring? This nazi dude?
He was the Reichsjรคgermeister / "Federal master of hunting"
so yeah
That's even cooler
That's why there is a stag on the logo
nah nah dont get me wrong
jรคgermeister existed before the whole nazi stuff
I just mentioned it for fun because it's a funny coincidence
Yeah ofc ๐
Indeed the bottle have their old school look
Like maybe 1800
Let me check
yeah in the 90's or so, jรคgermeister was known as "drink for old people"
but then they heavily invested into marketing
1935 my bad
and then it became popular among young people
Here it's mainly for "youngs"
the jรคgermeister bottle even has a german poem written on it
No way, I've to check it next time
here, the text inside the green "label" at the corners
looks like an olive oil bottle
it's some "peom" about hunting lol
yeah kinda
an @chrome beacon oil bottle
Next party I'll have a great time translating it
the poem is shitty, but good luck ๐
bet
i'm tired
does anyone have some crack cocaine to keep me awake?
wtf olivo
that emoji is supposed to only be used by fourteenbrush
Serious Spigot and BungeeCord programming/development help | Ask other questions here
this obviously is another question
Serious Spigot and BungeeCord programming/development help | Ask other questions here
this might sound dumb is it possible to have per class listeners? kinda hard to explain but basically plugin im making you can make a gui variable and i want to make inventoryclick events for each individual gui since theyd all be different ex if someone wanted the gui to be locked but a 2nd one to not be locked
We just want people to feel it's a warm place
It's possible, but don't do that it's kinda hard for nothing, and also maybe impact performance (I imagine having z listener per item)
what would be the best way to do something like that then?
I recommend having one listener class, and loop all inventories to check the name
Especially if you need the user of the API to register your listeners
alright ill try it ty
yeah i was probably gonna do that
What you can do to achieve like you wanted, is to create an interface
And in the listener, call that interface, or method or whatever
Maybe more abstract my bad
In your Item class having an abstract method like "onClick(some cool arguments here"
Which would be called from the only InventoryClickEvent handled
alright thanks
Good luck, and feel free to present your work for advices ;)
ty ๐
how can I cancel knockback from an explosion?
(Im using EntityDamageByEntityEvent, cancelling it doesnt remove knockback, setting velocity to 0 stops them completely)
Listen to EntityDamageEvent, check the cause, if it's explosion, set the entity velocity to 0 1 tick after
Cancel the damage, and apply the damage yourself on the player health
no, how to cancel the kb
That would cancel the kb
Cancel the event, apply the damage yourself on the player
cancelling the event doesnt cancel the kb
Oh yeah you're right actually mb
(EntityDamageByEntityEvent)
i have seen PlayerVelocityEvent, but i cant determine just from the data of that event if i want to cancel the kb or not
What's wrong with the set velocity to 0 after 1 tick actually? What do you mean by it stops it?
it stops their velocity
if they were running
and recieve an explosion
they would suddenly stop moving
So
wdym
Get rid of the explosion, cancel it, and apply a fake explosion at the same location
does cancelling the explosion cancel the kb
Hey guys, how to spawn a FallingBlock with packets? i have using the FallingBlockEntity's constructor and when i call the falling block didnt spawns.
Rolyn where i can send the code? Its a big project that why
Yes ! But you'll maybe have to compute the damages
yeah np
Wherever you want, feel free to dm
Perfect then
Allright i ill dm you
if someone knows whats going on in #1010666894338043965 and can help that'd be great, thanks ๐
any help? (yes, im sending the packets)
why are you using packets for that?
Have you tried searching for it? There are plenty of articles related to it. If you don't find tell me I'll search
some reasons that i cannot explain here
The more you do it, the less the people will be up to help you dude. That's an advice
why can't you explain those? ._.
?paste your code
Does anyone know why this doesn't work? In specific I have created the item to activate it but it isn't working(Also It was working originally but I tried to add additional code for cooldowns and logs and it stopped working even after trying to remove the new code).
getLogger("TimeBoundItems").info("Right Click Detected");
if (p.getInventory().getItemInMainHand().getItemMeta().getDisplayName().equals(ChatColor.BOLD.GRAY + "Ability: " + ChatColor.BOLD.DARK_PURPLE + "Dark Mist")) {
getLogger("TimeBoundItems").info("Dark Mist Detected");
if (!p.hasPermission("timebounditems.darkmist")) {
//plugin.msg(p, "You don't have this ability yet!");
p.sendMessage("You don't have this ability yet");
e.setCancelled(true);
return;
}
// final CooldownManager cooldownManager = new CooldownManager();
// long timeLeft = System.currentTimeMillis() - cooldownManager.getCooldown(p.getUniqueId());
// if(TimeUnit.MILLISECONDS.toSeconds(timeLeft) >= 60){
// log.info(p + "used Dark Mist");
// cooldownManager.setCooldown(p.getUniqueId(), System.currentTimeMillis());
p.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 800, 0, false, false));
p.getNearbyEntities(20,20,20).forEach(entity -> {
if(entity instanceof Player) {
Player target = (Player) entity;
target.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 600, 0, false, false));
}
});```
i see choco typing ๐
the visionaire studio ones? ofc not
its a german company
and today is / or was sunday
the heavens are calling for me
imagine having login creds
rq... is choco typing a book or smt?
yeah I bet you have a hashmap<Website,LoginCreds> in your head
of course
i use one password for all the websites i use
BaseComponent[] message = new ComponentBuilder("[This is an item]")
.event(new HoverEvent(HoverEvent.Action.SHOW_ITEM, new Item(
itemStack.getType().getKey().toString(),
itemStack.getAmount(),
itemStack.hasItemMeta() ? ItemTag.ofNbt(itemStack.getItemMeta().getAsString()) : null
)))
.create();```
You can send it with Spigot, player.spigot().sendMessage(message);
oh doesnt our cum bot have a similar thing @slate mortar ?
i dont think it's the bot that has that
oh yeah I meant the simp plugin
Can you paste it please, it's hard to read on Discord. And do you have any error ? Dis it work ?
yea
lmao people will probably think we're weird
we are
I plan on adding HoverEvent event = itemStack.spigot().asHoverEvent(), but I'm trying to get simpler stuff merged into Spigot first
"does the cum bot have this?" - "no, it's the simp plugin" - "ah yes"
I'll put it on a paste. Also it does not work and has no errors
cum smp
and you apparently don't understand either, because you're not building the lobby
instead
I DID BUILD THE LOBBY
you're forgetting your login credentials to some weird app
cc @small peak by the way. I didn't @ out of habit
weird app?!
weird app
it's visionaire studio, mah gurl
notepad for life
i coded a forge mod in notepad
trigger:
if arg-1 is not set:
reply with "Please enter in a valid link code (You can do this in game by /link)!"
else if {code::%arg-1%} is not set:
reply with "Your link code is not set. Please link your account with /link ingame!"
else if {code::%arg-1%} is set:
if {discord::%discord id of event-member%::player} is not set:
set {_p} to "%{code::%arg-1%}%" parsed as an offline player
set {_u} to {_p}'s uuid
if {linked::%{_u}%} is set:
reply with "This account is already linked!"
stop
set {discord::%discord id of event-member%::player} to {code::%arg-1%}
set {discord::%discord id of event-member%::uuid} to {uuid::%arg-1%}
set {discord::%discord id of event-member%} to discord id of event-member
reply with "%{code::%arg-1%}% has been linked to your Discord account!"
execute console command "diamond block"
add {_p} to {linked::*}
set the discord nickname of event-member to "%{code::%arg-1%}%" with event-bot
delete {code::%arg-1%}
delete {uuid::%arg-1%}
else:
reply with "This account is already linked."
So i have this so far
100% no ide
man of culture
sorry to interrupt but this does not look like valid java
Oh...
lol
he uses skript i think
lol
ugh
D:
https://pastebin.com/TnLEEC48 This is the paste with my code. This is the section that is currently in use. almost everything else is commented out as I am/was trying to remove problem pieces and the pieces I added after having it work
well
i currently have to modify a python script
it's not working
because i don't know shit in python lmfao
and i don't have code completion and shit
do you have pyCharm?
lmfaooo
Try to System out.println at the beginning of the event. Just to see if it executes
coding python in intellij
"coding"
it's like the INtelliJ version for python
just use visual studio or smth
more like modifying 2-3 lines
and failing
oh wait, maybe spotify or discord fixed their shit
jetbrains ide for python overkill imo
im looking forward to this new jetbrains ide
is there a clean way to unregister an event listener
its probably shit
Whatโs it for?
u can code in java with pycharm btw
everything. it's like vscode, but from jetbrains
Ah gotchu
thats what google says
oh btw @worldly ingot
so stupid
I still have to nag you
to tell me everything you know about the former spigot ingame events
md_5 told me I could host future events because I complained that there are no events anymore
tell him everything about rolling down in the deep
Need help debugging code
oh right
declaration: package: org.bukkit.event, class: HandlerList
huh
i think
im not sure if i remember correctly
hm
but either you or smile
i promised to do an event on my discord
former in game events?
made some promise about some event or some thing
yeah, one sec
where do i get an instance of this
ah it was frostalf
I actually don't think I was around for this, Alex. May have even been well before me
SomeRandomEventClass.getHandlerList()
frostalf said
"that gives me a great idea
I have a new competition for around this years christmas time ๐
depending how things go, I will host the event ๐"
thanks
aw shit
thanks anyway :3
That means they were last done before 2015 btw lol
I fail doing a lot of things
The last "event" I recall was the 1.9 update when the Spigotcraft server was created for in-dev builds of Spigot
but I'm good at cutting bread into precise slices
Before continuing, why would you need to do this ?
There were often 10+ players online
I am really good at that
nice
do u also know how to pour precisely even cups of juice
my father always called himself the bread master
if u do then please come to my house
rip
