#dev-general
1 messages · Page 276 of 1
lol
oh true
I want to know the same about my problem conclure
what's your problem?
the data received by spiget on "resource update" event is somehow not utf8 and emojis aren't dosplayed right
dumb encoding
Ik conclure
╔�?�?╦�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?╦�?�?╗
╠�?�?�? ╚�?�?╣
fucking bruh
Why do I see maze walls in there
Uhm
:))
it suppose to create a border
ah
UTF-8 can encode every unicode character
if it doesn't work either your display doesn't support it or you're doing something wrong
what's the format you receive the data in
like the json or? xD
constructor(): this(false, File(), "", 0, "", emptyArray(), emptyArray(), emptyArray(), "", "", Version(), Author(), Icon(), 0L, 0,"", 0)```
Kotlin needs implicit empty constructors xd
idk, probably not johnny
named params?
with default values?
that is horrid
you don't need a secondary constructor like that if your primary one has all default params
that's the worst thing ive ever seen
good to know johnny
class Foo(val bar: String = "", val baz: Int = 0)
d;spigot Camemode%creative
public static final GameMode CREATIVE```
Creative mode may fly, build instantly, become invulnerable and create free items.
maybe random
up to you lol
depends on the context
it is just an empty constructor for gson
oh perhaps that needs that
what is this witchcraft
player.setHealth(40);Can you do that?
L
I want the player to have x2 the amount of health
uh
short answer no, I think you have to do something else as well
u probably need to set max health first too
yeah
https://paste.helpch.at/exahijopok.kt this is the code I use btw johnny
So i found that I have duplicate classes for nms code
oh
nvm lol
that wouldn't work xD
i was thinking of using the same class but then i realized the dumb package names that changes everytime the version does
I legit just started today, like 10 minutes ago
🥲

☕
scuffedava
nope

