#dev-general
1 messages · Page 116 of 1
Easier to configure
And it's what Bardy and I used the first time, it's just simpler and kool
Also yeah, I'm sure its stopped
meh
It cant be that much simpler if you arent able to do the simple task of assigning ssl certificates
Bish caddy is stopped, how would this be its fault
I'm referring to the set up in general
But also, you wouldn't have this problem if you were using nginx
¯_(ツ)_/¯
Teach me how to serve a site using nginx, and also how to set up a reverse proxy for my repo, and I'll switch if Bardy ain't got no clue about Certbot
https://docs.nginx.com/nginx/admin-guide/web-server/web-server/
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
Configure NGINX and NGINX Plus as a web server, with support for virtual server multi-tenancy, URI and response rewriting, variables, and error handling.
There ya go
All laid out for you
But that's so much harder than caddy tho
Do you think just ignoring the fact that you dont know how well serve you better in the future?
Its honestly not that hard to just read it and figure it out
But I've had caddy working before, so why would I switch? All I need to get working is Certbot, why would nginx help with that?
Because its better, and it works.
And its directly supported by certbot
Why do you even need certbot if caddy has management for ssl through letsencrypt anyway?
daymon
good
Better question, how do you pronounce "nginx"
"engine x" or "enjinx"
Same with "mariadb" do you say "muh-REE-a" or "MAH-ree-uh"
pepega brain
ive always said enjinx
^
🙁
Such profound levels of disappointment
TIL.
I’m an enjinx and MAH-ree-uh guy
I actually pronounced it "enginx", for Maria I just pronounce it like it is in Portuguese since it's a Portuguese word
Also pronounce S.Q.L instead of sequel
so you use the same “g”, as if you were pronouncing “geese”?
Yeah
Basically how i pronounce it https://youtu.be/xrjXchEsU3c?t=18
This video shows you how to pronounce Maria. Record your own pronunciation, view the origin, meaning, and history of the name Maria: https://www.names.org/n/maria/about
SUBSCRIBE now to get more name pronunciation videos https://www.youtube.com/user/TheMeaningOfNames?sub_conf...
Rolled R
GIF is the worse one imo, I'll never understand how it's the correct way to pronounce it "Jif" if English literally has a word "Gift" where you remove one letter and you get "Gif"
Well GIF isn't a word like "Gift" is
And the same can be said about the word "Gin"
Which is pronounced "Jin"
Also, I'm pretty sure the creator stated that the way to pronounce it is with a soft G
The moral of the story is that English is a dumb language
Funny thing is that I'm used to pronouncing Gin with hard G xD
Though that's because of my main language
The letter G is literally pronounced "Jee"
omg
English is pretty hard in consistence, like for example "read" and "read"
origin
still the best language 🙂
mongs
We have problems like that in portuguese too, like "mal" and "mau" or "facto" and "fato" pronounced the same but never written the same
🤔
red herrings
when's kotlin natural language edition coming out then
The perfect language to speak
is that what theyre called
sAmE tHiNg
I like english though, it's a language that sounds good, even though writing is tricky
AT ALL
🙄
Sound the same, written differently?
Wait nvm, you were talking about matt's words
Sounds pretty homophonic to me
please enlighten me with ur knowledge sx
Yes
I was referring to read and read
ah
read read red
I think english is better with not having masculine and feminine words, simple verb conjugations and stuff but to read and pronounce it's very inconsistent
Yeah agree
just learn the language and ull know the difference. not hard 
We put gender in literally everything
most languages have genders
@onyx loom tell that to the native english speakers who don't know the difference between they're, their, and there
probably comes from Latin or Italian
oh hod
english is not hard to pronounce
The way we speak english is literally the result of us dropping hard to pronounce things
english is not hard to pronounce
though through cough thought
last year of high school. 16 years of age and yet they still dont know simple grammar...
Consistent
like guttural and rolled sounds
Those are not hard to pronounce
They are just inconsistent
Tbh i prefer Amarican English over Brit, it's much easier to understand
"English is very hard to learn. It could be understood through tough thorough thought though. "
brit >
"to ... pronounce it's very inconsistent"
🙂
that is exactly what I said
Brit is so hard to understand though
u wot
how 
how so

