#dev-general
1 messages ยท Page 125 of 1
just learn brainfuck and everything after will either be melted or easy
Moo is better
emoji language ๐
@topaz bay you mentioned that you shouldn't use GlobalScope.launch. in the context of a discord bot commands, should I make my own Context with some sort of thread pool? Given that JDA is already using a thread pool, making another seems like a waste
I think I'm going to kill myself
How come?
I'm just stupid
for the past 4-5 hours I've been trying to figure out a thing
and turns out all I had to do instead of directly sending the message set it in a variable and then send that variable xD
gg
took me 4 hours to actually compare a message that works for me with the one that didn't
development skills increased by 99.9%
well I did compare them but didn't realize until a few minutes ago
time to test the plugin xD
well at least in this time I've become more used to using when instead of if unless if its rly needed xD
@prisma wave why would that be a waste?
nice my fakejoin/fakeleave commands are working xD https://i.imgur.com/BZZJ4Ti.png
already better than frozenjoin
yeah a feature that FJoin doesn't have xD
now its even better because I can use it from console and it doesn't have 2 spaces by default between the message and player name xD
just need to figure out how to make placeholders
do I just search for the keyword like {player} or something and replace it with the variable I want or something? xD
String.format
ty ty
String.replace?
I used this greeting.format("{PLAYER}", sender.name) time to test it
so I was right the first time I guess? xD
oh yeah
doesn't change it
for some reason
greeting.replace("{PLAYER}", sender.name)
yeah that's what I thought the first time
wasn't sure tho
crash time
again ...
xD
quick question about plugin.yml. Is there a way to specify multiple api versions?
couldn't see anything regarding this on spigot
ugh replace doesn't seem to replace it either
greeting.replace("{PLAYER}", sender.name)
api version is used to indicate the minimum version your plugin requires for functionality
oh so its minimum
I see
thought its only that version
that's what I understood from reading the tutorial on spigot xD
ty ty
oh finally turns out replace works but I need to get another string in which to save the changed string
time to add firstjoin message
What a comedian sheesh
โ ๏ธ rude
Frosty you cant even eat solid food my guy
:(
๐ (laugh)
I guess you could say I am quite the expert now
why is no one messaging me for commision this is so dead
4 plugins 10-15$
na this servers just dead
why is no one messaging me for commision this is so dead
Raise your budget. Add more details.
lmfao no one here has the time or patience to make 4 plugins for that budget considering they're kinda complex lol
I recently changes server provider to titannodes. Does anyone have any experience with them and knows how I can change the version?
not really right channel
I love rust
4 plugins 10-15$
@heady birch yes? 3 of them will take 15mins to code ru okay
๐คจ
:0
how do you know how long it takes to program something
if you can't do it yourself you don't know how long it takes.
you love anything you have barely touched
I have coded plugins in the past and I would code this myself but don't have the time
You dont have 15 minutes?
^
I mean you've been talking here long enough to be done in your timeframe lol
I'm not actually I can type 160wpm here and I've wasted 2mins
i switch window on every message
๐ ๐ ๐
clown
emoji spam smh
Shut up
@distant sun warning
it's not a meme all clowns can leave
=warn
=warn <@user> <reason>
Feel free Foxxite ๐ต
The main issue is that the addons would most likely need to be modifications
let's not go this route and also move to #off-topic
which complicates it 10x more if the source of the plugins is not available
You dont code that fast, Niall, so you cant say your opinion.
if its so little time just do it urself
@obtuse gale did i ask for your opinion
well i mean
you did
where?
^
Fire
but when do you make a decision lol
I honestly think that would actually be good for you
$5 a variable name
Decisions Crafting Table
you've been stuck more on decisions than actual limitations lol
๐ซ
Lmao
also i changed the budget
Per plugin?
LOL no
can you guys talk about those requests etc not in here unless it's actually about development
thanks ๐
also i've seen a server do it with autosell plugin so it's 100% possible
Thats not what he was asking lol
i would expand on the simple item flip thing
only because I don't know what that it
niall there is a thing "private message"
It has a sell event but idk if you have access to the items list
Kool
I hope your budget is per plugin
Yesnt
@inner umbra #dev-general message
Why are you sending me that lol I was answering his question
@frigid badge
fn msg_to_bytes(input: String) -> [u8; input.len()] {
let mut message: [u8; input.len()] = [];
hex::decode_to_slice(input, &mut message);
return message;
}
Any way to make this possible
basically what this should do is return a byte array for a hexadecimal string
I could use a Vec<u8> but would prefer [u8]
the returned [u8] will be the same size as the input string length
You cant
Alot different to java
array lengths need to be known at compile time
Vec<> it is
@topaz bay because threads are expensive? Idk, it just seems like a bad idea
ngl hypixel anticheat is doodoo, dude was legit flying, bhopping, scaffolind full on ka and he didn't get insta banned
u only just realised?
I mean considering they just hired someone new I'd expect it to not be that shit..
welcome to the club
I want val in java
We have val in java at home:
Val at java in home:
final Val<Integer> finalValue = N.of(0);
Val at java in home:
none
ehh
you use another package
eh
spaces become dots
this for kotlin aj?
yea
Names of packages are always lower case and do not use underscores (org.example.project). Using multi-word names is generally discouraged, but if you do need to use multiple words, you can either simply concatenate them together or use the camel case (org.example.myProject).```
pls no camel case package names
^
that looks bad tho
just use another package ๐
Id rather use a _, is there any reason not to other than just bad convention?
alright
aj, what two words is it?
big duck
fuckOnePointEight
yeah I use _ sometimes in unused vars
๐ฌ
void drawSomeTing(final Graphics _g) {
final Graphics2D g = (Graphics2D) _g;
}
else Intellij suggsting things I dont want
@frigid badge I need a little assistance i cant seem to find anything on this? how would one do this inrust?:
interface Person {..}
class Student implements Person {..}
class Teacher implements Person {..}
List<Person> people = ...;
for (final Person person : people) {
if (person instanceof Student) {
//e.g
}
}```
All this traits stuff
for example I have Animal, i store all Animal in Vec
but when iterating Animal, some of them are Nameable
And how can i get the NBT data from it?
no idea
Nms
@heady birch show your code
for animal in animals {
println!("Animal type: {}", animal.get_type());
if (animal instanceof Nameable) {
println("Animal name: {} " + animal.get_name());
}
}
of course instanceof isnt even a thing
is Nameable a trait?
yes
does anyone know of a plugin that fixes block clipping? like there is a wall and players spam block theres to get to the top with build deny
anti cheat should stop it
modify your builds to stop the glitch from working then
Then buy an anticheat :p
none good for 1.12.2 also ncp is aids
except verus
which doesn't accecpt paypal
;p
I wouldn't have asked if I didn't know all the outcomes
make ur own anticheat
what is block clipping
foxxite, what was wrong with my suggestion?
I don't know how
it's really simple
you have a vertical wall
put something on top, so they can't clip up
but the types have to work together
odin
is like rust
ie. All can be reduced to a specific type
because it would ruin the design and barriers = glass for 1.7
barriers exist
But specific types cannot be replaced
You're on 1.7 lmao
Disgusting
They won't mind
i would
Are there any premium anti-cheats that can fix it?
It's called an anticheat, and for what you're looking for even cheap ones can do the job
lmao
It's called an anticheat, and for what you're looking for even cheap ones can do the job
@hot hull I have more information than anyone here about anticheats
the only good one for 1.12.2 = verus that's paid
and doesn't accept paypal
Buy some way else?
i think i have the most knowledge
i dont get it why cant people just use
event.setCancelled();
}```
dont you just love when shit works after a complete rewrite
ikr
Kali
C upper case
And Foxxite, since you're so well "known" get a custom one made lmao
But considering your request in #727778089857187861, that's a Press X to doubt
Well yeah kaliber's solution would work
And Foxxite, since you're so well "known" get a custom one made lmao
@hot hull why? just to fix my block problem? and that's what i was going to do if no one sent me a link but you guys started arguing like always and i alraedy have the 2nd best 1.12.2 anticheat for my server
You just need to dispatch the event ๐
Can someone explain block clipping to me still
Doesn't seem like the 2nd best if it can't stop block glitching lmao
LMAO
Explain block clipping to me
its funny that every other anticheat can stop it
It's not a hack, yet it is an exploit
they do it to blocksome movement hacks @onyx loom
which my 2nd best anticheat has other ways to do
Due to how shit older versions of mc is
Explain block clipping to me
@heady birch
What is block clipping
does the name not imply it niall?
not really kaliber
niall, users can climb up a wall, by placing a block underneath them, and jumping
protection plugins like worldguard automatically remove the block, but not before the user successfully jumps
haha clever
literally like... the oldest minecraft "glitch"
Well really its a matter of ping
The higher your ping is the easier it is to do
1000 ping is not good?
it's the same with 1k ping
right
it is
the hek going on here
Absolutely not
200ms+ ping club pls
100 ping is a luxury for aussies
100 ping is 2 ticks worth of time
^
a lot happens in those two ticks
i play with 300 plugins always ๐ญ
WEW
that gives time for the packet to not be sent, and for the incoming packet to not be processed
o
which is the reason this glitch exists
sub 30 ping its almost impossible to do it
LOL
Ive had 6 ping
strong*
I get ~15
When hosting server down at office
good ping is for the weak
on most servers
hahahahaha
Anyhow this is getting a tad off topic
I get 200 minimum on any server
^
So suggest moving to #minecraft or #off-topic
opinion on rust sx? niall has taken a liking to it apparently
pig pls
funnycube there is a potion bug with deluxemenus
rust language funny
o
not the game
alexa play despacito
Fox I don't manage deluxemenus
Its a nice language in practice, but the syntax is god awful
like
ah
and I can't access their functions on trait Nameable at runtime
because I can't check that
visitor pattern? ๐ซ
because rust inheritance doesnt work like that
I figured that
Designing everything would be completely different
e.g
function that decodes packet
take a look at feather
fn decode(message: Vec<u8>) -> Packet {
return match ... {
a => SomePacketTypeA,
b => SomePacketTypeB
}
}
what a sadcube
Feathers are epidermal growths that form distinctive outer covering, or plumage, on dinosaurs, both avian and some non-avian, and possibly other archosauromorphs
...
Yes
but the syntax is god awful
The really nice thing about rust is the compile time memory management
And thats about it....
thats.... a lot of iterators
Katsumag be like
sauce pls
@funnykube this channel should not be a 'trial' anymore
Kube
apparently itll always be a trial
which means this channel could be gone forever at any point ๐ฆ
I dont wanna ping him I am scared of him
where does it say it's a trial?
he said it himself
pinned
fixed
:)(:
xD
this moment felt the same as the moment Bruce Wayne bought the restaurant he ate at and after that he corrected himself and bought the entire building
:what:
๐
you didn't watch the batman movies?
I feel slightly responsible for the creation of this channel ๐
๐
๐ฅ
jk jk don't sue me
๐ข
I mean i just joined
I know ๐
Well its dev help i need
Any of the channels under ---------support----------
should i just use #placeholder-api
Go ahead!
even if its for development?
I mean go ahead here ๐
Im trying to implement PlaceholderAPI into my plugin
i got it all working
although it doesnt automatically update
Yikes
Just made my minecraft dev intellij plugin do kotlin :))
ye
nice
๐ฎ
Link?
also added this
yeah ill grab it if it does
does it use gradle?
That's cool
No apostrophe though smh
I was thinking about making the kotlin option toggleable but then I couldnt be fucked lol
:/
i might add it
Yo @onyx loom you knew I added papi support to my plugin? xD
also im removing maven support ๐
๐
also Matts framework is extremely helpful
๐ฆ
if anyone wanna use it
Does it actually exist?
how can I add something to the first index of a list no matter what?
wait
thats a dumb question
like really dumb
0

Aj. I want you to go sit in the corner for a little bit and think about that. You're in timeout.
๐ฆ
i feel like thats something i would ask but even i wouldnt ask that
bro its easy
convert the list to an array
make a new array with + 1 length
copy all items with index + 1
and shove it up your butt
@obtuse gale link for your forked plugin?
nice one niall
just gotta fix some stuff up quickly
n
i think niallLib is a huge feat in humanity
so shut up sx
tryna spread negativity ๐
Ikr
NiallLib is great
Too bad funding got diverted and you had to cancel both it and KaLib
in a repository whats the ID?
kalib ๐ณ
Dont worry
I finish this
But it will probably be a single class thingy
in a repository whats the ID?
@obtuse gale ?
All entities have an ID
@Id
private Integer id;
well like
should store an n in an n
in gradle lol
cos the dudes got a data class for repositories
but it takes in an ID and URL
gradle
i dont know
I thought you were talking about Spring Data Jpa Repository Mysql Jbdc
obviously not, my day is ruined and my dissapointed immeasurable
it's just a name I think
ah
@prisma wave nasty chain call resolution
property and function calls rely on resolving their target by name
So I just inject a temporary property that gets assigned to whats on the stack
gross
Also I doubt this works for bungeecord/waterfall plugins
It may be gross
should make a papi expansion option
didnt waffle do that?
also ive got no clue how to build this thing lol
N.java isnt gross tho
James gosling once said "N.java is the solution"
so how can we compare
James gosling once said "N.java is the solution"
@heady birch
lmfao
james gosling ๐คข
๐
how would one go about updating gradle?
how'd you install it?
hm
actually
whats going on is i think the intellij that the run configuration uses might use an outdated gradle wrapper?
Because its saying my gradle version isnt greater than 6 but it is lol
well
and when I use the runIDE trask it opens up like a 2019 gradle version
if it's for a project
use the wrapper
then you can update in gradle/wrapper/gradle-wrapper.properties
ah
him*
If he didnt make java
brister is gonna make gosling eat the curb damn
There may not be kotlin ๐ฆ
java is a great language
If I ever make the kotlin feature toggleable it will be so you can enable java not enable kotlin
good idea
if kotlin is so good, why do I never see people actually endorsing it in the real world
people are raving over rust, not kotlin
selective viewing
rust
people just dont realise the potential of kotlin ๐ฆ
maybe it just has some flaw you haven't realised yet, that everyone else has
doubt it
if kotlin is so good, why do I never see people actually endorsing it in the real world
@quiet depot They convert
Once they try it
They dont go back
i tried it
I'm still using java
actually I wouldn't really say I gave it a fair go
i dont think u tried it for long enough
tbf since I started with Kotlin I've only gone back to Java to do ItemActionsLib and its been pretty painful
pig just did
fun main() {
println("Hello world")
}
โน๏ธ
you've never tried kotlin enough
not interested in learning kotlin atm anyway
smh
who would willingly choose to learn python
school?
however my desired uni course uses python
and I'd like to have a working knowledge of the language before I go, so I can flex on kids
c++ is also used in the course, hence why that was also there
Imagine having to learn python
python is shit, yeah, but it's also used everywhere
If you know any of the c family languages, you pretty much know all of them
i mean
i don't think java knowledge would be enough to confidently use C
speaking from experience
well java isn't really in the c family
๐ฆ
only syntactically
Its a direct descendant of C
The main c family languages are c, c++, c#, java, javascript, etc etc
and?
wow, before my internet rudely cut me off, I was trying to say
only syntactically
syntax is the easiest part of any language to learn
apart from lisp```
it's weird
o
Its just ugly as hell
i might be getting confused with a diff language
Lisp is gross
๐
is lisp actually a language, or just a language specification?
because we've got "lisp dialects" like clojure
aight, I take it back then
โน๏ธ
God's language
I'm writing out a wiki
This should be fun
"good language features - none"
hater
i am a speaker of truth
yes
yes
yes
yesnt
No lol
Ahh
Like in my feed/suggested/whatever the fuck itโs called
feed
Also
You guys got some haters
ah
What the fuck
My messages are coming through sxโs mouth
This is bullshit
You've been consumed
Also Matt and waffle you got haters
Lol
This gave me a good laugh
gren scren
thats matt
Ah
Jackson bad
@prisma wave Is it good practive to return actual @Entitys in an api?
Or a seperate object built from it
if see what im saying
Unless you need a DTO, I don't usually make one
it's just effort
no idea if it's a good practice or not
but it works
Oh interesting lmao
Yeah people were commenting "green screen" all over reddit too
Let me show you my petty reply
Lmao
Original comment
Link to it?
Yeah, that's why I made sure my showcase had dolphins swimming around in it ๐
@ocean quartz nice
class Human::[Being](val age: Int) or class Human(val age: Int)::[Being]
@prisma wave
last
Yeah last
Join table
airframe and tag
airframe_tag or tag_airframe
You were too late
I chose the first one
Why does this line not create a table in a mysql database? http://prntscr.com/te9lro
I have a command that requires an argument which I would want to be a player name so I made a for that goes thru the online players and checks if players[i].name is the target and then took me 30 minutes to figure out how to get the player using target.... turns out I have player[i] xD
@nocturne dock Try with just execute()
okay!
@static zealot Lol
yeah
it is kotlin
Ah clever
I still get the same error http://prntscr.com/te9ool
With this code http://prntscr.com/te9lro (I have tried changing to just .execute()
Why are you calling Primary key function for a single key, just add a PRIMARY KEY modifier at the end after the data type
The function is used to refer to other columns in the table and used only if you want 2+ columns as key
You dont have a column called player_points
Thats the table name
In the case seen I assume UUID is supposed to be the primary key
uuid does not need to be a LONGTEXT
Could you guys give me an example of how it would be? ๐
nope 
have you heard of Spring Boot ๐
Jokes aside, here:
CREATE TABLE IF NOT EXISTS player_points(
uuid CHAR(36),
points INT,
PRIMARY KEY(uuid));```
ew
just declare the primary key inline
it doesnt need to be in a constraint unless you want to do other things with it
literally hibernate could do this
simple as
class PlayerPoints {
@Id
@GeneratedValue(..some uuid gen thing..)
private UUID uuid;
private int points;
}```
except hibernate is a 10mb lib
๐
You pervert Yugi
What's that mean Sx? I'm not sure I get what you mean by that
Anyone know if there a way to create personal npc's with citizens ? Like player player his own skin
well I know there is a way to let people create their own npc dk if you can make them have the skin of the creator
If you install Denizen you can do /npc mirror
But i work with the API so i was wondering if the api has something for that
Got another issue with my database ๐
Why does this reset for the database cause this error? http://prntscr.com/tebuyv
Connection con = this.getConnection();
PreparedStatement ps = con.prepareStatement("DROP TABLE ?");
ps.setString(1, "player_points");
ps.executeUpdate();
Could I ask for a little Discord js help here?
Oh okay, ty
Hey @regal gale you willing to share the sauce for your #showcase?
@errant geyser maybe one day ๐
aliases to refer to types
Used when you have large type names which you dont want to type manually everytime
What's that?
my fork of the MC Dev IJ plugin
Ooo, send me a link
Absolutely no clue how to build it lol
I suddenly receive this [JDA RateLimit-Worker 2] ERROR Requester - There was an exception while executing a REST request java.net.UnknownHostException: No such host is known (discord.com)
Is discord just down a while ago 
Please ping me if you answer
Most likely an issue with the code
Not a lot anyone can do without looking at the backend of it
ยฏ_(ใ)_/ยฏ
By icon do you mean emojis or an image?
Also beware, it is visually anonymous, since this is all event based, the original message is sent to the client as well
still tryna get this plugin exported working lol
Based on your experience, would you say it's better to start of with Skript plugins, or full Java plugins?
Learn rust
learn kotlin is what everybody should be saying
Forget about that word all together Finley
^ kali bad
๐
Kali, read the chat you nerd
oh the skript
Rust is good
i thought u were talking about kotlin ๐
smh
er
> License violations were found: src\main\kotlin\com\demonwav\mcdev\platform\bukkit\util\CustomDependency.kt, src\main\kotlin\com\demonwav\mcdev\platform\bukkit\util\CustomRepository.kt, src\main\kotlin\com\demonwav\mcdev\platform\bukkit\util\Language.kt
@obtuse gale ./gradlew updateLicenses
ah
i talked about rats so much ive got rats in my house 
๐๐
Ew
oh shit finally my plugin completely works xD
gg
ty btw Death xD
I have a give all command. What should I default the amount of items to if an amount is not specified? I guess 1 would be best because of non stackable items?
isnt there something to detect if an item is stackable?
or get the largest possible stack of that item
Probably getMaxStackSize() > 0
^
There is a method like that I believe
On the type
itemstack.getType().getMaxStackSize
if the item is stackable up to 64 just give 64 if its 16 give 16 etc.
oh I see that will be a nice thing to add. ty to both of you
item.setAmount(item.getType().getMaxStackSize())
oh thanks
what's that?
I just got the WakaTime plugin and all things say 0m so far lol but kotlin is ontop as it should be
my give command is even better than essentials now xD
wrong
Not really
wrong x2
That doesnโt make sense
Well yes kotlin might have some more functions I agree thatโs good
But itโs not all about that
well if you are talking about the give command yeah the quality and I even have a give all command xD
Well as a matter of a fact Java is way more established
yeah and kotlin is getting there
Something being more established != its superior
We yes you can use Kotlin where ever java is but it requires that lib doesnโt it?
Or that dependency idk
Well java isnโt an option in embedded system programming but thatโs like 1 thing
Except that java is very established
And doesnโt requires much to be installed and used
How isnโt it?
the java standard library is much bigger, but it's bundled into the JRE
Ori doesn't know much about kotlin to argument nor do i care about whatever you have to say 
so saying "kotlin is bad because it increases jar size" isn't really fair at all
Well, is it worth including that kotlin lib just because you want to use first class functions in just some classes?
also I need to make it so in the List atm maven in shown first ๐คฎ
yes, that's the only reason people use kotlin
first class functions
that's it
nothing else
Well if it runs as Java bytecode in the end idm if you have a first class function or not
stupid
that's... not an argument
first off it completely ignores that first class functions are blatantly not the main reason to use kotlin
secondly, it makes no sense
It does
the point of having first class functions is to make development simpler. saying "it runs as Java bytecode in the end" means nothing
would you say the same thing about the enhanced for loop?
Well everything is not about making development simpler
what... exactly is your point here?
Java is better?
for what reasons?
Well as a matter of a fact Java is way more established
since kotlin is 100% interoperable, that's not an argument
We yes you can use Kotlin where ever java is but it requires that lib doesnโt it?
already talked about that one
And doesnโt requires much to be installed and used
neither... does kotlin?
none of these points actually work
Wait... your argument is that Java is better?
apparently
That is just objectively untrue

Kotlin is as hard to set up as adding spigot as dependency
arguably easier since IJ can do it for you lol
Can you actually define 1 thing Java does better than Kotlin?
oof
Java is much better at having a bigger boilerplate
I cant work out how to rearrange the order that gradle appears in in this list lol
Kotlin does Java better than Java does
I will write when I get home
can't wait
Write...
I asked for 1 thing :/
If you dont know something off the top of your head, theres an issue
the amount of times ive done } catch (ex: IOException ex) {
lol
eyy