public void onEnable() {
System.out.println("Vanish has been disabled");
}
@Override
public void onDisable() {
System.out.println("Vanish has been disabled");```
Consider starting from learning java
ok imma head out
:))
🥲
very good answer yugi
Is it the what it will say in the console when it is disabled, or enabled?
console output stream
🙂
just learn java please
these questions can easily be anwered
if you learned java first
yes but it will be duplicated since spigot itself show the enabled / disabled messages
Sends a message t oconsole
Learn
Java
First
Please!
lol
!!!
I'll just >> https://tryitands.ee/
or learn kotlin
that won't work if you don't have a java experience
🔥
|| I don't know how to do it either xD ||
remove lines in console
NOO
remove sout
this is the correct answer, u have such a bright mind
🙂
Is that a reverse uno?
very informative
mmmmm
remove things from other plugins?
onEnable
disabled
ActionBar.sendActionBar("&6Hello") Will that show "hello" on your actionbar? (1.16)
..
no afaik
presumably
depends on usage
🙃
well if you translate alternate colour codes
How did you do that?

Newako you got access to implementation?
🙃
🙃
Monads
definitely Monads
/monads 😦
gg
😂
lol
lol
No it's Functors actually
🥲
what do yall use to write into files
gson
😮
🙃
<$>
mmm
Havent seen that yet bm
simple json
What does it do?
No idea
welp
I googled it but I forgot
ah
Something to do with composition I think
why was Corba removed? :[
add the dollar sign to the beginning of your epic async plugin class name
That's what most of the weird operators are for
IIIlIIlllIlIIIIllIIllIIIl.java
true
d;jdk11 corba
public interface Comparable```
Comparable has 38 sub interfaces, 1 methods, and 200 implementing classes.
This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class's natural ordering , and the class's compareTo method is referred to as its natural comparison method .
Lists (and arrays) of objects that implement this interface can be sorted automatically by Collections.sort (and Arrays.sort). Objects that implement this interface can be used as keys in a sorted map or as elements in a sorted set, without the need to specify a comparator.
The natural ordering for a class C is said to be consistent with equals if and only if e1.compareTo(e2) == 0 has the same boolean value as e1.equals(e2) for every...
This description has been shortened as it was too long.
d;jdk8 corba
public abstract class ORB
extends ORB```
ORB has 6 methods, and 1 extensions.
A class extending org.omg.CORBA.ORB to make the ORB portable under the OMG CORBA version 2.3 specification.
ew Impure classes
what are the good ways to run something async?
CompletableFutures or ScheduledExecutorService
all i know is
CompletableFuture.runAsync()
100 metres or 400?
Ew classes
iwanio yeah I mean there exist good helper "promise" libs
its too fast
but CompletableFuture is nice
You'll need kangarko's thread.sleep method to keep track fo whats happening
elara is written in go, isn't it?
so fast that it doesnt even exist in time and space
Yes
Yep

assembly tho
go get cookies
we need less C everything
*Cancelled Mitten
I discovered earlier that writing to an unbuffered channel blocks indefinitely
Which is cool
which is why i like https://node-os.com/
The first operating system powered by node.js and npm
xD
Rust OS
lol
iwanio ever heard of deno?
But switch statement is the saviour in this case
You mean select?
it makes it non blocking
sounds familiar
😂
Not in a bad way
Go is a strict suppourter of the K&R foundation
And therefore the best
Agree
No more of the satan's spawn that you call allman
like holy C 🙃
🥲
I still have no idea what go's paradigm is
procedural I think
I guess it's closest to procedural
Google Is God (GIG paradigm)
But you also have multiple return types and other weirdness
yes, even the methods arent really methods
It gets wrapped in another function with the pointer or value type at compile time
you see see that in the debugger
that's nice tho
how do you even use 2 return types
the methods are sometimes weirdly suffixed
Reminds me of another language that doesn't have methods
assembly?
It's like a tuple
wut
elara :)
mmm
dkim you not know what elara is?
is elara procedural?
No
|| anyone heard of scratch.mit.edu lol ||
then what is
Primarily functional
Technically multi paradigm but primarily functional yeah
But* multi paradigmn in the long view
but you said it has no methods
You can replicate most paradigms though
It doesn't have methods in the same way that go doesn't
note to self: methods =/= function
It has analogies though
BM wtf why no yt tuts
i always used to call java methods functions
Kinda forgot about them lol

sadge
functions act as methods of their own first arguments
BMMM
Methods are just special functions
technically
😠
yes it will
send me ur presentation
and send me the link to the fake voice thingy
oh
AIara
Hmmmmmmmmmmm
and ill make it
eMLara
fake voice?
AI to synthesise character voices from games
;-;
and deleted it
SUS
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
yeah
bruh
holy
😮
If my plugin is named "CustomPotionRecipes", I shouldn't name my main class "Main". That is discouraged and very bad practice, especially for Spigot/Paper plugins. Instead, I should name it "CustomPotionRecipes"
If your name is short enough you could add "Plugin" to the end of it but it's not necessary
There are many reasons why naming your class Main is bad. Here are a couple which are common.
-
It can break some Application Programming Interfaces. Even if it's not the Spigot-API it is generally bad practice and can break other libraries. For example, when you are modding, there are certain class names you want to generally avoid. The same goes for plugins.
-
As said many times, it is the same reason why abusing static is bad. It is generally discouraged. Think to yourself what "Main" means. When I look at "Main", I have no idea what it means. The only thing I get is that it is the main startup class for a program. The thing is, your plugin isn't necessarily a standalone "program" or "software". Instead, it is the startup class of an addon, not a program/software. This is the reason why Bukkit has a main class while plugins should not (Bukkit is the server software). Therefore, name your main plugin class your plugin name, to ensure that it is not vague.
-
Uniqueness. If every plugin was called "Main", there would be no uniqueness for plugin main classes. Therefore, they should be descriptive and upper camel case. After all, we don't want like 20 plugins that have the same main class name.
talk about a plugin that wont work
ok what is this link https://paste.ajg0702.us/ogomiwetev.java
u pasted that so quickly
?
i know
the command wont actually work
the variable names...
arrow code
everything is in one class
class is named Main
😔
lol
I haven't pressed the commit button to my discord bot in a while 😦
im thinking of ways to make something that runs an action when theres a reaction
Map<Message, Map<ReactionEmote, Runnable>> is what im thinking
lol
Table
Table
but each message
HashBasedTable.create()
also should probably track snowflake instead of message instance
id
😅
I can't do that with the emote tho
maybe i can
because reactionemote is a wrapper for emotes and emojis
emote = custom emoji
afk
Table<Table<Map<List<String>,List<Integer>>,Map<List<Double>,List<Character>>,Table<Map<List<Short>,List<Long>>,Map<List<Byte>,List<Boolean>>,Table<Map<List<String>,List<Integer>>,Map<List<Double>,List<Character>>>>
i agree
ok sure
When compiling a pattern should that be done in a static context, or at least outside of the scope you are using it in to get the benefit of compiling it before hand.
no excuses 🙂
yes
yea i've been doing like
pattern = Pattern.compile
matcher = pattern.matcher(blah)
}``` but i think i need to move the pattern line outside the method
ye
val pattern = Pattern.compile
var matcher: Matcher
fun x(x: String) {
if(matcher == null) {
matcher = pattern.matcher(x);
} else {
matcher.reset(x);
}
}```
I think
or idk how u'd do that in kotlin but u get the concept
why have the matcher outside?
performance shmemormance
yeah every diminishing performance optimization counts
eh, I disagree with that one
well there is memory
bcs now this function is impure
its not just performance
😦
I guess
impurity 🤢
and that has more drawbacks than it has benefits
also, use "pattern".toRegex() in kotlin
^
regex 🤢
I mean, if you don't like "imperative" style then sure
and creating a new matcher every time is probably thread safe at the purchase
Imperative bad, declarative good
but a shared mutable variable isn't
add a lock for easy thread safety with no downsides!
how do you get a matcher from Regex as opposed to a Pattern.
probably don't need one
you perhaps don't need it to be thread safe all of the times
what are the results you want to get
not just thread safety, leaving some random variable out there with no apparent purpose other than some useless micro optimisation is not an improvement
it's purpose is to be reusable
kotlin should only compile pure functions
if you want dirty impurity you have to use java
Haslin
imperative is nice
Kotkell
trying to colorize a string replacing hex codes
Haskot
and that is useless
it doesn't add anything
it just makes the code more convoluted
whatever you say
no I mean more concretely
how would you use a matcher here
https://paste.jaims.dev/vapiwowobu.cs this is what i have been doing but I am trying to make it better cause it isn't great lol
i did just see that Regex#replace seems to have a transform option
WRONG
might be able to use that
🥲
imperative isnt bad imo, but ill try to use declarative ways wherever possible
u can take and twist my words whichever way u want 🥲
im doing it for a good cause 🙂
The bible uses satan as simply a metaphor for imperative code
indeed
god is haskell and satan is C
and programmers ate the forbidden state
and doomed humanity
mutability nice :]
🤨
mutable enums
I mean is it rly essential to have monads
obviously
have you guys ever used .ini for configuration files?
like i know .yml works very well
but server owners, when they see something that isn't yaml, go whaaeefsdafsadfsdaf
ini is simpler than yaml
?
for example, lets say i have an int array
full of rgb colors
then accessing each r,g, and b color would be the following bitwise:
int red = rgb >> 16 & 0xFF;
int green = rgb >> 8 & 0xFF;
int blue = rgb & 0xFF;
However, there is another option where instead of using bitwise
I make 3 parallel arrays of r, g, and b colors
And directly access them via the array
that array would be fat
Which?
bitwise operations are very fast
well yea obv
if you gonna fit all colors in array
what's the input type
what do you already have
the input type is a normal integer array
Am I wrong thinking of :: in c++ to be similar to this.?
yes
integer array of what
let me pull it up
In that case it is used the same way this. in java is used
no it isn't
no it is not
afaik :: is for referencing something inside a namespace
yes
Ah judging by that code our lecturer made us write it seemed like it worked similarly to this.
closest equivalent in java would be a static method i guess
the int[] buffer is a primitive int array with the rgb colors, cause you can store rgb colors in one integer
bitwise is better then
how so? just wondering
it's both faster and has a lower memory footprint
^
I see ok
there's also the small benefit of not having to keep the arrays in sync
i.e it's easier
i would like to remind everyone this exists
What is that?
some guy knew python not java, asked how to make a method
javapythonjure
Ohhh
amazing
xD
lmfao
So im working on something with packets
I get the raw , compressed, byte array send by the client
is there any API to translate compressed bytearrays back to minecraft packets?
protocollib
https://wiki.vg/Protocol#Spawn_Living_Entity
I am using protocollib and need to write the data to the packet, so for the Spawn_Living_Entity one, if I have an entity and want to sent the spawn packet (or hide at another time), what data should I be writing.
protocollib seems to have like packet.integers.write(blah, blah) or packet.doubles.write(blah, blah), where the first param is the fieldIndex, but im not sure what that index should be based on the protocol wiki
like for the doubles, would the first index for x be 0 or 3 (assuming it is 0 indexed)
3 probably
isn't he in here
lol
Hey @steel heart, sorry for ping but I've updated my plugin, can you make a new "clean code lookup" 😅
send link
dont ping em next time he be pissed af
jkjkjk
but just send it here lol
For one thing though, however, is your domain name
do you own the domain: me.lorenzo0111 ?
no 😦
a
yes you can
pretty sure the spigot development tutorial encourages you to use me.username.pluginname if you don't have a domain
that's why I always used me.blitzgamer_88.pluginname
Oh hm.
mh.. is there a cheap domain hosting?
same here
actually I own it now. well I did. I think it expired
In most java package naming conventions they tell you to not use it
if you don't own it
idk its not really a big big deal like fbi wont come and catch you
lol
namecheap or name is usually good
with gh students you get a free .me domain
you can use com.github.[username] for free
for 1 year
yeah
you can technically use any domain
I should start using com.blitzoffline then I guess
that's pretty good domain tho, why haven't you been using it xD
the .me is not cheap xD
Oh I see
huh?
4.84$ on namecheap
also as I said free 1 year with gh students
if you are a student
and after 14$
that's for a year
Yeah
it gets real expensive after
like 40 bucks a year
funny part is that its a 69% discount for the first year
fuNnY nUmBeR
ikr
huh?
where?
with or without gh student?
will look after I finish this game of csgo
okay 😄
I'm to good for this https://i.imgur.com/dvgn1XT.png
poor montenegro
who r u
see
impressive isn't it
guaranteed to increase jar size
https://www.spigotmc.org/resources/deluxeasyncjoinleavemessage-fully-optimized-async-everything-open-source.88129/ - Conclure/DeluxeAsyncJoinLeaveMessage
go here and scroll down
freenom has the cheapest domain names change my mind
@weary epoch Stealing code?
lol
i was kidding
isn't freenom scammy
ok
and cheap domains if its a good name
i wouldn't recommend buying anything on there
yes
It used to be complete free forever
not anymore 🤷
it has free .tk .ml .cf .gq .ga
have you finished the game? 😄
dont purchase anything more than $0
bruh
It had only .tk back then
be patient lol
thats still a website
ye but can't seem to find the website xD. I mean you can try freenom if the guys say it has free domains.
it just redirects to freenom i think
but I'll try looking a bit more
No idea
it gives doms with .tk :/
freenom gives a bad look
https://www.spigotmc.org/resources/deluxeasyncjoinleavemessage-fully-optimized-async-everything-open-source.88129/ - Conclure/DeluxeAsyncJoinLeaveMessage
i already have a premium domain with .space, but I want a .me lol
ive used some free domains on freenom
69420?!
they work
You get .tech or .me domains for free for a year
dont put things like ur address, phone number, just bc of all of its reviews
i dont trust them
u dont
I dont really recommend .tk
ok
^
i dont like .tk
tk is widely known
i like .cf
i like .hub oh wait
porn.hub should be the domain'
kekw
you do it
no
im on my pc
im on my school laptop
im not going on pornhub on my pc at noon
just go into the closet or smthing
lmao
lol
lightmode on IJ isnt that bad
dkim you should do it lol
ur gonna talk like this again 🙄
okay
isnt bad
burn
default light sucks
🙄
|| hes doing his "eclipse is better than IJ" stuff for probably the 10th time ||
how do i decompile a jar so i can steal code
lol
p
sus
lol
sad
Simp
there thats the smooth one

ez
that was the last we heard of timmy
with that screenshot
i found out where u live whats ur favorite color ur mother maiden name ur uncles brothers best friends dog's breed and how much food is in ur fridge
stay safe
im in USA
slovenia is the most obscure country i can think of
me2
other that angola
and gahna
everyone knows u live in germany
u said it multiple times
lol

oh ur german name every world war you caused 🔫
efe cap
hey
i ran buildtools on my school laptop
it only 1.1 gigahertz cpu
my main pc is 3.8
clock frequency on its own doesn't say much about the speed of a cpu
wait bruh there is a newer version of the model which is cheaper and its 4.5 gigahertz
tf lol
although if it's a newer version it is probably better
5600 isn't cheaper than 3600 though?
waste of money lul
when i bought it the cpu didnt exist
lol
i did
i just bought it before the newer version existed
is there something more price worth?
@forest pecan what is even the best CPU on the market rn
idk
ok ima buy that one
sure why not
hmm thought it was gonna be more expensive
no I actually know
but I need to start with something
if you just want to throw money out the window get a high end xeon
completely useless for desktop pcs but it's the most expensive
In the old days there was no RTX
you mean titan x?
damn those are somewhat more expensive
there is also some nvidia workstation gpu that costs like 3k$ I think
NVIDIA Quadro GV100 Volta GPU 32GB Graphics Video Card
3.7 out of 5 stars 10
$9,109.0
holy fuck
Ah yes I meant that one lol
indeed
now run it in 4-way sli
tru, well my potato laptop needs an upgrade 
pandemic delaying?
ez gogle crash
go away
- pandemic
- nvidia and amd's production is a rip off
- cryptocurrency douche bags

Elaborate 3 😮
whenever crypto is on the rise graphics cards become stupid expensive
because all the miners are buying up the stock

so it will probably take at least another half a year for the market to normalise
oh damn sounds rigged
Oh yeah Idk if GPU or CPU is more worth for just developing casual code anyway GPU sounds cooler
so I will buy one of those
If you're not playing many video games or run other gpu heavy apps you can focus on the cpu
hmm interesting
i play minecraft and my gpu is at 1% but i get 1300 frames
but my moniter doesn't support it
🥲
that is because minecraft doesn't use much gpu
might change with shaders and resource packs
my gpu is actually not super godly
the fans also never spin lmao
cause it doesn't need to xD
oh wait it doesnt?
i feel like my ssd is bottlenecking me hard
Yeah it doesn't
its more on cpu
and ram
i mean, look at the graphics
more importantly the cpu
I have been fooled during my entire life :[
it's really all physics and other cpu calculations by default
yeah I mean in the end it's just Java code, the only things that stress your gpu are whatever LWJGL does
You are literally looking at upscaled 16x16 bitmaps
What makes you think that is going to demand gpu
Idk don't know much stuff about cpu and gpus
I mean else than gpus are better at multi processing
but that's banal knowledge
is spigotmc.org down for yall or is it just me
it is

its up for me
I can access it just fine
up for me
interesting
its like loading unbelievably slow
ye its like buffering
Sucks to be you
but forever
ikr
cba

no

no pls

fu
lol
bruh
Lmao
these dancing emotes jeeueuesh




Ping me if you find it 🙂

Wtf right clicking the git bash executable makes my explorer crash
😂
@forest pecan You still need one tho <3 ||jk no ban||
lol
Question, when using WHERE and SELECT, can you also use arithmetic operators even though on w3school it says WHERE only accept Comparison and a few logical operators?
@ocean quartz
Can you give me an example?
?tryandsee
smh bm
Like what I meant is what would arithmetic operators be