wtf is CHEWSDAY
wym, they’re basically the same, brit just injects a few more vowels
For someone that doesn't speak English natively ofc, like as an outside perspective
😂😂😂😂😂
The accent is more complex
oh you’re talking about accent
Yeah
There's no single British accent though
im sorry that we have an accent change every couple miles or so
Northern accents are a mystery to everyone
yet u can go 200 miles in usa with the same accents
The US has accent changes every couple hundred miles
british english isn’t even specific to britain, australians speak british english too
I mean i know there isn't a single American accent either, for example southern american is pretty hard to understand
But british overall is much harder
good aussies 😁
Yeah, but you guys use every vowel in the language to say the letter "o"
hm strange
It's like how Brasilian portuguese is much easier for english speakers to understand than European portuguese
if we’re talking about accents tho, gonna have to say american > british
sx what?
if we’re talking about accents tho, gonna have to say american > british
Absolutely not
no
ok for a northern accent
The was australians say the word "No"
fuck the Scousers
i mean aus accent > everything else
I hate you
I love Scottish though, even though i understand literally nothing
LEAVE
i mean aus accent > everything else
@quiet depot i can second this
Scottish is great
scottish is great
but fuck liverpool 😁
och aye ye wee nipper gon get smacked if ye dunt shut it
i’m sorry i don’t speak united kingdom
Oh god, i cannot recognize a single word from a liverpool accent
KNACKERED
southern accents best
It means tired
knackered = tired
We say that down south too
I don't think that's Scotland exclusive
Iron Man's replacement AI
that's very specific
Irish is great too
i have irish family
why didn’t he bring back jarvis
good accent. can recommend
now. what do u think of my accent 
My fav accents to listen to tbh are scottish and aussie
birmingham
hmmm
Close enough
I noticed that no one made a video about all of F.R.I.D.A.Y.S lines, and I was annoyed about that. She needs a video with all her lines.
No copyright intended
Marvel and Disney own F.R.I.D.A.Y.
F.R.I.D.A.Y. is voiced by Kerry Condon
Movies:
Avengers Age Of Ultron
Captain ...
Found it by the way
@onyx loom I've given it some thought and I've come to the conclusion that Birmingham sucks
"Targeting systems knackered boss"
🙁
"han to han"
Great replacement
tbf i didnt adopt the accent somehow
Jarvis was so classy
knackered is great
i would really like anyone to go out of their way to say it in a sentence to someone
I'm knackered
Can we talk about the useless K
Simple
I love knackering bitches
oopsie
daughter
porter
Be thankful english doesn't have accents when writing
Dont you mean "POUR TAH"
caught a panda
Let me give you a little taste, "ca" is pronounced "ka", "ce" is pronounced "se", "ça" is pronounced "sa", "se" is pronounced how it's written, "sa" is pronounced "za", it's not fun
🤔
what in the hell
yeah
wouldn't they just use c without the ç?
Kiosque
i cant think of any either
Kilogramme
There is no word that uses K in portuguese and we still have it in the alphabet for some dumb reason
What about the units Matt?
Couldn't help it
Oh wow, it uses Q
qilogram?
Quilograma
Well that's why it's in the alphabet for things coming from other languages like Kilobyte even though for Kilograms is quilogramas
Strange
Wow... te is pronounced "che"?
Only on Brazil
THATS fucking scary
In portugal is pronounced Teh
Oh noice
meaning
Window
window
thanks
i only remember it as i watching a csgo event and the crowd was shouting it as the team playing was portuguese
lmao
so yeah crowds influence esports
can't argue with that
Only sentence people know when they visit here is "Bom dia"(good morning) and they use it no matter what time of day it is
typical tourists smh
jour?
yeah
Oh cool
yea
hm
french gives me headache
lol?
The words can be so similar to portuguese and be pronounced completely different
RUDE
no no, hes got a point
xd
tg
Straight fax
facts
ta. geule.
Oh god, "tg" is the most common thing said in any online game you play
that is not how you spell that word
This is why I dont write in french
and baguette
ta mère idiot :))
😮
I don't know how to tell you what I can't write?
Yes
i only understand the je peux pas ecrire part 🙁
could be worse
confuses you how?
It's strange to see "comment" and remember it's pronounced "common"
oh yeah lol
LOL
comment-bibliotheques

