#dev-general
1 messages ยท Page 567 of 1
however you choose to give access doesn't really matter
Although that is definitely the worst possible option
I like to keep my work from git xd
I would like to send you my code in screenshots of notepad files
very counter intuitive
closed source ๐คข
that is not a good sign
git is the thing thatโs gonna save all your work when your drive decides to commit suicide one day
๐
Idk why Xd
And worse

git allows you to go back to any previous state of your code
๐
i have a feeling you might not be getting that developer role lmao
xd
i have a feeling no one is getting it because no one is reviewing them lel
Well I don't think it will hurt your application necessarily but using the proper tools is definitely a big bonus
ayyy
The application still going?
Uh
Iam used to onedrive donno why
Haha
๐
Poor dkim
we bring on new support staff that can somewhat code in the hope theyโll take over role requests
Dkim I hear if you pay $2,000 it speeds up the process by a day
literally nothing changes ๐ฆ
๐ฆ
honestly heartbroken ๐
Oh shit, i missed this ๐ฎ
All of Tuinity's projects and patches will be merged into Paper and moved to the Paper organization soon
fun
smh bm
Hey I did 1 or 2
Who decides if you get the role?
Easy
i would do some if someone would give me my role ๐
traditionally me but me no have time atm
The very talented staff team
Give yourself developer role
admins, bm and matt
Oof
if only
Star no developer role ๐คจ
Who is the best staff in here?
For sure Reset
For me piglet
biggest peen?
Give him the credits its hes birthday xD
cough
Well
well we have a few that are "funny"
Funnycube
Might want to lower your expectations
yeah pick 2 lmao
Lol
I was going to say pick 1, you're generous
Helpful & Nicest
Probably because you're staff
๐
I think you should list staff, and people will say their opinion
No answers mean no one?
yeah we all suck
Yeah
Ye prob
List all of em and vote
Shouldn't bm have had the helpful role removed when he became staff? 
Winner gets to go inactive for a week
i think we should go by the pink indicators next to their names
Nah no remove just wanna know which is the best
Or get a role of monthly staff ig
You're the type of person who would remind the teacher about the homework
oof
Matt's waiting to be promoted to admin
Lol
Just wondering lmao
Cuz I think Blitz got his removed
๐
Now we know who isn't the best staff
@static zealot ?
Just a random ping
watch yourself bm
Oh sheet I just ping
matt is organizing the contest
Sorry man
hmm
he might become biased against somebody
^
Should I list all staff?
then we will have reached an impasse

