#dev-general
1 messages ยท Page 5 of 1
Fun fact that (I think) a lot of people don't know, if you click Shift + . while looking at a Github Repository, it'll open a web version of VSCode to edit things in
hi when a user clicks are option how do i force him to change menus?
Close inventory and open a new one
useless piece of software*
I've used three frameworks primarily, those being Bootstrap, Bulma, and Tailwind. I find it's nice to start out in web dev using batteries-included frameworks like Bootstrap/Bulma because it teaches you what you should be doing, then at some point, you learn the magical power of the columns and column class is just like a flexbox with a percentage width lol
generally someone has to end up doing lots of media queries, frameworks just do it for you, and with the help of CSS preprocessors like SASS and LESS, you can generally avoid writing a crap ton of media queries
Yea I looked into a few frameworks like tailwind but imo it just makes the codebase messier while achieving exactly the same as writing your own css.
and thats usually what my solution is: basically just flexbox virtually everything and add a few media queries here and there to finish things up :kek:
I knew about it lol
I would disagree...
well the point of Tailwind is that you can compose utility classes so you don't have to write raw CSS, and that it's part of the markup directly so that weird caching rules don't apply and you don't have to rebuild your SASS shit
Tailwind is an utility framework, it's meant to give the same control of traditional css but just faster to write.
tbf I have used it far less than the other options, but it is 100% faster and more condensed and more directly in line with the markup it affects than raw CSS
with bootstrap and basically almost all other frameworks you are limited by them, while with tailwind you have the same control you would with normal css while writing it faster and having things a lot simpler.
If it looks a mess for you, you can just create a class and use @apply.
Still faster than writing vanilla css.
I mean I don't know how limited you are, nobody is forcing you to use their shit lol, you can just end up writing your own CSS or making your own classes if you want em
I only write in html
at that point why use it at all lol
because it provides sane defaults for 99% of stuff you want to do, and you can make your own like 5 classes when you need em
i only inline raw css in my html pages
eh well, all websites with bootstrap, even with custom css, etc feel the same.
Which removes uniqueness from you.
I mean that's the point
Sure, if you want to just do something quick and don't care about feeling repetitive or the same as other websites, go ahead.
the fact that it enforces consistency between lots of people is the best part of it for anything more than a single-person project
Tailwind just gives you a ton more control.
I use bootstrap at my work with a team of about 15 people, and it is amazing that everything feels stylistically similar and consistent no matter who wrote the page
fair enough, although most teams using tailwindcss, from what I've heard have no issues.
Cause they just do some global classes using @apply and the rest is done by themselves
sure, for people who are designers lol
nono front-end devs.
for a team of mostly backend people who just so happen to have to make frontend shit, it is a godsend to not have to worry much about how things look
oh yes, that def. but I doubt there's a company that only has backend devs xD
that's what most of my team is
pain
i mean i don't really think so lol
things look fine enough, and i don't get paid to spend 15 hours making a perfect tailwind setup
I mean, sure, but it depends really on the job.
tailwind also has a very long startup time where you are figuring out what you want things to look like and are constructing the classes you'll end up using the whole time
with Bulma or Bootstrap, I can get in and start doing things basically instantly
As said, it comes to preference and if you want unique stuff or not.
I definitely think Tailwind is good and cool, but it is far from the only option, and it is in fact pretty damn hard to stay visually consistent and stuff if you're a beginner
If you just want it done, no issues using bulma or bootstrap.
or if you don't want to spend dozens of hours reinventing the wheel when you could just use a premade component library
even Tailwind UI exists lol
can also agree.
ye true. Tailwind UI exists
Flowbite too
the truth of the matter is that most people don't want to completely reinvent the wheel every time lol
yes. I can totally understand that.
That's why I said it depends on the needs and focus.
my life could've been easier if I didn't use tailwind maybe, yes, but I am too perfectionist to not use it :-:
Flowbite looks interesting.
I'm just trying to get away from BootstrapVue at this point.
Join the Svelte Club
Svelte ยป ALL
so true
i am still wrapping my head around how it all works, especially the compilation aspect and like how I can integrate it with existing projects, but it just has such low amount of boilerplate
this is looking p good
native dark theme ๐
oof gl integrating it with existing projects..
i mean it doesn't seem very hard, since it compiles everything ahead of time, you can just export it to a static directory and serve it straight up
I mean, I tried doing it since I went from scss and normal html to svelte and I just decided to fully redo it with tailwind...
ye, suppose it depends a lot on the project and on what you already used.
Svelte is good.
lets not talk about SvelteKit
yeah im looking to spice up a Django project I have and am not keen on completely rewriting right now lol
that's another level of good
yeah especially since the big load rework happened like yesterday
ye
still didn't update mine xD
probably should
I don't even know how to update to the latest sveltekit version lmao
never did it :-:
Yeah I've been considering it. The Nuxt project just has a lot of stuff so it'd be a bit of work.
I was originally going to do Nuxt, but that whole system is kind of a mess right now with the whole Nuxt 3 migration and everything, plus Vue is pretty damn complicated compared to Svelte lol
oh no lmao
chazza likes it, it must be bad
5 fingers
I'd consider it if it has client-side hydration stuff.
yeah Svelte has a ton of clientside hydration
you get the best of both worlds: SSG for easy stuff, and then clientside hydration/routing after initial page load
well, that's for Sveltekit, but the same hydration stuff applies to normal Svelte
Was looking at using AstroJS with Svelte possibly.
I've been using Next and I can recommend, it's quite nice
Working with https://github.com/MCBanners/website atm. Would like to move away from BootstrapVue.
Sveltekit is much closer to Next/Nuxt than Astro tbh
So SvelteKit is a replacement for Astro / Nuxt?
SvelteKit is the Svelte version of Next/Nuxt
Astro is like a CMS-based framework that's kind of a separate thing
My new site is running on some tailwind boilerplate example of Astro that I found. I really like it.
So what stack am I looking at here? SvelteKit I guess goes hand-in-hang with Svelte? And then what UI framework?
Svelte = Frontend
SvelteKit = Backend (and has Svelte integrated, so also frontend)
easy way to see it
Gotcha. So many options haha. Not sure what I want to choose yet. I mean it runs fine as-in right now, but I feel like so much of it could be cleaned up.
All the components are very similar to each other for the different platforms it's generating banners for.
if ya want I can send you my test website for my current project
doesn't have much but it's in svelte
So SvelteKit has something for like mixins and a store and middleware?
yes
Interesting.
it's a backend meta-framework lol, just like Next and Nuxt
filesystem based routing, middleware, stores, etc.
Oh cool.
and because Svelte doesn't have a virtual DOM, basically any JS library that works with vanilla JS will just work with Svelte
so you can pretty much just use the entire ecosystem, no need for svelte-specific stuff
https://tcn.pages.dev/
^^ Test website, only pages available are Home and About. (it has a little transation too xD)
Yeah that's one thing I saw that was cool about Astro is it only will render the JS on demand.
Oh that looks pretty cool.
also, files looking like this in my project, for reference:
(well, I also added prettier and eslint...)
Oh did someone already mention that SvelteKit comes with Vite integration built in?
๐
What's the + for?
filesystem routing
it's a prefix
pages with a plus in front are public routes
it's new on the latest version ^^
that way you can easily colocate components and other stuff like backend code
well, they call them "magic files"
Hmm
it's quite cool to do stuff in the backend and use it in the frontend
I can give you this example, 1s.
export async function load() {
const response = await fetch("https://games.roblox.com/v1/games?universeIds=290384992");
const responseData = await response.json();
let playing = nFormatter(responseData.data[0].playing, 1);
let visits = nFormatter(responseData.data[0].visits, 1);
return { playing, visits };
}```
This is in my `+page.server.ts`
Then in my `+page.svelte`, I can just use this:
```JS
<script>
export let data;
let visits = data.visits;
let playing = data.playing;
</script>
``` and voila.
then you just put {visits} and {playing} wherever you need it.
So how did you pass that data from the back to the front?
just like I showed xD
so that's some magical filesystem routing stuff
export let data;
basically, similarly named <thing>.svelte and <thing>.server.ts are automatically loaded together
^^
the .svelte being the frontend component, and the .server.ts being the backend serverside endpoint
let's take an example, I create a /about/ folder, inside it I have +page.svelte which acts as the page and +page.server.ts which acts as the "backend"
they communicate in-between them. (or well, you export the data returned from the backend in the frontend)
though actually, yeah, every one of those files will be called page.svelte and page.server.ts, as they become the route of the folder they're in
all this new routing literally came out yesterday, so it's a little new to us lol
^^ yes, the one thing to distinguish them is the folder
Oh okay that's what I was wondering.
SvelteKit isn't released yet. So they are doing all the big changes now before releasing 1.0
want a project idea?
?
here let me get you an example
So what happens if you don't add a + to them?
it'll make you loads with adsense
They're not public routes
^^
i'll dm you the idea in dms
so you can have like +page.svelte and then navbar.svelte and navbar won't be accessible
but you can use it in your own templates and stuff
you can see it as
+ = public method in java
nothing = private method in java lol
well, private ish
There wouldn't be any point to make a component public, right? Cause you want to use it in a page which then the page is public.
when I say private, it means it's not accessible to the public, but can be used anywhere in your project.
not restricted to one folder, or whatevr
So if SvelteKit isn't released yet, is it still worth trying to migrate this decently sized web client over?
ye exactly
Gotcha
Well so yeah, before this big update, you'd declare routes by filename, so like about.svelte would be /about/, no folder or plus required
but then that meant that you couldn't colocate components in the same folder, as they would then become pages
tbh, I wouldn't bother. it's reaching 1.0 very soon, this update happened yesterday was probably the last major update before 1.0
and you can easily migrate most of the time.
Lots of people are using SvelteKit in production.
Wouldn't bother waiting to migrate you mean?
Yes, it is worth migrating, SvelteKit is very cool and pretty well tested, especially for something not like super important
yeah that's the opposite of what you meant lmao
Interesting. I'll have to see how client side hydration and stores and middleware work then. I wonder if it's also time to learn TS more.
ye ops lol
You don't have to use TS, it's just fully supported and everything
ye ^
you can just do like +page.server.js instead
I mean, I do use TS in the files but I don't actually do anything IN ts lol
just enabled it in case one day I decide to use it
lol
Yeah if you look at the repo everything is JS
have fun Glare ^^
it's a playground xD
(PS: This is svelte examples, not SvelteKit, but just Svelte is already awesome lol)
Might just go without TS for now.
Ahh nice.
So JS with jsdoc or typescript fully?
ts fully
typescript
Do I want playwright?
if you want to do tests
Idk about tests
then no lol
Bahahahaha
doesn't really look too bad lol
and you could make the awkward module dropdown look prettier too, could be good!
It's not too bad but I want to make the whole site look nicer
(dark theme please)
I don't do design so I am just going to do the skeleton
I'll do dark theme, just give me framework that I can just say "dark" and it'll make it for me
Pls and ty
flowbite does
I've also been liking Halfmoon, if you want something a little lighter and less JS-based
Too many options oml
welcome to frontend land lmao
you could spend years trying to pick the perfect stack
BootstrapVue was nice because it had so many components already existing that I could just put stuff in
i mean you can just use bootstrap lmao
@compact perch flip a coin
nothing here
nice
Ooo so SvelteStrap is bootstrap for svelte basically with less chunky ness
just premade Svelte components lol
Interesting. Flowbite looks nice tho
me be like:
my brain: Use a component framework?
what I do: Uses TailwindCSS
it's based on Tailwind, so you gotta be okay with Tailwind lol
^^ ye
Yeah that's the thing, I haven't used tailwind before
There's also https://tailwindui.com/?ref=top
if you know how to use CSS, it's p sweet
just basically utility classes for common CSS stuff
If you know vanilla css, you will get used to tailwind quite quickly
Yeah I don't do design. I can do the skeleton for a page
I can give it a show
Flowbite it is.
I might actually also use Flowbite, might make things go faster on my project
although I will still probably use A TON of custom stuff cause my perfectionism
lul
I mean, if ya want, I could try to redesign McBanners ๐
although I have no idea how I would design it lol
well I would move everything except Servers off of the navbar and into a little button array
and move Resource/Author Banner out of a really wide dropdown
is there even a backend for this website lol
I am kinda a night guy lol
looks like it could all be clientside
I mean, ye since it's not just pictures...
so it needs backend I assume
but I would presume not for much
yes but it needs to update, everywhere it's displayed no?
also, fetch requests probably would have to be done in the backend.
update what? you just design a little banner for your own download
no reason they have to at all
kinda depends on CORS settings
Okay I think I have flowbite setup.
playcount for servers for example
why would you need a backend server for that?
Also, is it really required to have all this separated into several tabs?
your web browser could just call one of those APIs that cache that data
couldn't you just put all settings into one page?
The whole point of the rewrite is to clean it up
wait is this an embeddable thing that updates, hosted on mcbanners.com?
I thought it was just a little image to download
oh shit
ah well, you could still do a full clientside app for the builder part
I mean the settings could all go in 1 I guess idk
I don't do design
Hence why I built the backend
i'd keep them separate and just move the preview up and out of that card
My web guy got busy with IRL ๐ฆ
idk, it seems to be a waste of "time" (for the user) and a waste of space... like, for example Background only has one setting, and to change the rest you gotta go and change tab first, idk. Might just be talking shit lol. I have no idea., it's almost 5am .-.
makes it easier to navigate through
well your options are a nice tab, or scrolling lmao
haha
what about Accordations?
Let me start with the navbar
I mean that's the same thing as a tab but you just have to close them
I see no reason to have multiple open at once, just click on the one you want to change and change it there
but it gives the option to have multiple opened
eh
fair
ye
. lmao
Where's the doc that talks about how project organization should be setup?
Like where my components go and stuff
Glare, did you create a new git repo for the svelte version?
wherever you want
or are you going to update the current repo?
in the components folder if you want them separate, or in the routes folder with the stuff they're part of
I'll probably create a new repo and then merge it over.
the boys rewriting a site in sveltekit lmao
Ez
wait that might be out of date
i don't remember if they renamed static to something else
I guess lib is components?
yes
yeah lib is more for library code
Oh also glare, in case you don't know about it, npm run dev
will make wonders for you
hot module reloading ๐คค
Yeah I know. I did Nuxt ๐
With the help of Vite :3
I know the basics of NPM and everything I just don't do design.
yeah god Vite is so good
A lot of my projects are in JS / TS
Once you use Vite, you can't let it go.
Change my mind.
Snowpack sounds so cute but it's just nothing in comparison to Vite
xD
wait wut
didn't know that Vite could process imported assets
that's like a game changer in terms of performance lol
yeah lol
Error: Cannot find module 'src/components/Nav.svelte' imported from
Off to a great start
OH ye
that old error
god I hate them
one way I solved was, you go to vite.config.js and add aliases
like this
then you just use $components/whatever.svelte
So if you alias components then what does an import look like
same as it used to be
but instead of using the full path
you just use "$components/whatever.svelte"
^
ALSO, in case you have stuff that is used everywhere, you can create a file in routes called +layout.svelte and put everything there. You just can't forget to add <slot></slot>.
mcbanners edge deployment when?!?!? lmao
example I use in mine.
lol
^
uh you can also just use // @ts-nocheck
That'll do for now
okay I have just looked at the docs, $lib is exactly for this purpose, so maybe TS won't be mad at you if you move it there?
For the dark mode, would you suggest a toggle button or just force it dark?
you can do both if you use tailwind lol
force it dark ๐
but ye force it dark, but you can easily give the option to disable dark
who the hell wants to look at a light mode web page in 2022
My chrome doesn't want to go dark mode, nice.
you just remove the dark class from the html element and it becomes light xd
but for that you gotta switch how darkmode works in the tailwind config
in tailwind.config.js:
module.exports = {
darkMode: 'class',
// ...
}```
forced dark it is!
forced dark is always the best option..
you can always give those light mode nerds the option to switch over
but give them a taste of dark first
xD
I am actually happy people are starting to use Svelte xD
Also, lol #showcase
isn't there a filter that deletes messages that don't contain an image in that channel?
probably should be lol
no, like, I am pretty sure there is...
ok nop
lol
I swear I thought it had one
anyways
might be time for me to go sleep
or wait, let me wait 2 mins rq
pog got it
okay now me go sleep, adios.
lmao gn
quite the sleep schedule ๐
Making progress.
Home | About | About | About
See the problem here I'm currently trying to analyze if I can just do this in the backend.
the way it's looking is that you could just have the builder for all the parts, then you just send one POST to a backend endpoint that actually creates the banner and returns the URL
how are you doing it now?
In prod? Yeah that's how it works.
I'm saying for the nav. I have this all hardcoded. I should just make a script for this.
Is it just Nav.ts or does it need to be the Nav.server.ts
oh I mean, did you see what I said earlier lol
if it can be rendered clientside, just the ts, if it can only be rendered serverside, .server.ts
would make more sense to just have a little button group with all the logos of the different ones, since every builder is the same except for the Server one
Not all are same
Some platforms have stars, some have likes, some don't have reviews, etc.
okay, so load those when you go to page 2
like, they all do the same thing yk
you put in an ID or whatever to a plugin/mod/whatever and then go to page 2 and configure it, having it be a little button group makes more sense as it is an option in the builder, rather than separate pages as is implied with a navbar
Oh I see what you're saying.
I need one of those Heroes or whatever it is from bootstrap
jumbotron
i need help
There is no time to wait! Ask your question @vivid cape!
It seems like only large servers have it
Looking to remove blocks of an explosion if its in a claim the player isnt allowed in. This is what I have so far, but stuck on the end crystal now, any way to get the person who exploded the crystal? https://prnt.sc/kGvdcazpsTjn
Maybe theres a way to do it from PlayerInteractEntityEvent? kinda lost..
i have 1000 members
and dont have it
It's also a new feature
another server which has 400 members has it
and new features usually take a bit to roll out to everyone
ok
@cinder flare I'll give it another shot tomorrow. It's not seeing flowbite now for some reason and it's not loading it's JS so dropdowns don't work.
ah lol
Java is my style. I'm about to write an entire VoteParty DSRV hook in 10 minutes.
What does that mean
it should be visible with damage then get attacker afaik
UnsupportedClassVersionError @compact perch
https://paste.helpch.at/fokugoyobi.sql
pls help @compact perch
The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)
yeah but is it jdk or se
jdk
you can even use the jdks downloaded by IJ
It works now thankyou very much you are a life saver
np
@prisma wave https://youtu.be/NywG1iDApgU
hello
i dont like this
ha
at least some of these are actually accurate
the copies one is just completely wrong
wuh
Hello, where can I ask a question about DeluxeMenus?
In PlayerInteractEntityEvent or EntityExplodeEvent?
Cheap good Host mc โค๏ธ ???
Thought ?host was a command...
?list
Free:
- Openshift: https://www.openshift.com/
2gb of memory, automatically expires after 60 days, but you can resubscribe as often as you'd like. - Heroku: https://heroku.com/
No CLI or SSH, no file access, might make your app sleep if you reach monthly uptime limit. - AWS (Free tier) https://aws.amazon.com/free/
Free tier containers from Amazon, expires in 12 months - Google Cloud Platform (Free tier) https://cloud.google.com/
Free tier google cloud servers
Paid:
- OVH: https://www.ovh.com/us/vps/
Full VPS starting at $3.49USD/month, choice of OS, high reliability. - Digital Ocean: https://m.do.co/
Starting at $5/month (USD), you can have your own server with 20GB SSD Disk, and 512MB Memory. - Linode: https://www.linode.com/
Starting at $5/month (USD), you can have a server with 20GB SSD Disk, and 1GB memory - Vultr: https://www.vultr.com/
Starting at $2.5/month (USD), you can have a server with 20GB SSD Disk, and 512MB Memory - Amazon(AWS) Lightsail: https://amazonlightsail.com/
Starting at $5/month (USD) (first month free), you can have your own server with 20GB SSD Disk, and 512MB Memory. - Time4VPS: https://www.time4vps.eu/
Starting at โฌ0.66/month, get 20GB Storage, 512MB Memory, 0.5TB Bandwidth, and Daily/Weekly backups.
Various Linux OS distributions, IP addons and instant cPanel/WHM licenses. - VIRMACH: http://virmach.com/
Full Windows and Linux Desktop VPS starting at $7USD/month and $10USD/month respectively. - Sloppy: https://sloppy.io/
Starting at 5$/month (USD) You can have 500MB Memory, 1TB Transfer per month and 16GB of storage. Extra
storage and ram can be bought. - Bithost: https://bithost.io/
Just a forwarder to DO, but here you can pay with crypto currencies like bitcoin, dogecoin, etc - Galaxygate https://www.galaxygate.net/
Starting at 3$/month (USD), get 15GB of storage, 1GB of ram, and unmetered bandwidth.
Thats it! lol Barry wouldn't even display /help general
Host for Mc?
sloppy host 
๐ฉ
Pebblehost is cheap
there are some for $0.75/month but I don't remember them and I haven't used them before
Cheap and pretty meh
well I mean its $1/gb so ๐คท
I haven't used it in ages so I don't remember how laggy it was
anyone have idea why there isnt mongo 6 in official mongo dockerhub repo even when its major release and its out kinda long time ๐ณ
mongodatabase
yes
How ab hosting in China
A lot of made in China things. Surely they have some good host for cheap price
i think mzungu hosting is ideal choice for mc servers
50x host servers for 0.99 bulk alibaba deal
china is prolly cheap but the latency is probably not ideal if you target a us crowd
target an Eastern Asian crowd :))
Simple: move my computer to China, run a wire to U.S
Wowie
Yo glare how is svelte going?
๐
I gave it another shot this morning
The more time I spent on it the more I realized the site isn't so bad currently
I do like your builder suggestion though
I just don't know how I'll do that
do you guys know of a way to access a Player who hit an ender crystal from EntityExplodeEvent?
Lol, you are just lazy to change, happens
More so I am working on like 10 projects daily so I don't need another
But yes that too
new icons/colors, nice
Does he really have that much money?
Idk lol what makes you think I know
If you can make it ask for a % up front.
Thatโs a good idea.
He posted what he needs in #off-topic so make sure you're up to the task before asking.
Hey, I'm looking for a plugin for "merchant mode" players, i.e. the player organizes his store and when he disconnects an npc from his skin sells his store. Any ideas ?
entitydamagebyentityevent?
Does anyone know C# well ?
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
Why the hell my discord can't update yall
dunno
Ok
cto chi cho tf he'll
what do you mean?
i dont get it
@pallid gale
Why are we randomly tagging me?
is guild still maintained or is it abandoned?
anyone know an open source gradle plugin (for kts) that can do simple things such as: ```kt
dependencies {
addPAPI()
}
still maintained
compileOnly("me.clip:placeholderapi:$placeholderApiVer")
the github repo had a commit 10 days ago.
its just that glare is very busy
Well I meant a gradle plugin that can avoid typing that and manually updating the papi versions
papi just being an example
I remember seeing a plugin for this but I forgot what it was
matt probably has one
probably
he has a plugin for everything
ill take a look at the TriumphTeam org ๐ฅฒ
Use the version catalog
version catalog?
You set the versions and modules you need https://github.com/TriumphTeam/triumph-cmds/blob/master/gradle/libs.versions.toml
Then access them directly
found
https://github.com/TriumphTeam/gradle
is there anything like where you just do a function() and it automatically adds a repo or dependency
or is it just for plugin.yml config
Plugin with utilities for the Triumph projects. Contribute to TriumphTeam/gradle development by creating an account on GitHub.
does it work out of the box? I just have to create that file, right?
In latest gradle version yes
It has that yeah, but the version catalog is better
Plugin with utilities for the Triumph projects. Contribute to TriumphTeam/gradle development by creating an account on GitHub.
ohh lets goo
alr
do you know if github updater bots also support it?
No idea tbh
since the issue is that my build.gradle.kts get really long
and so I want to shorten it up and make it easier to create new projects without always copying and pasting the build.gradle.kts
or maybe I could create a little program ๐คท
Time for you to learn about convention plugins then ;p
maybe
maybe I could make a program (since idk how to make scripts) and a gradle plugin
:))))))
Divide your logic into separate plugins
O
Then add them only when needed
:o
so you just copy and paste all of those files and then apply whichever?
Yeah
Let me introduce you to an awesome dude
https://www.youtube.com/playlist?list=PLWQK2ZdV4Yl2k2OmC_gsjDpdIBTN0qqkE
A
That's the main script, basically where you declared the plugins you'll need
You should look at video 3 and 9
alr
Has anyone ever build SupriorSkyblock2? How did you make so all nms sub-projects compile at root project build task?
the api sub-project gets relocated insite final jar, but nms is not
and their build.gradle is no different from api's one
what do you get after running build?
it compiles just fine, just the nms packages are not included
to have them included i have to re-build them every time
and it's annoying
looks like everything is built to a folder named archive and then that's implemented in the plugin
implementation fileTree("archive")
yeah, but then how api subproject gets included, but nms ones are not?
their build.gradle is almost the same...
yup no idea, try to ask on their discord
does guilds supports any pvp plugin like pvp manager or deluxecombat
i would assume, that this is the wrong chat for that.
can someone help me
world edit schems aren't saving
idk wht im doin wrong
somoeone hlep
[00:48:28 INFO]: [AsyncWorldEdit] ***********************************
[00:48:28 INFO]: [AsyncWorldEdit] Error while processing async operation save
[00:48:28 INFO]: [AsyncWorldEdit] ***********************************
[00:48:28 INFO]: [AsyncWorldEdit] *
[00:48:28 INFO]: [AsyncWorldEdit] * Exception: com.sk89q.worldedit.EmptyClipboardException
[00:48:28 INFO]: [AsyncWorldEdit] * Error message: null
[00:48:28 INFO]: [AsyncWorldEdit] * Stack:
[00:48:28 INFO]: [AsyncWorldEdit] * worldedit-bukkit-7.2.12.jar//com.sk89q.worldedit.LocalSession.getClipboard(LocalSession.java:445)
[00:48:28 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.WrappedLocalSession.getClipboard(WrappedLocalSession.java:309)
[00:48:28 INFO]: [AsyncWorldEdit] * worldedit-bukkit-7.2.12.jar//com.sk89q.worldedit.command.SchematicCommands.__a8217a27623443dcaa3d06759fc900f9__save(SchematicCommands.java:196)
[00:48:28 INFO]: [AsyncWorldEdit] * worldedit-bukkit-7.2.12.jar//com.sk89q.worldedit.command.SchematicCommands___a8217a27623443dcaa3d06759fc900f9___InnerForMethod_save.execute(Unknown Source)
[00:48:28 INFO]: [AsyncWorldEdit] * AsyncWorldEdit-3.9.4.jar//org.primesoft.asyncworldedit.injector.core.visitors.Helpers$1.execute(Helpers.java:121)
[00:48:28 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.asyncinjector.async.AsyncJobProcessor$1.doRun(AsyncJobProcessor.java:164)
[00:48:28 INFO]: [AsyncWorldEdit] * org.primesoft.asyncworldedit.worldedit.BaseTask.run(BaseTask.java:161)
[00:48:28 INFO]: [AsyncWorldEdit] * org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[00:48:28 INFO]: [AsyncWorldEdit] * org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[00:48:28 INFO]: [AsyncWorldEdit] * com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[00:48:28 INFO]: [AsyncWorldEdit] * java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[00:48:28 INFO]: [AsyncWorldEdit] * java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[00:48:28 INFO]: [AsyncWorldEdit] * java.base/java.lang.Thread.run(Thread.java:833)
[00:48:28 INFO]: [AsyncWorldEdit] ***********************************```
Maybe try FAWE? Not sure if thereโs a difference or not between the one your using, but never had any issues with it
where do i download that
@obtuse gale Im trying to reply to ur ad in #1004004211945652364 but i cant friend or message you.
I need help, Im trying to make something that only lets villagers pickup items and other mobs cant
public void onEnable() {
// Plugin startup logic
}
@EventHandler
public void onEntityPickupItemEvent(EntityPickupItemEvent e) {
if (!e.getEntityType().equals(EntityType.VILLAGER))
e.setCancelled(true);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}`
But it does not work I am new to this
nvm, your formatting just wack
if the event handler class is in the class that extends JavaPlugin, then make sure to register that class as a listener, and also implement Listener
ayo i just moved to linux from windows os
so after i installed intelij idea on linux i realized that the keybindings are f***ed up.
any idea how should i return them to the default ones that the windows edition had?
Im using intelij idea community edition btw
Settings (ctrl + alt + s) > Keymap
i did actually
also that's weird. I've had the same keybinds on both windows and linux without changing them ever. but maybe that's bcz of their sync feature?
maybe
are you sure the keybinds that didn't change weren't customized by you on windows as well?
nah i didnt know how to do that before i install linux
also its weird to see that pasting is now middle click's job isnt it?
welp idk. my knowledge is very limited I'm afraid. someone else might tho. don't lose hope. :))
why cant i paste an image here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
uhh
Also I don't suppose, before moving to linux you exported the settings from IntelliJ?
bcz you can export settings like keymaps
that's how I still have my keybinds. I did that. I remember now
oh i didnt
could you export one from windows?
for me*
I can export my keymaps and send it here if you want I just can't guarantee it's the same.
yeah please
I'm a linux user as well. No dual booting or anything like that anymore. but it seems like I still have the windows keybinds
so I Can try
I think this is it.
yeah. I hate that.
and I can't disable it even with gnome tweaks
I'm using Pop!_OS
I use middle click to close tabs and stuff, but I am also very bad at aiming so a lot of the times I end up pasting stuff in the code and also closing the tab after since I spam middle click and its so annoying
So everything else is good right?
it used to be for viewing super methods and lines that used that line
looks like it yeah.
at least for me i guess
if you don't know how to import, File > Manage IDE Settings > Import Settings
Im getting this error when trying to build
Failed to delete C:\Users\alexa\Desktop\Plugins\NoPickup\target
how are you building your project? are you using mvn package?
Ok I had a file open in that directory in winrar
yup that would be it
that was the same thing for me on intelij idea linux
its not just intellij. its bcz of gnome
even tho idk how but middle click is not pasting from clipboard in other apps anymore
its a "feature" in gnome that has no toggle. at least no official one. there's one in the Gnome Tweaks app but it doesn't work
so thats a good news
oh? for me it is ๐ฆ
well it is for me anyways i found that it wasnt working at all lol
ahhh i cant select a line with Shift + Arrow
is it normal?
thats happening for me after installing intelij linux
shift arrows works for me. it doesn't select the line I'm on but different arrows select different things
different letters you mean
shift up or shift down, selects everything from where I am until the above or under line at the same column
letters?
Zombies still pickup armour and tools
Not sure what is wrong
import org.bukkit.entity.Mob;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityPickupItemEvent;
import org.bukkit.plugin.java.JavaPlugin;
public final class disablepickup extends JavaPlugin implements Listener {
@Override
public void onEnable() {
// Plugin startup logic
}
@EventHandler
public void onEntityPickupItemEvent(EntityPickupItemEvent e) {
if (!e.getEntityType().equals(EntityType.VILLAGER))
e.setCancelled(true);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}
you're not registering the class as a listener
just making it implement Listener is not enough
ah ok
Bukkit.getPluginManager().registerEvents(listener,this);
do I just put this plugin.getServer().getPluginManager().registerEvents(this, plugin);
oh
put this for both
in your on enable you need to call getServer().getPluginManager().registerListener().registerEvents(this, this) since your main class is your listener as well.
plugin.getServer().getPluginManager().registerEvents(this, this);
Something like this
import org.bukkit.entity.Mob;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityPickupItemEvent;
import org.bukkit.plugin.java.JavaPlugin;
public final class disablepickup extends JavaPlugin implements Listener {
@Override
public void onEnable() {
getServer().getPluginManager().registerListener().registerEvents(this, this)
// Plugin startup logic
}
@EventHandler
public void onEntityPickupItemEvent(EntityPickupItemEvent e) {
if (!e.getEntityType().equals(EntityType.VILLAGER))
e.setCancelled(true);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}
yes
also. might want to follow naming conventions
disablepickup is not how you name a class
in java
you should be using UpperCaseCammel or whatever its called
ah
when i use CTRL + Shift + Left / Right Arrow it selects the left / right word but it also toggles the insert mode
and i have no idea why these are happening
whats wrong with this ide
The .registerListner is red
not registerListener()
I tried to retype it but it only shows .registerEvent
getServer().getPluginManager().registerEvents(this, this)
ohh
ok ok
It worked
also im trying to make a plugin that fire and lightning does not destroy items, but lava still does
public final class fire extends JavaPlugin implements Listener {
@Override
public void onEnable() {
getServer().getPluginManager().registerEvents(this, this);
// Plugin startup logic
}
@EventHandler
public void onBlockIgnite(BlockIgniteEvent event) {
if (event.getCause() == BlockIgniteEvent.IgniteCause.LIGHTNING) {
event.setCancelled(true);
}
}
@EventHandler
public void onEntityCombustEvent(EntityCombustEvent event) {
event.setCancelled(true);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}```
I have this but it dont work
replace the == to .equals(BlockIgniteEvent.IgniteCause.LIGHTNING)
Also
I need players to be able to pickup items too
How do I add them aswell
@EventHandler
public void onEntityPickupItemEvent(EntityPickupItemEvent e) {
if (!e.getEntityType().equals(EntityType.VILLAGER))
e.setCancelled(true);
I tried to add multiple people like this
just add extra conditions in the if statement?
if (!e.getEntityType().equals(EntityType.VILLAGER) && !e.getEntityType().uequals(EntityType.PLAYER))
e.setCancelled(true);```
Ah ok ok, Thank you so much btw, I am like very new to this without you guys it would be inpossible
yeah. I Do recommend you start by learning some java and playing around with it before you start using APIs like spigot
tho
it would be so much easier
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
you can find some great resources here 
Thank you!
@ocean quartz hurry up
DONE
this is sus
wtf @ocean quartz my level of both confusion and "How???" is at an all time peak with that video....
but great work, looks poggers
resource packs
well that I know lol
do you?
that it uses resource packs? Yes.
how exactly it works or how I would do it myself? No clue.
custom fonts
you can replace characters with images
magic
and they just update the action bar with those characters
Only the best magic
each frame is a different character
lol no
well, animating them? Are the resource packs itself animated?
I mean kinda but itโs wayyyy more complicated than that
sounds like a pain
๐
You might aswell just have X character that is the animation and once the animation finishes, you replace it with Y character that is static?
no idea lmao
What?
your resource packs can be animated no?
just like you do with blocks, they can be animated
Some things can other can't
as far as I know
every frame is literally a different character. at least I think so
idk maybe
:-: oh hell, whatever, not going to have to deal with it either way soooo
I am safe
either way, gj lol
no we have some very cool font tech that lets us manipulate padding
so yes it is different glyphs but thereโs many at play at a given time
not sure I can go deeper than that
Wow rude Emily
why the fuck do u have my colour
I love you x

I Wasn't really trying to guess how you guys have done it, I bet there's much going on, I was just trying to think of a simple way of doing something similar I guess.
...
It's a saturday, go sleep instead of arguing
how do I escape an xml tag in javadocs? doesn't seem to be . its not even a valid javadoc xml tag. its just something that happens to look like one: <test>
oh. found @literal
and also < and >
yeah the &; things
why is int the most used variable to hold a number if long can hold larger numbers?
just for convenience of sparing one letter?
saves memory
sometimes u just don't need that big of numbers
yea
because usually int is enough, and while this doesn't usually matter (ex in plugins unless it uses a lot of it), it can save memory
no need to use 64 bits when 32 will do
hmm
so you wont be using int for lets say... making a variable that holds the number 10?
in this case you'd use byte?
I'd use int
for programs where memory management is very important, I'd use byte
but all of mine I'd just use int
well
yeah, just depends on balance and where u draw the line for optimisations and if u really wanna spare that one letter in ur code
the types shorter than int arent really worth it most of the time
they're just unnecessary hassle
types shorter than int are annoying to use on Java
you're annoying anywhere
...
am I misremembering or is there a language where if you want to add a short with an int you have to cast the short to int or something like that for it to work?
?
probably r*st
because "waa waa overflow is bad we need our blazingly fast"
baby language
hmm. maybe. but I think its a language I've tried before and rust is not one of them
good for you
Java has a couple of quirks like that and it's hella annoying
Which is why nobody really bothers using anything shorter than int
They get promoted to ints by the jvm anyway
yup. its why I Don't at least.
yeah the casting sucks
my favorite situation is when you have to cast and call a method ((Object) variable).method()
thats not really what i was talking about lol
low precedence casting moment
hey how come it's so low precedence
oh I guess cause you would want to cast the result of a method chain more often than an initial part of the method chain
๐ฌ
I like how casting in Scala does not ruin these precious chains
Please tell me how to DeluxeMenus use a gradient?
foo.bar()
.baz()
.asInstanceOf[Qux]
.qux()
It's quite a mouthful but it keeps the flow lol
or #general-plugins if you prefer
2 is cringe
Thanks
if you go to #1007620980627230730 your gay
thats really nice
Not so bad I guess
oh I mean if it's just a method itself, then yeah that's p cool
similar to what Rust does with like Into traits
please censor r*st
how unkind
kotlin's .cast
:))
Does anyone have a link to possible fields on a default google account? I can't find info about it besides printing my own, but I have different fields on different accounts.
Please ping me if you do
example?
foo.bar()
.baz()
.filterIsInstance<Qux>()
.qux()
Probably the same
that sounds like something that would be in an iterable-/stream-like data structure
not an object itself lol
there is Any.unsafeCast()
"just use an extension function" 
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/unsafe-cast.html what is dynamic here
joe
k
bro that's for JAVASCRIPT
cringe
thought there was one but ig not
Though that's a very easy extension to make
And jvm
those are buttons
the function only has the yellow dot
๐
I'm on mobile and it shows one lmao
bad phone
also
Well stupid my mobile
now why is it under /jvm...
stupid kotlin website*
Skill issue
Yo, anyone know how to get a "click gui item = copy to clipboard" ?
I found this online if it helps:
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
public class CopyStringToClipboard {
public static void main(String[] args) {
String str = "Replace this with whatever you need to.";
Toolkit toolkit = Toolkit.getDefaultToolkit();
Clipboard clipboard = toolkit.getSystemClipboard();
StringSelection strSel = new StringSelection(str);
clipboard.setContents(strSel, null);
}
}
that won't really work? bcz that's going to execute server side
not client side
and the minecraft client only lets you copy stuff by clicking text in either chat or books
and even then with the pop up
ah
that code was in a client, I found the same spigot post
;-;
Unknown FAQ:
I couldn't find anything for: notdiscord
Did you mean not-discord?
Requested by: BlitzOffline
Uh
yes?
yes
:)
What if it posted in as a plceholder text and you click to copy?
you can do that
but you have to send the message in chat
what can I do that with
or open a confirmation book or something like that
I tried MyCmd, and it "works" but only with actual links
I mean they have - '$OPEN_URL$ &8ยป &eโ
http://www.google.com/ โ
;&eClick to Visit!;http://www.google.com'
well, there's a few options
oh yeah. I'm pretty sure you can't do it with normal text
;-;
%parseother_{playerprofile_viewer}_{discordsrv_user_name}%
Thats the placeholder
you can't copy any text
the client limits it to urls
dam
that start with http or https I believe
Also, whats the quick way of making it say "account not linked" when false, and display their discord tag when trie
hmmm?
so %discordsrv_user_name% displays their discord tag
but it displays nothing if not linked
any papi api scripts or somethin?
You can
If false = "Account not linked"
If true = "%discordsrv_user_name%"
HOW
declaration: package: net.kyori.adventure.text.event, class: ClickEvent
can that be a plugin / script?
https://docs.adventure.kyori.net/minimessage/format.html#click the example lmao
Yeah
-papi changeoutput
thanks @regal galleon
so can that be a plugin?
/ is it one?
this is #dev-general
No, thats not a plugin, both links I sent are libraries
so how do I use it?
Well it was mostly for blitz
@static zealot how to use
are you making a plugin now?
if so shade in adventure
or use paper :)
and then create a component with a clickAction that is copy to clipboard
hi emily what a coincidence
yo @distant sun quick question
Let's say that someone from #1004004211945652364 hasn't paid you
how can I retaliate
publicly taunt them on twitter
do I really want to ruin their reputation over 10$
that's up to you to decide :)
but uh on a serious note
run </report:947290718299357205> providing all the details about it
yes <3
hehe
where's the /emily command
where it belongs
@quiet sierra dm @eager fern
Damn, this gotta be new (the /report highlight)