Common libraries
Its weird to force myself to not read "common" the way it is in english
euh je fais un comment??
Quick question: anyone know of any good VPN I could use to make an HTTP request?
like any?
Like any
as long as it just gives me back the text on a given website
without anything else
Yeah, but the issue is my IP address is blocked
vpn is for pron 
by the API I'm trying to access
then use any VPN lol
Yeah! But, problem is, they don't have any APIs that I can see
watch any Linux tech tips video to find one with a free trial
just download the software ?
Why do you need API? If you're connected it'll change the IP
I'm running it on a webserver though
Run the vpn on the server
Oh alright awesome I can do that... Just gotta find a good free one though haha
I only wanna route certain request through it, which is most of the issue... I'm basically just looking for something like https://api.proxy.com/?url=example.com
which would just echo whatever's at example.com
But I guess that's not a thing
Like query parameters?
Just URL-encode them
Yeah, true... That's not really what I need though, I just need to make a GET request
It's probably a better idea to get an API key that won't be limited
Rather than going for a workaround
Assuming that's possible
I mean, I'm trying to access Spigot's API, and I don't think Spigot is gonna add any new features any time soon
especially not something like that haha
But that would be a good idea
Yeah I guess that's to be expected
Depending on what you're doing you might be able to get a bypass
or at least a higher limit
what are you doing incidentally?
just ratelimited from testing?
Sadly nope... It's the first time I've made a request from my webserver
that's... Odd
Yeah...
What's the error, a 403?
Yeah
Actually no, maybe that's it. Thank you! One sec leme try that
Good luck
Well would you look at that... That solved the issue. Thank you!
Haha great
No problem
If it works through the browser but not via code the first thing to check is usually the headers that the browser is sending
Haha yeah, I'll def do that next time
@topaz bay Curious question, which one should I be using Vector#distance or Vector#distanceSquared?
distanceSquared is more performant
If youre doing purely resolution of whats closest, Id use it
Gotcha, yeah i've getting the closest
Huge
My plugin has no errors and not sure why on player join on Spigot 1.16.1 it will not give the item
Code? Add debug code to see whats running
was anything changed in 1.16.1, for player join or stack items?
Not that I am aware of...
it has to do with OP players
Code? Add debug code to see whats running
it seems to be working for both now, but it only started after server frooze and kicked both players
my guess issue is Spigot still has bugs
Hey Matt, when do we get documentation on the command api for discord 
^ especially now I actually might have to write KotlinBot in Kotlin
@prisma wave
object CountdownManager {
private val Countdowns = mutableMapOf<UUID, Countdown>()
fun addCooldown(p: Player, duration: String) {
val countdown = Countdown(getPlugin(), duration)
countdown.start()
Countdowns[p.uniqueId] = countdown
}
fun getCooldown(p: Player): Countdown? {
return Countdowns[p.uniqueId]
}
}``` is this better for my CountdownManager?
@rotund egret what do you need help with?
So, Ive got a system wherte a user can create like a support ticket with staff, and an embed is sent in a staff only channel where what I want to happen is staff can click a reaction, and my bot will send them a private message, where they can type in their question, which will then get sent to the ticket. Then the answer to that question which will be the next message typed in the ticket, will be private messaged to the user, which is the bit idk how to do, the bit so the answer is sent to the staff member
that seems awfully complicated for no reason
please do
Kali u got any idea about #development ?
But like, u a Kotlin big brain
I really wonder something; which way is better for minigame arenas? First one is using multi arena which is using multiple arena in one instance, second is bungee arena that has more than one instance and one arena per instance. If there is another way to do it, I'd like to hear you.
I use multi arena and it not look like performance friendly. It has to unload and load world several times which may affect instance performance. One the other hand, bungee arena also affect performance.So I don't know which way is performance friendly :/
Is there like
A way to get my bot to say any exceptions it comes across without having a try/catch on all things?
Just catch Exception ?
when tho
Ooo pokemon hunting
In your try/catch
in your code
In your initializing block?
why you try/catch all of your code
I want my bot to repeat all exceptions it comes accross to a channel
do I like make my method throw exception?
You can catch all of the exception with only "Exception" catch
So basically you want to catch exception without using try/catch in all of your code
essentially
I want my bot to send any exceptions it ever comes accross into a channel
idk if this is possible
You would still have to present a try catch block
well if i have to put one im fine with that
or your thread would stop since the exception wasnt handled
Would I just have to tell all my methods to throw Exception ?
The problem is you cannot catch exceptions without try/catch tho...
You can get the exception message with a log4j filter maybe
no
Aj
Unchecked exceptions are thrown even if not specified
im fine using 1 or 2 try/catch, i just dont wanna chuck it on all my methods since thats kinda a pain in the ass
You should
Do you use any API for your project?
Could anyone help me with this? https://hastebin.com/eqerefunag.md
If you don't, you shouldn't use try/catch in all of your code
If you sure there'll be not any exception so there's no point to use it
@proper plaza me.zitsraul.bionicac.utils.location.PlayerUtil.blockNearHead(PlayerUtil.java:133)
method:
I'm guessing you're using PacketInFlying and try to get block...
public static boolean blockNearHead(Player player) {
double expand = 0.3;
for (double x = -expand; x <= expand; x += expand) {
for (double z = -expand; z <= expand; z += expand) {
if (player.getLocation().clone().add(z, 2, x).getBlock().getType() != Material.AIR) {
return true;
}
if (player.getLocation().clone().add(z, 1.5001, x).getBlock().getType() != Material.AIR) {
return true;
}
}
}
return false;
}```
exact line java if (player.getLocation().clone().add(z, 2, x).getBlock().getType() != Material.AIR) {
I mean this is function that calls anywhere so "at me.zitsraul.bionicac.listeners.PacketListener.onPacket(PacketListener.java:33)" call it
and I guess it is packetinfly
PacketReceiveEvent
PacketInFlying is sending player movement and client-side so you should have to make sure the chunk is loaded
how?
PlayerMoveEvent is the same thing. There're no difference between and it may more clear for you
okey
@errant geyser countdowns should be in UPPER_SNAKE_CASE since it's a constant
ur alive!
Finally
Where's our meme
no excuse bm
i been awake since 11 and i went to bed same time as u
i definitely didnt set an alarm
Your crimes have been forgiven, now let us give you karma
thanks
oof KM
you can't deny it
@distant sun
The big thing I wasn't too sure about was doing dynamic sub commands or using regex for sub command
for example I wanted a command to be !roll 2d6
but I don't want to have to hardcode subcommands for every variant of dice
Overall though there just isn't really any doc outside of what's in my IDE which works fine, I just like the usually more detailed docs outside of the IDE.
Heyo, i can work on a documentation a bit later, since it's still not complete i didn't wanna do much but i think it's stable enough
I'll show you an example of the dynamic commands in a second
Also saw your issue I'll fix it in a bit too
@frail glade just a heads up, the "basically" latest version is now in the gradle plugins repository so you don't need all the settings.gradle stuff anymore
went sleep 3 am got up 5 am
Can you link the Gradle plugin on the website?
Gotta get that enterprise plugins huh @heady birch
final Gradient gradient = new BasicGradient(fromColour, toColour, text.length());
GLib kind of whack
Does anyone have an updated guide on custom path finding that was released on/after september 2017 (release of 1.12.2)?
I was following one from 2015 but it uses NMS fields which I assume have changed
@rotund egret Here is an example of the command builder for dynamic commands:
val cmd = CommandBuilder()
.setPrefix("?")
.setCommand("command")
.setArgumentsLimit(0)
.setSubCommand("subcommand")
.autoDelete()
.setExecutor { args, message ->
message.textChannel.sendMessage("command").queue()
}
.build()
commandManager.register(cmd)
Ah the builder!
the new design
Thank you :)
eh
Yw ;p
Working on your issue now
allman with kotlin lambdas doesn't really work so
allman doesn't work with anything but ok lol
it is objectively better but ok
subjectively*
no
yes
subjectively
that's indisputable
it makes the beginning and end of blocks much clearer
guess that's true
but the bracket on a new line just doesn't look right to me as I've said before
idk
I personally think it looks messy
but hey, who am I to judge I guess
k&r is objectively better than allman
now that's something I can agree with
Somebody here, who can explain me wait(); and notify()?
also, anyone got any idea why my bot can't load any music from youtube?
wait() will, well, wait
until notify() is called
@prisma wave you got any idea if Spring requires some sort of addon for a process running through it to make outbound and inbound connections over IP?
I am calling the same object and all.
^^^^
Just for a test
ITS a console program.
That should send a message, when a boolean is true.
IllegalMonitorStateException is thrown when the calling thread doesn't own the object's monitor
wait() is called on a thread and blocks current thread till the called thread dies or notify() is called on that thread
And when I'm calling the wait meth there is this IlligaleMonitorSateExeption
Oh
My fault
I ll try later. Thank you. ::
:3
@rotund egret That issue has also been fixed, version 1.1.11-BETA
bukkit's translateAlternateColorCodes works with rgb using &x&r&r&g&g&b&b
That sounds awful
that helps a lot since i didnt want to change my plugin a lot just to support 1.16 rgb
dode, please don't
?
Please don't use that
im obv gonna make my plugin use a wrapper that converts # to that
I mean yea just use regex to get the hex and just use ChatColor.of
yea
It translates it to the above shit
why add the # though
Because it's hex?
doesnt x say that its hex
wot
never seen 0xFFFFFF?
https://img.bristermitten.me/idea64_NWaxi5GZRS.png thoughts? or should it be something more explicit like define("key", "value")?
yeah true
just thinking about how readable it is and all
I wanted "key" = "value" originally but I don't think that's possible
fair enough lol
what does the to keyword do in kotlin?
ah I see
big brain shit
https://img.bristermitten.me/idea64_nJtpLhnnfT.png it could be whatever
I see
ah
https://img.bristermitten.me/idea64_sxFawHWMZD.png you can get close though
ah
Is it "bad" to use multiple listener classes with JDA?
Like listening to the same e vent
Nah, organization is good
lol
Records, sealed classes, text blocks
Records, sealed classes, text blocks
yeah but Kotlin still has more than that lol
I'm not complaining
also wdym by text blocks?
oh string literals
what even is a sealed class??
<html>
<body>
<p>Hello, world</p>
</body>
</html>
""";```
they're just being copy cats now lol
Sealed classes are classes that have to explicitly specify their subclasses
what's the purpose of that anyway?
ah okay
Or just to restrict the input that you're getting to a set of known types
Tbf even though they're copying kotlin they are arguably doing it better
Sealed classes will add a proper thing in the bytecode for it so kotlin won't need to compiler hack it anymore
And sealed interfaces are something kotlin doesn't have
The problem is going to be mostly people not moving forward to 15 till who knows what year
yep
Yeah it'll be a long way away
atleast like 5 years
11 is gonna be in LTS for at least 5 years yeah
java 8 isnt suppourted rn right? and people still staying on that 💀
i think its still supported
Are you sure?
Iirc it came out of LTS quite recently
hmm
ah
Java SE 8 has gone through the End of Public Updates process for legacy releases. Oracle will continue to provide free public updates and auto updates of Java SE 8 indefinitely for Personal, Development and other Users via java.com. Oracle will provide at least 18 months notice on this page and other communication channels if an end of availability date is set. Developers can find Oracle Java SE updates, including Oracle Java SE 8, 11 and current releases, free for development on OTN. As of the April 16, 2019 quarterly critical patch update, Oracle Customers should access updates to Java SE 8 for commercial use from Oracle through My Oracle Support and via auto update where applicable (Visit My.Oracle Support Note 1439822.1 - All Java SE Downloads on MOS – Requires Support Login).```
Huh
Oracle will require businesses to have a commercial license to get updates after January 2019.
If every server used Java 11 that would be nice
my oldest code is only a month old and yes
for example i'm now sorting out a plugin that is filled with this
private Class class;
public CmdClass() {
this.class = Class.getInstance()
}
// do stuff
private Class class
example names
o
that's stupid
i'm aware
private final
there were no finals
Ctrl + A + DeLeTe
damn
@frail glade 😮
Nice.
Kotlin Mitten come grab some free xp
Eggs pee?
how do i find how many indeces there are in an array
.length?
doesnt look like it sir
Not today
If you are trying to access the last index make sure to use the length - 1
Array's revolution!
xD
kek
its size 🙂
Bleah
Bleah
Bleah
NO
Shut up dude
if Collection uses size why shouldn't array?
:nou:
It's either or, doesn't matter does it
https://github.com/BomBardyGamer/BardyBot code review anyone?
https://img.bristermitten.me/idea64_G7OZCwQAEW.png well this is hideous
I agree
too bad I don't need it
no it's good you don't need that monstrosity
Any idea how I could best implement hex color support in normal text messages?
Like messages.yml
Same as you would &a ?
Does translatealternatecolorcodes support that?
no
Any idea how I could implement it?
Frosty, ping me once you push another commit to your PR and I'll check it out.
Gimme like 2 more hours
👍
@signal tinsel You use ChatColor#of("#Hex") to create a chatcolor using hex
How would I parse it in the messages tho?
lemme spoonfeed you quickly
Lmaoo
private static final Pattern HEX_PATTERN = Pattern.compile("#([A-Fa-f0-9]){6}");
public String parseColors(String message) {
String parsed = message;
if (NMSUtil.getVersionNumber() >= 16) {
Matcher matcher = HEX_PATTERN.matcher(parsed);
while (matcher.find()) {
String hexString = matcher.group();
hexString = hexString.substring(1, hexString.length() - 1);
final ChatColor hexColor = ChatColor.of(hexString);
final String before = parsed.substring(0, matcher.start());
final String after = parsed.substring(matcher.end());
parsed = before + hexColor + after;
matcher = HEX_PATTERN.matcher(parsed);
}
}
return ChatColor.translateAlternateColorCodes('&', parsed);
}
i'm not explaining it lmao
you dont need that nmsutil thing
but that's so it works with versions lower than 1.16 
i'm not explaining it lmao
you dont need that nmsutil thing
but that's so it works with versions lower than 1.16
shut up you rat
Is any dev free to price something up for me?
wdym?
i want a custom plugin made but idk what budget is reasonable for the task
I think the term is quote
Thanks for the quick fix Matt! 
Yw ;p
@prisma wave
//Does this section run on the main thread or ???
}```
shouldn't really be using GlobalScope
What should be used instead?
e.g. use a default one from Dispatchers
or extend CoroutineScope or whatever that is called
hmm
how to relink my account
because it's already linked but i have left the discord a month ago
=check @obtuse gale
Successfully checked that user for new purchases!
Got my stuff, Frosty?
Tommorrow, gotta finish completion cause it's still a litle borked for some
Okie
I'm a smart person and didn't push before I got off of pc, so you can't help :p
Rip
@topaz bay https://github.com/BomBardyGamer/BardyBot code review? 🙂
I think I stuck to SRP
I know you're gonna end up picking it apart though, but that's why I asked you to review it lol
magic. numbers.
where?
oh that
what do I do about that? create a constant value and put it in a companion object?
Yes
Hey @ocean quartz
With the builder & arguments.
I'm noticing that I can add arguments if there's a sub-command, but not for a regular command
ex; !roll 5
val cmd = CommandBuilder()
.setPrefix("!")
.setCommand("roll")
.setArgumentsLimit(1)
.setExecutor {
args, message ->
message.textChannel.sendMessage(args.toString()).queue()
}
.build()
Returns Wrong usage for command! in discord
but
with a subcommand it returns the 5 as [5] (as I would expect)
Is this a bug, or am I doing something wrong.
It's a bug yeah, I'll take a look at it
❤️
well I've almost got it finished
it builds gradle successfully
problem is: I have it run shadowJar, but it doesn't put the JAR on the build
how do I get the JAR from shadowJar over to the Jenkins build?
also @prisma wave if it was fairly simple I wouldn't have spent the last couple of hours trying to get it to work
yep its amazing
@prisma wave how 2 fix
use more brain cells
thats hella owrk
Anyone able to give me a hand with some HTML?
depends
I'll link it
So here's my code https://paste.helpch.at/uhetabuqol.xml and for some reason, it comes out like this https://prnt.sc/t784ba - I only want "Helpers", "Admins" and "Owner" to have a background colour, not the things above it as well

@rotund egret It's been fixed 1.1.13-BETA
you may be wondering why it went from 11 to 13, i released a version with sys out messages
Maven central trying to breath after I released 2 versions in less than 5 minutes xD
Genuinely just switching
event.reply(event.getAuthor().getAsMention() + ", Correct usage: " + event.getPrefix() + "quote select <quote_id>
``` into ```kotlin
event.reply("${event.author.asMention}, Correct usage: ${event.prefix}quote select <quote_id>")
``` makes me feel so good inside
Yeah kotlin has made my life so much easier
Literally can't even use kotlin because an api I use randomly decided to stop working on any kotlin project
unfortunate
That doesnt make sense?
What api is that?
Anything that works in Java will work in Kotlin
Ok so Im working on my AutoPickup plugin and I need to come up with a way to get drops from things like sugarcane and scaffolding and Im currently debating on two methods that I can think of:
Method 1: Use recursion to get the size and count how many items need to be given to the user. Would have to most likely implement scaffolding rules
Method 2: Use BlockPhysicsEvent to get all blocks broken from the previous block which turned into Air. I would have to save a location then get all the block the broke from that location maybe adding a time cap of 1Min. But then probably still have to implement some sort of Scaffolding rule.
Sadly BlockDropItemEvent does not work for this 😦
What method would you guys think I would be best off with? Or does someone know a secret solution 🙂
method 1
I mean, it just started showing the imports and stuff for it as Unresolved reference
Only in Kotlin projects
Absolutely no idea why
Thanks for the input!
@versed ridge What is it though...
What is what?
My own, just has some stuff I use for plugins
user error
but how though
I didn't do anything
It actually still works and lets me compile the projects
Just shows as Unresolved reference
Show me
where is this file?
Which file exactly
It looks like it says that on like... everything
Yes, everything related to that api
And Im talking about this kotlin file
uh, wdym where is it
And your build file?
oh wow...
Yeah no, that's not how you do that
matt's framework should be published in a repo somewhere
And you should install your api jar
I have a modified version of it
modified how?
Just changed some things in it
Then you should install it
What do you mean
To your local maven repo
Oh, what did you change? ;o
just curious
Also, you really shouldnt modify the destination of the shadowJar task
Create a separate task to copy it to that destination
Just changed it to use my own User class as the parameter for commands and registered commands with commodore
maybe some other things I forgot about
Why are you declaring log4j?
So certain things don't show in console log
?
Speaking of which Sx, so the task doesn't like to replace the jar in runtime cuz permissions, is there a way to do so? Most of the times if it's small changes I like to reload instead of restarting to be faster to test
And oh that's fair
The copy task will fail if the jar is loaded on the server
Are you on windows?
Yeah
Theres your answer.
Random commands that I make players run to do certain stuff
You cant replace files in use on windows
I mean i knew that xD
Wanted to know if you had a way around it
Yeah no, thats just an OS thing
Ah okay gotcha
You're not using the copy task
ah
And you should install your api jar to your local maven repo
How do I do this?
specifying a maven publication, and publishing to local
plugins {
id "maven-publish"
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
}
I wanna add json and the rgb colors to ccmd, was thinking of possible syntax, what do you think about:
#000000[Simple Text](hover:Hello!)
Does it seem too complex?
Good
But why did it randomly break?
Now enjoy all the kotlin greatness
do it
but maybe I already am part of kotlin
I just have never expressed it
it's impossible
It is a part of the kotlin mind to evangelize
kotlin takes over your mind
there's no such thing as a kotlin user who doesn't mention that they use kotlin at least once a day
I’m no good in kotlin, but I’ve always been telling my work to use kotlin
and that they should ditch c#
i see
should we release him
