#help-development
1 messages Β· Page 458 of 1
i do io.github.winnpixie, despite owning a several domains, ie winnpixie.xyz
i do have stuff at winnpixie.github.io :p
i own epicebic.xyz but im still using me.epic
Domain names are $15 a year and you can host locally if you have an old pc
i should update tbh
$15/yr? ur paying too much smh
You can also host with oracle free tier
or if you build a static nextjs site you can deploy for free on digital ocean
i think at most im paying 7/yr for 2 domains
i paid like 3 for this first year, next is 9/yr
Well they're .ca
but i also dont have .com .net or .org tlds :v
The plugin.yml is not part of the standard maven layout it's spigot specific
where tf you getting them from
.xyz and .us
i use namecheap
.gay
oh, ok!
I didn't saw that one
will make It
I purchase through whc
the only bad part abt the .us is i have no WHOIS Protection
?plugin.yml
i also use namecheap but im gonna be paying 9 next year
Isnβt there one like that
VAT moment
bc it needs to be registered by a US citizen or for a US company
?pluginyml
WHOIS protection is almost necessary imo
Companies can use loopholes I imagine
@white dew https://www.spigotmc.org/wiki/plugin-yml/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
thanks
honestly if a company used WHOIS protection id be a little concerned
they should have contact listed somewhere
for trusts sake
where tf do i see how much my domain renewal is
I will leave for a while, but I want to thank you guys for the help
Billing
I'm beginning to understand a few key concepts
go to renew the domain i think
for namecheap I just add it to my cart
Dashboard?
fuck me
is there some event that i can cancel to prevent a player for sending commands?
There you go
its gone up like 3$
PreCommandProcessing thingy
F
?jd-s
ooh
There it is
declaration: package: org.bukkit.event.player, class: PlayerCommandPreprocessEvent
oh
mfw can't save 1 cent
if i can get like 5$ off im 100% getting another year then
If you want to save money look to buy a domain for multiple years
When I place a spawner with a command that spawns diamonds instead of mobs and I wanna mine it with silk touch so I have the diamond spawner in my inventory It wonβt work
this year was like 4$
how does a spawner spawn diamonds
Spawners can spawn items
With a commans
You'd need a silk spawner plugin that's able to keep the spawner data. Also use #help-server
They are an entity after all
But yeah I don't think most plugins support that extra data
Ty
brain moment
Do you think essentials x is?
We still need an API for all that spawner data :c
Essentials doesn't have silk spawners?
is no api for that? you gotta use nms?
what
smh discord was scrolled years up
Kek
Yeah
We need virtual entities and then we can add a bunch of new stuff
Pretty sure no api for mob spawners
sadge
It's $14 a year which is $10 American
think a little
?
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client GODDAMMIT
AGAIN
just use mysql_native_password when creating user
^
wdym
dk exact syntax, should be easy to google
im never creating a user in my code
you need a user to access the database
that's done on the database side not code side
?
the user you created is using mysql 8+ or so auth, 99% of things use the old native password
so you need to remake the user
you have to make your user password indentified with native password
hope you are not using root user
probably is
i did it
at least error changed: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.
ig add characterEncoding property
yap, its url parameter on jdbc
just connecting to db
?characterEncoding=UTF-8
oh
add that to the end of your URL
yes, just a quick note, i would use bukkit logger instead of sout
K
thanks u both
Even better would be your plugins logger
do you think chatgpt could theoretically infect every computer on the internet if it was trained on up to date data
yes
i mean not over browser
literally have access to the internet and do something to infect every computer
it should first learn to give code which will compile, it can take making mass botnet as an next step
Pretty sure the CIA/alphabet agencies have backdoors in every OS/Hardware. No reason gpt couldn't figure it out.
Hey it compiles
Sometimes
Other times it thinks particles are entities and tries to .remove them
chatgpt would be able to abuse stuff like that so hard
because it can use 1 computer to start using the hardware to improve itself while taking control over more
perhaps it will go rogue and become skynet. We can only hope
This is why I am fully prepared to bow down to it
bow? just turn the taps on
Coll will be the first battery π
they will make him only do world gen
π¨
Is my file structure right? First time creating a plugin without a template
looks ok
I'm new to Java development
oh
ok!
I created the package as I was as told. The me.lucas1809.TestPlugin2
?conventions
this'll be a good read later on
And yes a package is a folder
ah, ok
well, they can be multiple folders, separated by a "."
so me.illusion.whatever -> me/illusion/whatever
package names all lower case
how do I get the servers current tps? xd
NMS :c
awesome
I can see both sides of it
Yep
simple
it can be a handy metric, at times
oooh craftserver
what is TPS
Yeah there was a bit of discussion on the PR
But it seems the final consensus was no
TennisballsPerSquaremile
frfr
teleportations per server
transportations per selection
Ah. Found the American
I'm actually german
hmm, should I really make an anti-suffocation algorithm
but mile is shorter than kilometer so it was easier to type :)
nope you are American now, Choco said so
I dont use feet
The standard unit of measurement is bananas
average wheelchair user
Fair enough, I'll live with it
Walking is for chumps
Valve.
I DO NOT TAKE CREDIT FOR THIS VIDEO.
All rights reserved to Valve.Β©
thats baguette Choco
Baguettes are bread
ok
alr it bred
wait my bread is meant to quauck?
yours doesnt?
is it meant to?!?!
yes
You guys got bread?!
Fs in chat
π <-- literally me
thats a bit quackers
ayy we good
779 what though
mb
ram
lmfao
if it goes above 1000 it turns red
or is that cpu
ram sticks
Smh you can't just leave out suffixes
its 779 cpu isnt it
it is
I'm also picky at tps
I'm making my first plugin.yml. Is the main attribute just the full path (starting from src) to the class that implements JavaPlugin?
yes
ok!
no need for src.main.java
src/main/java is generated by your build tool and should be omitted
oh, ok!
start from me
looks better
romantic
thank you
how precise is recentTPS
what the
Interesting, I think I can try to compile, now
It doesn't let me run the project
do I need to configure something else?
press control twice, then write mvn package
then for next builds you can press that play symbol
University TPS
md_5 thouhts on bukkit?
oh, thats ok
aboslutely despises it
It's working!!! Thank you
thanks for the help. I learned about a lot of cool concepts
no problem
Hmmm, when I tried to use JavaPlugin, It immediatly suggested me to import the respective class. Is It because I added the spigot dependency in the pom.xml file?
so IntelliJ assumed I was gonna refer to that?
or would It suggested me in the same way if I did not used It?
yes, it knows there is javaplugin in spigot jar
ok! Nice
I was following a YT tutorial for mySql and i made this method:
I think that the if statement is unnecessary...
but btw
uh i wouldnt do that every time
im getting a error: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server
you should look into hikariCP
Have we ever thought of holding like weekly code challenges for funnies?
The prize is to get to meet MD
imagine having an inventive idea
Are you not impressed by this brand new, never before seen, join message plugin
Well if we had a GOD DAMN DEV GENERAL CHAT DAMNIT!
You joke but due to hoe it is it is actually bouncing already formed ideas off pretty decent
Very good "u forgot this idiot" safety net lol
ItemStack[] contents = gui.getInventory().getContents();
gui.updateItem(index, item);
for(ItemStack itemStack1 : contents) {
Bukkit.broadcastMessage(String.valueOf(itemStack1.getItemMeta().getDisplayName().equals(item.getItemStack().getItemMeta().getDisplayName())));
if(itemStack1.getItemMeta().getDisplayName().equals(item.getItemStack().getItemMeta().getDisplayName())) {
Bukkit.broadcastMessage("yes");
}
}
Can anyone explain why player.getInventory.first(itemStack) does not work, but this does?
maybe theyre not identical
Lemme just try that
Hey, I understand that I put the version as 1.19.4... on <version> to use the spigot api made for this minecraft version. However, is there a list of valid versions I can use?
like, what If I want to use 1.15
do I just change it to
But yeah if nasa can burn millions of dollars by getting conversion from metric to imperial wrong (real) ... blowing up an engine 30+ times to fix a problem, to this day, they don't actually know what caused it....(double real) AND knocked over the US flag due to it being too close to the lunar lander on take off during the apollo 11 and never admit it (10000 % mega real) ur allowed to throw some try catches jn to figure shit out haha
1.15-R0.1-SNAPSHOT?
This makes a lot of sense. I wasn't finding a list on google
I guess Its because I dont know exactly what to search
looks like theyre all R0.1 lol
Exactly what I needed, tho
except some pre-releases
so It goes all the way down to 1.10
Should go to 1.8
Before I dive head first into playing with it, are there any good protocollib tutorials?
Lol
Preferably text based. I find video tutorials just a bit clunky
Usually it's easy to guess what the version is
Hmmm, the list only shows 1.10, but It would make sense to have a 1.8
It's called fucking around and finding out chief haha
Heh, alright.
Guess Ill get started then lol
Real answer though go look at public repository
Repos
And see how they've implemented it.
Best way to learn a new thing like protocol is legit just muck around with it.
Do you know If there is a way to go to even previous versions of minecraft?
I'm trying to find a way to make plugins for older versions, like the one I started playing (for nostalgia)
1.2.5
release
Yes and no
Spigot/bukkit goes back very far, but the older stuff is no longer available anywhere officially
Coolest trick I use is I start a fuck around sesh with the question "can I do this stupid thing "
Too many folk are scared of being stupid nowadays.
Our entire history is built on idiocy.
You do 100 stupid things one of em is bound to end up being genius eventually.
That being said I'm sure it's still findable
Hmmmm, would the approach be the same to make the plugin? (I'm very new to plugin development). Like, would I just find the artifact and added to the maven project and I would be good to go?
Sorry If Its a stupid question
*I am not responsible for any malware, viruses, or spontaneous combustion as a result of using unofficial downloads
very new to this
1.2.5 is good memories
Yeah. :)
Haha
I came into this rather late. What was diff?
Lmao
Now y'all have your fancy command blocks
I think old minecraft had something today's minecraft doesn't have. I'm not sure If Its just nostalgia talking
but I guess it was more "pure" in a sense
Oh shit before I forget
You can use disguise lib and mythic mobs to make custom mobs without the need for a texture pack
thats cool
anyone got a file handler i can rob
I can hold the file in my hands if u like?
hmmm, I will try my best to find artifacts to making plugins all the way down to 1.2.5
What exact file handler are you looking for
If ur new I'd highly suggest learn the current ways first before doing fuck abours
In order versions
Learn the tools of the trade inversions with lots of support before going deep into uncharted waters
copy files in the resource folder. create custom yml files like config ("messages.yml") etc
For copying file from resource there is saveResource method from JavaPlugin, and for Yaml, it's basically YamlConfiguration.load iirc
nvm didnt work lol
What was the error doing the try catch u can print the stack trace
Wait
maybe its working again
wtf is going on
No error tho
But its working but not working
This is so confusing wtf
question..
i was unable to find any amethyst or a pigstep music disc in Material so i registered PlayerInteractEvent to tell me the material of whetever item in hand when i right click... they both show up as AIR..?
nvm
im an idiot i think
define api-version in plugin.yml
using old spigot maven
OH
RIGHT
why didnt i think of that, thank you
Do you guys know any developers for older versions of minecraft, like 1.2.5?
I would be really thankful to talk to one of them
Btw any lands or claim devs here , what have yall usually done for caching ? Been eyeing up caffeine and wanted second thoughts
wroked tysm
Final result its not working, no error.
π€’
I assume that's a joke
maybe at the graveyard or smth
It's not
its not what
Not a joke
i see
well you would be hard pressed to find any devs from before 1.7 afaik
I want to split my plugin up into multiple parts, does anyone have any experience/advice with that?
like I am making a minigame but I want a version of the plugin that just plays in a single world vs one that can manage multiple games at once across like several worlds
making all the logic to make either individual one I can figure out but I don't know what the best way would be to split them up
like probably 2 separate plugins
Make a Core
but like thats where my knowledge ends
Then make the extensions
so what is an extension
A plugin that depends on the core
You essentially are writing a core library. You can then choose to have it so that the library is baked into the plugins that depend on it or it's expected to be included in the libs folder
hmm, but then I would want to disable the normal way to play the plugin if the extended version is installed
or would I just make a core lib, and then 2 plugins that use it
Correct
how can I set this structure up?
are there any articles on it?
because I assume it will also be some ide/maven magic I need to do
Probably? I usually just write my core then install it into my local repo to pull from another project. Whenever I'm writing a project and I find that my core should have a feature over the current project I open the core, add said functionality, then commit a new version.
what do you mean?
Maven install will install into your local .m2
I havent done much with maven so idk what .m2 means
Your local repo
When you run mvn install it will build the project and add it to your local repo located in your user folder in a folder labeled .m2
You just depend on it like any other maven artifact
Does anyone have experience with Holographic Displays (https://dev.bukkit.org/projects/holographic-displays) I can't seem to get the VisibilityManager to work / Individual Placeholders. The documentation provided also seems to be out of date so I'm at sort of a loss.
fun fetchImageAsBuffer(imageUrl: String): BufferedImage? {
return try {
val url = URL(imageUrl.ifEmpty { "https://cdn.discordapp.com/emojis/1065698008815112302.webp?size=128&quality=lossless" })
val connection = url.openConnection() as HttpURLConnection
connection.setRequestProperty(
"User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0"
)
connection.setRequestProperty("Connection", "keep-alive");
connection.setRequestProperty("Accept", "*/*");
connection.setRequestProperty("Accept-Encoding", "gzip, deflate, br, jpg, png");
ImageIO.read(connection.inputStream).also { connection.inputStream.close() }
} catch (ex: Exception) {
ex.printStackTrace()
null
}
I am getting a 403 error, url is "https://spigotmc.org/data/resource_icons/28/28140.jpg" anyone know a fix
could be a CORS thing
According to ChatGPT: ```
A 403 error usually indicates that the server understood the request, but refuses to authorize it. This can happen for several reasons, such as the user not having sufficient permissions to access the resource, the resource being protected by a password, or the server being overloaded.
In the provided code, the error could be due to the website blocking access to its resources from the programmatic user agents such as bots or scripts. The code sets the "User-Agent" request header to mimic a Firefox browser, but some websites might still reject the request if they detect that it is coming from a script rather than a human user.
To fix the issue, you could try setting a different user agent or contacting the website's administrator to request access to the resource. Additionally, you could check if the URL is correct and that the resource is publicly accessible.
I can load it in my web browser
image doesnt get loaded inside discord thouhg
ill change the user agent
Which is why it's likely CORS
What does that stand for?
its an access policy
Is there any way to get around it
Does BrewerInventory handle the bottles for a Brewing Stand? Since it probably doesn't, what does?
we have gotten around it in the past easily with no issues in java, let me see whats differnet
(incidentally, BrewerInventory only seems to handle fuel input and ingredients)
URL imageUrl = new URL(url);
HttpURLConnection connection = (HttpURLConnection) imageUrl.openConnection();
connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0");
BufferedImage image = ImageIO.read(connection.getInputStream());
// rows and columns
int squareSize = 12;
// array to hold sub-images
BufferedImage[] imgs = new BufferedImage[squareSize * squareSize];
``` this was the code we used
does that work for https://spigotmc.org/data/resource_icons/28/28140.jpg?
oh aight it's not CORS
we get a 403 once we save it as a ImageIO I believe hold on
Can you give the full error?
can someone help me making an ez plugin?
LearnSpigot provides a free web-based pastebin service for storing and sharing code snippets with anyone. Powered by hastebin.
basically, if someone breaks a block, it sends an alert to admins
were still here
yes
pay someone and they'll make it
Listen for a block break event, then loop through all the admins and send them a message
mmmh
either pay or learn online for free, not sure about free resources I only know of a good 9.99 course but thats not needed at all to learn
ok
oml heβs STILL HERE
If you're just barely learning a good way to learn is using the Skript plugin
use Denizen
...anyone know how to remove the bottles/potions in a brewing stand?
put a hopper under it
...
lmao
guys can u check if this a good script
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class BlockBreakListener implements Listener {
@EventHandler
public void onBlockBreak(BlockBreakEvent event) {
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
if (player.hasPermission("admin")) {
player.sendMessage("A block was broken by " + event.getPlayer().getName());
}
}
}
}
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {
getServer().getPluginManager().registerEvents(new BlockBreakListener(), this);
}
@Override
public void onDisable() {
}
}
ok thx
Itβs probably just BrewingInventory#setItem(slot)
BrewingStand seems to handle fuel level, brewing times, etc, and BrewerInventory handles the fuel slot and ingredient slot...but I cannot figure out the bottles
I assume the output slots are 1 2 and 3
I tried clearing the entire brewing inventory with .clear() but the bottles remain
oh wait, I used inv.remove(Material.GLASS_BOTTLE) maybe that won't work?
ur admins are gonna love you
but the documentation doesn't say anything about those slots, only fuel and ingredients
Not every slot in every inventory has a special method to access it
I'll report on my findings
surely this will be useful
you'd still think .remove(Material.GLASS_BOTTLE) would do it...
It may have to do with Accept-Encoding
βA player is playing the gameβ
the only difference I can really see in your code are the request properties.
Nevermind this was the least educated thing I said. This property is correct
it gives me a bunch of errors
on this line; public class BlockBreakListener implements Listener {
it tells me rename the file or rename workspace
what should i do
learn java
omg
O m g
but do u guys know why?
you have a different class name to file name
I imagine it's due to a lack of fundamental understanding of java
Depends, you want to compartmentalize things so one class doesn't get cluttered
Yes, one class per line of code /s
to put this as nicely as possible: the problem is you don't understand java, which means you don't even realize that the questions you're asking don't make sense
Maybe? Does it fit in another class?
wdym?
there's just a light bulb next to u it
with an x
Does one of the classes you currently have fit it better
omg this guy again
?main
read this
i followed a tutorial
Follow a java tutorial
but guys why do i get light bulbs?
should i correct them?
depends
like
on line public void onDisable() it says to me to remove @Override
should i?
Does anybody know how I can get a StructureManager instance? https://hub.spigotmc.org/javadocs/spigot/org/bukkit/structure/StructureManager.html#getStructures()
declaration: package: org.bukkit.structure, interface: StructureManager
what's the IDE's reasoning
flip a coin
iβm fr thatβs what i do when i code
declaration: package: org.bukkit, class: Bukkit
what's happening?
but it doesnt matter if i dont follow the recomandations
sometimes the IDE is wrong.
public class BlockBreakListener implements Listener {
@EventHandler
public void onBlockBreak(BlockBreakEvent event) {
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
if (player.hasPermission("admin")) {
player.sendMessage("A block was broken by " + event.getPlayer().getName());
}
}
}
}
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {
getServer().getPluginManager().registerEvents(new BlockBreakListener(), this);
}
@Override
public void onDisable() {
}
}
i have now this script
wrap your code in ```
You can only have 1 public class per file
yes
whats a public class? i have only a main class
:/
π
and in public class main extends JavaPlugin when i do ctrl shift O it doesnt import nothing

you have a public class called βmainβ
nostalgia
Public, private, protected, and package-private refer to the "visibility" of a class
who names their main class main
weβre passed that point
uhhh
can anyone answer this question; and in public class main extends JavaPlugin when i do ctrl shift O it doesnt import nothing
bros tryna put two public classes in the same file
why tfo
ME π
why not just call it in one class
you are causing yourself much more headache
thats not the problem guys
just take like an hour and watch a java video
i have a class with like 4 lines of code lol
yes but there are a few lightbulbs
Ignore them for now.
Just watch the video, don't pay attention to your plugin
just watch it through
and read docs
wait guys
Why are you trying to put two classes on the same file?
And don't start coding minecraft plugins without knowing the most basic things about java.
You can put two. It is possible.
ah ok
but i have 2 atm
Ouch!
are they public
public class BlockBreakListener and public class main
yeah, that's not legal
but why
are they in different files or not
idk
no they are in the same file main.java
yeah that's not legal
felony offense
how should i resolve this?
different .java files?
that is correct
so i have to create another class
ok, but are they linked?
you can import either one from either
what name should i give it?
the name of the public class
EgittoBlockBreakAnnouncer
that will go inside of it
Split them into two different files. Yes you can have two classes in a file but only one public. The right way? Nope. It is better to have 1 file per class. You can use internal classes when you, for example, want to make that class only accessible to the public class in that file itself.
ok
but they should be under the same package right?
yes
ok
:/
you have something to say?
π³
I mean... It can be inside another packet
but to create a .java file i have to create a new java class
wdym?
move one of your classes inside of main into it
more organized maybe?
and rename the java file more accordingly
i dont understand
you can create subfolders and move files into there as well
create a .java file
so now i have to right click on the package
I didn't even mean that to hurt. It's just not a good idea and leads to chaos.
I had multiple people ask me where to start and when to start getting into spigot development.
In my personal opinion I'd say stick to plain (console) java applications until you at least understood
- File structure (imports, class header, function blocks)
- variables & data types (atleast String, int, double)
- if/else
- loops
- functions
the name of the file must match the name of the public class in the file
Yeah but still It is nice to help once in a while. Motivate people. We were all there at some point
yes, your ide has the create class, which will create a .java file with the name provided and the class header written for you
but do i need to put only the public class main line or everything that is under it
you currently have two classes
ik
Java is a programming language famous for its ability to compile to platform-independent bytecode. It powers enterprise web apps, big data pipelines, and android mobile apps.
#java #programming #100SecondsOfCode
π Resources
Java Website https://java.com
Star7 Demo https://youtu.be/1CsTH9S79qI
π₯ Get More Content - Upgrade to PRO
Upgrade to ...
but do i need to put only that line or everything under that line
I highly recommend you read a general java tutorial first
Sure, we are here to help but the questions should be reasonable.
I wouldn't start building a car when I don't understand how a bike works.
there's a lot of good tutorials on youtube for your first java plugin(s)
like only the line public class BlockBreakListener, or public class BlockBreakListener, + implements Listerner etc?
lol
also hello folks.. am i in the right place to ask about my BuildTools woes?
i will look at the tutorials
Or you start with basic java before jumping into plugins :/
Yes you can also ask questions about BuildTools here
go ahead
:/
guys it tells me JavaPlugin cannot be resolved to a type
Recognizes StructureManager tho
are you importing the correct file
idk is the method name correct
wdym?
you need to import JavaPlugin first
how
I've run buildtools a ton before with no issue, but I've just returned to it today to compile a different version. However now, whichever version I run (even if it's exact same version + flags I know I've run before), it gives me this error (can give the whole log if needed, it's not that long).
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.852 s
[INFO] Finished at: 2023-04-10T03:50:21+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Cannot invoke "java.util.List.stream()" because the return value of "org.apache.maven.project.MavenProject.getCollectedProjects()" is null
I can't find anything online so I'm inclined to think it's a me issue, but I've deleted + remade the buildtools repo and still nothing. Anyone got any ideas?
otherwise java does not know what you want
declaration: package: org.bukkit, class: Bukkit
tell me how do import it
you are using maven 3.9.0, dont
upgrade, downgrade, or uninstall at let bt use its version
3.9.0 is bugged, but 3.9.1 is fine
i wasn't aware of that, thanks very much
import org.bukkit.plugin.java.JavaPlugin;
Did you run maven update if you are using intellij? In case you just added that part/changed the version?
Are you using any other dependencies
explains a lot
and then i click on ctrl shift o?
right?
what does ctrl shift o do
idk
it should give u the import
Not sure it it imports stuff that didn't import yet
I guess I'm to outdated. I am at 3.8
how did u set that up?
Is that not the default for IntelliJ
I honestly don't remember
I also have it to autoimport on paste, which I know is not default.
it tells me an error
the package org is not accessible
no?
yes
Depends, it is default if you copy it from one class (in intellij) to another. Not for code copied from the outside tho
i just have my package src, and the 2 public classes
Yeah, that's what I meant
you need to have a way to import bukkit
and whats the way
one second please
Maven/Gradle or (not recommended) manually importing the jar
never manually import the jar
don't even look into how to do that
you should use maven for your purposes
so? what should i do
oh boy okay
what
He can still build it using the console
you can tell them how to do that, it's getting late for me
yes pls
I will not write a complete maven guide.
https://maven.apache.org/ here's your starting point, install maven, google how to get it to work (either in eclipse or using the console) and once that's done we can explain you how to import spigot
ok
not sure you are, that version should be fine
ah
My bad
Hmm now I'm extremely confused. The method won't work yet the Javadocs says that is the way to do it.
post your pom
you likely have a depend overriding spigot-api
put spigot-api as the first depend
That might be the issue because it works on other projects with the same spigot api version.
I keep getting this issue that I have no idea on how to fix...
you need to add the bstats repo
bstats is on central
Thanks that fixed it.
Thanks
done
omg it was pretty difficult
Congratulations! Keep it up great job don't get unmotivated.
lol
thx i guess
but now?
jesus christ no way this conversation actually took place for 9+ hours
hi
hey ig
can u help?
did you finally decide to learn java?
nice
but wht
i get JavaPlugin cannot be resolved to a type
did you import it
In this episode, I give you a brief overview of what you can expect in this MC Plugin coding series. #Spigot #MCPlugins #PluginTutorial
Java Tutorial: https://www.youtube.com/playlist?list=PLfu_Bpi_zcDPNy6qznvbkGZi7eP_0EL77
How to Setup a Test Server: https://www.youtube.com/watch?v=58MZ4THF73g&ab_channel=KodySimpson
Discord: https://rebrand.l...
do you have the spigot dependency in your maven/Gradle/whatever
guys it doesnt work
rip
?notworking
"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.
i have a folder called dependencies in the eclipse folder
what
?notworking
"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.
yeah
i understood but i explained the problem lmao
what build system are you using
your ide should've done all of that for you if you've created a maven project
no i didnt
how do i create that in the first place
what ide are you using
eclipse
idk then I use intellij
Iβm pretty sure itβs just new -> maven project
you'll install intellij for you
yes it works
then?
wtf is an archetype
select an archetype
which one should i choose?
guys?
π
can anyone help?
ok im installing intellij
im just trying to make an ez plugin, and i have to do 1000 things
i imagine you're going to get more help from online tutorials than someone explaining it to you here
but fr 1000 in one night
i already got the script
especially if you don't have a baseline of knowing java
online tutorials will be well thought out and explained, geared towards people who don't know java. i know ive Literally just joined this server but most channels like this there's at least some expectation of java knowledge
which is why people are recommending you learn that first
You got the code from ChatGPT
yes and?
god why do you keep coming back
chatgpt is not a magical wizard
oh why not making plugin with that
yes it is
well, if i dont understand something ill just see the explanation
but he does weird things
fr
not even joking
please come back after you have watched & learned at least a basic java tutorial
done
but i installed intellij
okay so what's your issue
now?
yes
well i downloaded and put it in a dependency cartel
no
but where do i put that folder?
that's not how you're supposed to do it at all
and explain it to me
add ```xml
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
as a repo andxml
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.19.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>``` as a dependency
to your pom.xml
and then reload maven changes
okay
what version of intellij did you download?
the latest i guess?
you downloaded the ultimate
...
ultimate is paid
it doesn't matter
for the first 30 days
also I wouldn't sink time into it this guy refuses to go and learn java basics
if he is
i get jetbrains
as well as the next 3
is that the official site?
yes.
"IntelliJ IDEA is an integrated development environment written in Java for developing computer software written in Java, Kotlin, Groovy, and other JVM-based languages. It is developed by JetBrains"
i should download the community edition right?
correct.
yes.
ok
I'd advice to follow Kody Simpson's tutorial on how to set up a Minecraft plugin project, you won't even need much maven knowledge there
mine?
however please do not put off learning maven because it'll be essential if you want to get better
?????
im trying to be useful
that was not useful
lmao
let's focus on learning first.
this is a development help channel
this is a dev channel
ok downloaded
I have outlined what to do in my messages above
so if you open your eyes you can proceed
yes but here i am to get help
has the stuff on colors
well I guess if you need help that bad
yes
yes i downloaded
new project
yes
oh my fucking god help yourself
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
not useful
just read it
eclipse is a W
mmmmmh
i can't say I agree
but ok
new project and i should create a project with meven right?
maven
yes
iirc it just spawns a singular particle. i think the way i did it when i last used those particles was just randomly pick locations within the radius to fill it out
did you follow the tutorial
im following what butter sent me
but how should i fix this