Imma list them all lol
I think you should have a sumo duels to settle it
Nah no duels thats boring
y'all ever played Sumotori Dreams?
Server hosted in Antarctica for fair ping
Why who is Skylar#1234
I haven't heard of it
Lol
That's a Blitz move right there
Grand Judge?
That is fake
Life is fake
All these are fake
Straight from Blitz's messages
oh lmao
Blitz usually has the mouse over it though right?
Actually no, i took it from my discord lmao
oh damn, it's fresh!
#off-topic goddamit
ah that's what I wouldve guessed but
You must be new
Nah
Sir, that is fine, this is NOT configuration help!
this is #off-topic
this is off-topic but for developers!
server developers ๐
yaml devs
Skript devs
Let's move to #developer-chat
๐
lol
Isn't "yaml dev" an actual thing
Huhh
Like devops and stuff
it shouldn't be
no
Config dev
oh you mean docker compose editor lol
now that is not what you wanna see
Lmao
is that epic games
phew
poggers download speed
Who staff is online? I guess all staff is online
glare? never heard of him
clip ๐
yeah that's Glare
One support missing too
really? i thought there were 7
Aboo
oh
Oh yeah omega as well
Who is Omega lmao
is aboody still a support?
I genuinely forgot aboody existed
He's been gone for a while, still support though
Does too much reactions will be remove?
Evidently
What that mean
Evidently
Bruh
It's a different form of "It is evident"
Which is similar to the word "evidence"
basically, it's a fancy way of saying "it seems so", or "yes"
yeah I guess "Evidently" is just a shortened version
Wow staff is taking shortcuts
Can I send the list?
why are you so persistent in getting a list of the "best staff" 
They have their own discord server and are looking to steal staff
what are you asking me for
Staff get paid $1 / hour
i wish
Heh $1
very high rate
The highest
wtf I'm #11
That is not ranking lmao
oh
Count
You should add the emojis next to the name
You think people here can do that?
|| plus i feel like if anything it would just offend people ;-; ||
Spamming emojis
lol
#1 for me :peepolove:
plus u missed a few other staff members ๐
I thought Luck was #1 ;o
a lot of the trusted team
I don't have perms to bypass bot emojis lol
It was, I was just throwing stuff in the middle cuz it's stupid lmao
idk lmao
Who is luck
Joe
But who is Joe?
๐ฅฒ
Lmao
Trying to bypass it lmao
Staff is immortal
Star is bestest
No this is a sign
+
Where to get roles
no this is a sign
Oh nvm
That is actually the sign
How to have a gf?
Buy one
I bet I need to be ready with lots of money
I'm sure once the staff bribes come in for the rankings you will be rich
Maybe
how did u know ๐
Most likely against the license of the theme you're buying
Also just a scummy thing to do
That would be stealing someone else's stuff and reselling it
Someone keep sending a msg where they do their own service. Then, resell the theme.
๐ฅถ
That's like the people who buy a plugin jar then redistribute at a lower price
This blue is so nice
Yeah that
Can he be banned?
Banned from what?
Here?
Ouh lmao he already banned?
Cuz his name is Tiptronic#4005
Noob
Resell a product.
Who?
Lol
?
Asking to go check, which makes me want to not go check
๐ฎ ๐ฎ ๐ฎ
Lol
Help
Is it possible to make an item (lets say a specific block) in which players can only hold one item of at a time in their inventory, and cannot be put into chests/hoppers/dispensers etc?
So I'm trying send a message using a bot, but I keep getting a 401, I've tried legit everything and can't find the cause of it, anyone got any suggestions?
By any suggestions, I mean what things I should look at that could be causing problems, not really sure what context to give since it's the same for all methods, but I guess sending a message using DiscordGo, into a channel, using a single string
what context to give
Well saying that you're using the create message of the Discord API is quite vital information
401 means unauthorised
Which means you either didn't set a token or you set an invalid token
Well that would mean the listeners wouldn't work right? Cause they do
Rudy
Not necessarily
The websocket connection is independent from the REST API
So if the library separates the two it's possible to set the token for one but not the other
hmm
Oh that's annoying, so it has a "deprecated" token variable which you also need to assign for it to work
Is there a way to run mc in a cli or some shit? I only want to see the chat
minechat
for pc though
there is like a bot program where you can actually play minecraft with pure packets
its called mineflayer
oh you only want to see the chat..nvm
could still use it
console client?
o that's cool
you could also use potentially like a mobile client or whatever its called. those allows you to log in with your account from a phone app basically and you can see the chat execute commands as if you were online. bcz basically you are you just can't control your character
Pickaxe chat
mineflayer (nodejs)
minecraft console client (c++ or c# or c, idk lol)
console clients are so easy to make lol

exactly. just the chat. not console
by what the player sees
I meant what a player sees in chat
a console client is not a client for a Minecraft console lol
o
a console client is the name given to a client that runs in a command line environment
it's called a console client because it runs in a console
lol
d;spigot player#sendblockchange
void sendBlockChange()```
Send a block change. This fakes a block change packet for a user at a certain location. This will not actually change the world in any way.
loc - The location of the changed block
block - The new block
would lava damage them? If not, is there any way to?
The easiest way to check would probably be to try it lol.
I would assume yes, because the client thinks it is a block.
Hi, I need to use a string to double evaluator, so I want to use javaluator from fathzer. I've added it as a Maven dependency, and it works well on my IDE. I can use the classes, the functions etc.
But when I calla function from this dependency on server, I got a ClassNotFoundException. Did I miss something ?
<dependency>
<groupId>com.fathzer</groupId>
<artifactId>javaluator</artifactId>
<version>3.0.3</version>
<scope>provided</scope> <!--compile-->
</dependency>
Because you mark it as provided and nothing provide it on the server
Remove that line to add it in the jar
you also need the maven shade plugin too
There is no time to wait! Ask your question @frank lichen!
public class PlayerJumpEvent
extends PlayerEvent
implements Cancellable```
PlayerJumpEvent has 1 extensions, 1 implementations, 8 methods, and 1 all implementations.
Called when the server detects the player is jumping.
Added to avoid the overhead and special case logic that many plugins use when checking for jumps via PlayerMoveEvent, this event is fired whenever the server detects that the player is jumping.
Will probably do it
And if I try "compile", I suppose this is the same problem ?
No
Alright, thanks you Gaby and Star ^^
e
e
e
c
D
b
g
(:
happy bDAgY? whats that
Does it matter if I don't put in my exact graduation date for intelliJ student products?
I don't know what it is.
Okay thank you
What is the 'system' used for HideFlags called? https://minecraft.fandom.com/wiki/Tutorials/Command_NBT_tags#Items
Yes, sorry
Bit flags
So basically an enum
I suppose
Enums in Java are way more than just named numbers
But an analogy would be enum constants in an EnumSet I suppose.. because it literally uses bit fields lol
Yeah ok
https://i.imgur.com/kQVZj5I.png why do they never use a Python pattern smh
any idea what would make my server and/or pc download from ptero with 1.3mb/s?
"server/pc"
python
Not compared to this one mโlady
ew
Horrid
Pack it in, mathematicians, someone owes LLVM a million bucks https://t.co/u7DYMBwqFE
217
1171
๐ณ
Cursed
Apparently it's because LLVM will optimise away all infinite loops if they don't have side effects
Which is a ๐ moment
ew
I mean really
i wonder if someone ever ended up with a impossible to debug piece of code because of something like this
Speaking of which
Anyone here familiar with Flutter?
I tried touching it but went with react native instead
Hmm
I kinda already know react thatโs why I didnโt bother lol
i used it a tiny bit
ok wait nvm, somehow rerunning it the 10th time fixed the issue
๐
Lol
I will never understand how timings works, how does it connect these two which are unrelated??
Or other stuff that has nothing to do with players or player movement
Hey
Code:
PacketPlayOutGameStateChange packet = new PacketPlayOutGameStateChange(new PacketPlayOutGameStateChange.a(5), 0);
((CraftPlayer) target).getHandle().b.sendPacket(packet);
Hey code
It expects 2 params
??
??
Can someone help me?
.
By inputting the right params?
Whatever you're calling new ...a( does not exist
Hmm but then I get another error
It's either not a class or it is a class without a constructor you are trying to use
Yes, that means that method does not exist
I mean this method is working but it is an error
???
How does the code work if there is a compile error?
Remember Matt eclipse can compile anything lol
It's Material xD
Go to the constructor
Wdym?
I mean go to the constructor
The definition
The signature
The method body
Do you know how to use an ide?
public class OTroll extends JavaPlugin {?
Do you know what a constructor is?
What?
Nothing, it was just a comment
I want to fix this problem https://prnt.sc/1qbuj73
It works in minecraft but in the IDE it shows an error
|| invalidate caches? ยฏ_(ใ)_/ยฏ ||
Why do they even implement such an A shit?
Why can't I just do new PacketPlayOutGameStateChange(5, 0)?
Ctrl + Click the constructor
I mean the only constructor involved in this situation
The packet constructor
Please learn Java
public PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.a var0, float var1) {
this.r = var0;
this.s = var1;
}
Okay finally
Now Ctrl + Click the a class there
And send the damned class in a paste
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
By the way how are you building your plugin? Because if that shows as an error it shouldn't even compile
Right but that doesn't answer my question
What do you want?
To know
how are you building your plugin?
Hm?
I somehow need a PacketDataSerizalizer for the a
I remember the times when you could just write (5, 0)
But now like (a(serializer(anotherthing)))))))))))))))))))))))))))))))
What version is this btw?
Eeh yesn't
Blame md_5
@hasty saddle I think I figured it out
This "error" might just be an IJ bug or something
Add to your imports
import net.minecraft.network.protocol.game.PacketPlayOutGameStateChange.a;
then call new a directly instead
should get rid of the error
On an additional note, may I DM you about something?
ohhhhh noooooo ๐ฉ
:^)
L
bm
Lol
any idea how to get spring jpa to not auto-generate a field if its specified?
rn the id is beign auto generated after I save even if I specify a id
The client needs to be allowed to specify a id, if not specified, auto-gen
But if they specify the id won't it already be in the database?
That doesn't seem like a good idea
They could specify an id that already exists, or it would break auto increment
If its already specify it should just reject the request ig
hmm
I cant force them to use auto-generated id's since they might already have values for them
If the client specifies the id, doesn't that imply there is already an entry in the database?
In which case you wouldn't need to make a new entity
Just look up and edit
Well no actually. I mean like they might have separate records
For example:
Lets say they have the id 1782 in a written copy, if they want a matching entry, they want the same id
anyone know why this happens?
I have 4 modules:
compatgradle dependencies { compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT' compileOnly project(':v1_8') compileOnly project(':v1_16') }-plugingradle dependencies { compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT' compileOnly project(':compat') }-v1_8gradle dependencies { compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT' compileOnly project(':compat') }-v1_16```gradle
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
compileOnly project(':compat')
}
(had to create 1.16 module because of nbt api's lack of backwards compatibility ๐ข)
why does compat depend on itself ?
lmao
this looks like copy-pasting lol
oop
wait
oh waht
ok edited
https://paste.helpch.at/zequcasame.rb heres the full log btw
hm?
how should i fix it?
I need it because of this: ```kt
fun getInstance(plugin: JavaPlugin): NBTUtilitiesAbstract = if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_16_R1)) {
me.dkim19375.bedwars.v1_16.NBTUtilities(plugin)
} else {
me.dkim19375.bedwars.v1_8.NBTUtilities(plugin)
}
and if i put that in plugin then I need to depend on both 1_8 and 1_16
which i bet will create the circular dependency again
the only thing i can think of is using reflection... ๐คข
Oh yeah you'll probably need to use reflection at least once
mhm
should I put this code in compat or plugin?
I'll have to use reflection either way
soooooo
Can someone tell how to turn this mother fucker into not gray with underlines
no
That legitimately looks like a stock image lol
I'm so confused. Does your PRT SC button not work? or what? xD
apply changes
?
press the button
lmaoooo. bad pc gang?
Thank you and yes you can dm me of course!
sweet
DownloadMoreRAM.com - CloudRAM 2.0
๐ฎ it worked
5/5 โญ
11/10
Thanks
https://github.com/emilyy-dev/EmmyLib @obtuse gale this is the cutest thing I've ever seen ๐ฅบ
am I the only one that can't access planetminecraft.com?
Lol
It's like super incomplete lmao
obviously, wheres the module-info??????
It has an Automatic-Module-Name ๐
ew, do it right ๐คฌ
lol
There is a way to release jigsaw projects for versions before java 9 right? I found tons of things on it a couple months ago but now im getting nothing
We're slowly converting Emily to Kotlin!
๐
slowly
slow and steady wins the race
Lol it's just the gradle scripts
Still counts!!!
๐
Premature? ๐
hm
nah
its like what happened with xp
they needed to force people to switch over
cause they kept it going too long
yeah exactly
๐ ๐ ๐ ๐
we need to force adoption of new versions
did you see that guy in #placeholder-api ?
"11 is LTS, don't forget!"
yeah it's LTS for the multi-million dollar company, not your shitty minecraft server
You know what else is LTS?
your mum?
No, your mum

I will see you in hell
pog https://i.imgur.com/kRy08bR.png @static zealot can u still play
I can
oh wait
i just messed something up while committing
uh oh
oh nooo
what is this
that's a git diff
whys it in my code ;-;
well it sounds like you messed something up so it left the merge remnants
Git conflict
merge conflicts :))
git reflog ๐
welp blitz
ig you'll have to wait some time
thankfully intellij has a local history option
that thing has saved me like 10 times
ok @static zealot u still up for bedwars?
yo
yo
what's the default chat witdh?
uhhh
320?
try
Focused Height: 1px
Width: 1px
you can override it in the options.txt or smtng I believe
rip
F
i thought u were meant to be good
no i suck at bedwars
who dkim? I carried him
last game, we almost lost at the start but I won a 2v1 which changed the game and at the end I got the entire remaining team. there was just 1 guy without a bed
I'm to good xD
Sir this is #dev-general
xD
who the fuck asked?
if we all report blitz he'll get banned by fc
i agree
k
where to report
imagine not even saying hi to barry.... just "work! work! work!"
programming is ass
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
at duder.dudercondense.commands.MainCommand.onCommand(MainCommand.java:29) ~[?:?]
Why am I getting this error when the array index is in bounds?
https://paste.helpch.at/ikirajajiw.java
#development next time :))
haven't looked at the code yet but remember that args[4] = 5th arg, since it starts at 0
yeah, if the length is 3, the indices are 0, 1, 2
//instead of
} else if (args.length == 1 || args.length == 2 || args.length == 3) {
//do
if (args.length != 4) { //(or < 4)```
also dont catch Exception
catch NumberFormatException
and
returning false ๐
static ๐
public fields ๐
using a util to send messages to a CommandSender 
Ints.tryParse ๐
toIntOrNull() ๐
lol from what I've heard Kt's toIntOrNull does the same thing as Guava's Ints.tryParse
you don't need the extra isOp check, since OP has all perms by default
without the warning ๐
null safety though ๐ฉ
Idk what tryparse does but probably
doesn't tryParse just return null if it cant parse it
I don't think that's true
yeah
i do remember matt saying that so yea
or does it throw an exception
it returns null
it better not throw an exception lol
well... it's true for me :)
Well. I usually just exit if it's null or give it a default value
pretty sure you have to specify that ops have your permission by default in the plugin.yml
generating exceptions is slow as fuck, Ints.tryParse is pretty fast
when i do args[3] it messes up the code and doesnt give them the proper amount of uses on the wand instead it just matched the amount of wands with uses so if you want 1 wand with 5 uses it just gives 5 wands with 5 uses each
๐ค works for me tho iirc
besides pointless, there's no reason that should throw an exception instead of just giving you a null or something
yea i just mean tryParse is gonna return null, but java not a null safe language so thats gross
.toIntOrNull() is very cool because null safety means nice easy ways to handle it being null
by default the default is ops-only tho so lol
oh I see if you don't specify it's default to op
huh
๐ฅฒ
all changing the number does is just change where it gets the arg from
/somecommand arg0 arg1 arg2 arg3 arg4 etc
yeah ik
Yup basically the same thing, almost 1 to 1
i'd have to see the code of givePlayerItem for that
I would advise printing out the arguments you get
why is uses even a variable ๐ฅฒ
idk
just pass it when you create the item or whatevs
good call
|| also make the variables final which mean that they cannot be changed ๐ ||
Or ints try parse ๐
oh i didn't know it was in spigot
It's in guava, guava is in spigot
|| wdym ||
yes i didn't know spigot had guava
literally look
with those spherical shaped things in sockets just below your forehead, they're called eyes
what do you think lol
no i mean whats it for
have a guess
;-;
alright
I presume @Immutable is a promise
it's a marker annotation used to mean that a class is immutable
And the actual variables are mutable
like has no state changes
ik that, but does it have any affect
like @EventHandler = listener
no, it's just designed for static analysis
oh
I mean if something changes yeah
wat
Or if like the accompanying Kotlin code doesn't think it can be
So it'll throw an exception
I mean, I guess it is kinda immutable
the only thing that can change those values is the really weird MutableBlockPos
The way Mojang defines mutable vs immutable elements is really weird
yeah
For instance, Component is what I like to call virtually immutable
It has no methods that allow you to mutate the Component
But the very first direct subinterface is MutableComponent or something like that
Which... does
And every component impl is mutable lolol
It's more so you get it as a param or return, you can't just change it but have to make a copy to get a mutable clone
"unmodifiable view"
Reminds me of MatchResult v Matcher
you mean the only sub interface
the only direct subtype of Component is MutableComponent
yeah true lol
Component is an interface that is created to fool you in to believing the delusion that you are working with an immutable object, when in reality, you are actually mutating it
lol
ok can someone explain to me why BossBar#getTitle doesnt use a component
in paper 1.17
utterly ridiculous
DOESNT EXIST
FAHHHHH
they are taking the piss
they make me use this SHIT api and it cant even be used everywhere
I know adventure has its own bossbar system
I mean, in all fairness it's almost everywhere lol and it's a huge implementation, I wouldn't be surprised if something had slipped
no
it's not fair
what's unfair is how i have built my entire system around components and now i have an edge case
lmao
if i ever meet one of these kyori "developers"
ill make them wish they hadnt been born
FQJQID ive got to change my whole config system now too
because they really had to go and invent their own enums for the exact same thing
corporate wants you to find the difference between these two images
lol
There's probably am ""
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
There's probably a "proper" way, does Color have an Index NAMES field?
yes
well there you have it
bitch
WHAT THE HELL
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
who
no
idk who you are
who tf asked ๐
๐ฅฒ
lol
1 task that updates every game vs 1 task per game
which is better
from a code structure + performance perspective
both are pretty easy to implement
1 task per game would mean the game can manage its own timer
which is probably a good idea
ok
thanks guys
ill do that
I'd do a task for all games and probably a callback or something idk
One task per game sounds kinda GC unfriendly
1 task per game will also require AssistedInjection which is cringe and bad
Unless they all run parallelized
lol
lol
i will go 1 per game
i think that's better
ughhhhhhhhhhhh
but
assisted injection
WAAA
wait no
i got this
GWFWF
no i dont
circular dependencies
fuck me
what
i
ok
right
i was thinking Game class takes a GameWorldUpdateTask which it can then manage on its own, but the GameWorldUpdateTask requires a Game (and some guice'd dependencies)
Isle of Wight you say?
so that wont work
because there is a circular dependency + i need to get the guice'd dependencies from somewhere and Game is pretty much a pojo
so 1 per game it is
sorry it had to come to this
thanks for being my rubber duck
๐ณ
oh my
just 2500 xp until tier 9 bm!!
o. is it a purse?
!!!!!!
design panter?
ima get someone to code review this once it's done
your rubber what?
i actually think it's flawless
oh wait
too late
I mis-
blitz already made that joke
@Override
public void onEnter(Game game) {
game.getPartiesInGame().forEach(party -> spawn(game, party));
game.getTimer().start();
gameWorldUpdateTask.submit(game);
}
@Override
public void onLeave(Game game) {
gameWorldUpdateTask.remove(game);
}
๐คค
that's some good looking java code
dude i think it's genuinely perfect
like if you ran this shit against the SOLID checklist it would probably fill all of them
lmao
BM making the next triple A game in Java following SOLID?
yes sir
ooh what's it about?
cod warzone remake lol
lmao
btw how come most people use \ublah instead of the character itself?
?
d;spigot ChatColor%COLOR_CHAR
public static final char COLOR_CHAR```
The special character which prefixes all chat colour codes. Use this if you need to dynamically convert colour codes from your custom format.
for example
He's talking about the utf code or whatever
Mostly because people are too dumb to figure out how to properly fix encoding issues
Oh nvm
public static final char COLOR_CHAR = '\u00A7';
yeah md5 falls in that category
Lmaooo
so using \u00A7 instead of ยง fixes the encoding issue?
No
It's a dumb workaround
It ends world hunger
๐
Google style guide suggest you should use the actual character
oh-
Tip: Never make your code less readable simply out of fear that some programs might not handle non-ASCII characters properly. If that should happen, those programs are broken and they must be fixed
Lmao
did anyone else run into an "issue" like this?
I have three "installations" (different versions) of IJ IDE
is it safe to just delete the old ones?
That's why you use toolbox
argh not more installations
I only have IJ xD
if I don't run out of disk space 