anyone know what happened? Could not load 'plugins\SuperPowers.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1038) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:252) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:165) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:383) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:185) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:809) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_291] Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:1020) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] ... 8 more I think I did everything correctly on my plugin.yml
#help-development
1 messages ยท Page 1516 of 1
Post your plugin.yml
ok ```main: com.joelj.plugin.Main
name: SuperPowers
version: 1.0
author: NerdwasExposed
commands:
SuperPower:
No capitals are permitted I believe
That is where you need to google as its not a simple answer
Serialising an object depends on what the object contains
in my command?
Yeah, I think thatโs your issue
ok
How can I remove all the effects from a player?
if i want to sys out to console without the plugin prefix, should i do exactly that and not use the logger but instead just use sysout?
yes
ok
How about Bukkit.getLogger()?
never tried that one, but I image it would return a generic logger
rather than JavaPlugin#getLogger() which returns a plugin specific one
i just need to print info to console
sysout should work then, yup
doesn't matter how you're shouting it to stdout, itll get there ๐
Proof of this would be that Rust's println! macro works just fine ๐
to print info to console you should use Bukkit.shutdown()
whoops, my bad
wait how come it takes no String args
i need to print this goddam it
System.out.println(Object o)
Bukkit.shutdown will automatically find the last string in the code

Yeah i guess Blinky
what are you serialising
then yeah
just save it as a map and then deserialise it by just passing it thru the constructor
cereal lies a ball
Someone make a sphere in minecraft
how do i turn my spigot server into bungeecord server
Spigot.yml bungeecord -> true
server.properties -> Offline mode.
server.properties -> Set a port
Then make a bungeecord proxy and add the server to the config
Thats bytecode I'm guessing
spigot
Activate Windows bro
Bukkit -> .shutdown()
You need a java decompiler to read spigot's source from the jar
What are you doing
I'd recommend JD-gui
no money in hand
i press edit
Nah fernflower
both work
no
then wot
ok
Or Ghidra
lol what?
nah thats the decomp that i often see like security testers use
Yeah, I mean it was built by the NSA, it's got loads of features, it's pretty sweet
OMG
I JUST REALISED
I mean - most people when they ask for a depcompiler it is because they want to steal some1s code
sh-s
def not h
but whatever
is hypixel bungeecord server
Or they just wanna fuck with Minecraft ๐ค ๐
I primarily use it to make the land of NMS a bit easier ๐
ok
however they have their own performant server jars
Yeah that is one use
If anyone here works for hypixel send me your server jar please
i would like to have a looky in its head
you know - what makes it tick
(pun intended)
<scope>compile</scope> but Maven does not add the classes to the jar?
Do you have your compiler goals set?
How to fix that?
?paste send ur pom
I donโt think they would ever give it out
You reckon?
https://paste.md-5.net/qiragoqepo.xml It's mine API, pls don't leak is from a friend
Itโs just my brilliant hypothesis, yes
Yeah you have no compiler plugin
hypixel uses custom server jars and odds are even if they give you the jar you still probably couldn't run it without other related stuff.
From another plugin
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
</build>
something like this at the bottom so that you can run maven package
Ok
what do you mean this gives an error out of bounds
Inventory inv = Bukkit.createInventory(null, 9, ChatColor.GOLD + "" + ChatColor.BOLD+ "Trails"); //this line
inv.setItem(9, item);
<minimizeJar>true</minimizeJar> might want to remove this, some libs don't work if they are missing class files
True - i imagine they have a lot of private libs / servers and stuff
Thats a point @maiden briar
size 9 = 0 to 8
^^
well as far as I know, all their servers run a custom 1.8 server version that they forked. Most of their servers also use a custom format for their worlds as well as I am sure there is custom network related code as well.
slimy world mmm
Yeah - I know that they run 1.8 and to just handle that volume of players there is some pretty hefty logic / proxy servers
pretty sure they are on 1.12 now
Also - I imagine there are a lot of boxes whose job is purely to spin up/ close minigame servers
what
Huh! i didn't know that
no
they just made a thing for 1.12+ bedwars where the beds would color based on the team
the actual server software is still 1.8 I'm pretty sure
I mean - it seems easier to just support newer protocols than older & newer protocols
This gets discussed in here a lot, I'm pretty certain those in the know always come down that they are 1.12 now
I could be wrong as I'm only repeating what many say.
What they do is just implement the protocol of the versions they want, and then add stuff in they need/use
it could be either way
well there was at one point someone from hypixel that answered a lot of questions in how they have everything setup. They didn't get into specifics
yea ddosed
i'm trying to make a for loop that spawns a particle every tick for a second, but for that i need to wait a tick before spawning the particle again. i have already made the for loop and the spawn particle but i have no clue how to make it wait a tick before starting again, does anyone have an idea?
i tried making it with this (https://bukkit.fandom.com/wiki/Scheduler_Programming) but it did not work, or i was just doing it incorrectly (the more likely option).
Bukkit.getScheduler().scheduleAsyncRepeatingTask
idk how to use that ยฏ_(ใ)_/ยฏ
Have you ever touched the scheduler?
do you have an article explaining it or smth?
i started java a little more than a week ago
Well - obviously we cannot use thread.sleep() on the main thread
cause that sleeps the whole server
The wiki article you linked explains every aspect of the Scheduler. You need to read it and learn.
what's a thread
I think that you need to spend some more time on google
my english is not the best so i can't even understand explanations like these
You use and understand contractions so your English is fine.
https://cdn.discordapp.com/attachments/460233455821783040/855395175496941578/image.png
Threads are processors that do things sequentially
so this diagram executes en then fi then es
but it is in order
so why do we need order in making a wait thingie?
the minecraft server runs the server stuff in the same 'Thread' as all the plugin stuff
wat dat mean
so if you use Thread#Sleep it sleeps the same thread that the vital server stuff is on
class MyObject {
private val name // error
constructor(name: String) {
this.name = name
}
}
that is Kotlin?
that isn't java
or something like that
ObjectInstance#classMethod
Class.staticMethod
@quaint mantle How did you get the discord helper role
idk what u just said
i applied
How?
i mean i know skript
yikes
damn
oh no
you came from skript...
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
say learn java one more time and i will block you like i blocked about 5 other people in this server alone
i swear to god
i'm tired of people saying i'm not trying
Im sorry - do you do comp sci?
Welcome to the club Jeff ๐
Unclear
then just learn java
blocked
they are telling you to learn java to help you
oh man ๐
LMFAO
He has about 5 or 6 of us blocked for trying to help him now ๐
Bruh you will not get far in coding if you litterially BLOCK the people that are trying to help you
yep
Floofsy with the block button 
It's sad
i am learning java
These 9yo's trying to be programmers
conclure you know kotlin right
can some one ask him
do you do comp sci?
Conclure also blocked
and NNYa
Noone cares
and me ๐
jheez
can someone actually help me without saying i'm gay / telling me to learn java
like everyone active
No
You will get no help
From this point
You refuse to do what we're telling you
I still answer his questions, just so he gets that notification that someone he blocked replied ๐
Smh
And you get the satisfaction of knowing that he could have had help if he hadn't been such an idiot
@lean gull You cannot code in a programming language that YOU DON'T KNOW
jeff getting blocked too
lol
i thought i was?
lmao
lmao
bro noone cares if you block us
sysdm last man standing, barely
can someone get rid of this dude please
Can you tag mods
He's goign to hear an echo in this channel soon. That and tumble weeds
sysdm tell him to leave and go learn java, nobody is gonna help him
brb reporting conclure
?kick @lean gull
Done. That felt good.
nice
like jesus
I did this:
https://gist.github.com/ItzJustNico/6ed10c75676e36cf0e05a1e453f0d5d5
But I get an Error in the Console and its taking really long til it is finished going through the while loops. What did I do wrong? Or how can I make it faster, I want it to be instant. Or is there a faster/better method?
Error:
https://gist.github.com/ItzJustNico/89586d6028d638c3c1680e1b12012e19
lol
those are some big embeds
Myself and NNYa spent near a full day teaching him what a Hard Disc, memory and file access was.
you have the perms? ๐ค
i have nearly all perms
he is 100% gonna join back being like
'WTF why you kick me i was just learning'
just not channel settings
Then teaching him how to use spigots config he blocked us both for telling him to read the tutorial.
From the role?
ye
smh
!condition.equals() instead of !=
you are comparing objects
i mean - if you don't want to be told to learn java at least sound like you know what you are talking about
yeah what imagine said
!startBlock.getLocation().add(vector).getBlock().getLocation().equals(targetDownBlock.getLocation())
thats a long line of code
You don;t need to getBlock then getLocation, after adding the Vector you have the location
Block block = (Block) startBlock.getLocation().add(vector).getBlock();
redundant cast
Someone wanna vouch for me on the application ๐
you barely speak
IRL ?
Well that isn't going to work out then haha
oh i get ya
okay did that thank you
but you did just say you aren't active
Not anymore
sooooo... shot urself in the foot a bit
https://www.spigotmc.org/wiki/using-the-event-api/?noRedirect=1 <--- is this tutorial up to date for 1.17 libraries
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
oh true thank you
yes
im getting some unresolveable errors and im wondering if the library was changed
oh ok
wait, how did Adelemphii#6213 get the helper role? She/he only spoke like once a month
show errors if you need help
applied
?paste
they're actually really active
Honestly I've only seen them help one person a month ๐
they're usually in general
The rest was inane spam.
Hey, does anyone know the best way to query item display names in the 1.16.5 Spigot version?
so what? moderating != being active in the chat
nope
well the compiler is just complaining that certain imports are not defined
but it is a helper role
they moderate general
ah
same
for example import org.bukkit.EventHandler is undefined but i know my ide is fine because org.bukkit.Bukkit is defined
i know its recognizing some of the api
What IDE are you using
He's still about., Just goes in phases.
vscode
Code-centric IDE, focused on your productivity. Full Java EE support, deep code understanding, best debugger, refactorings, everything right out of the box...
^ There is plugins for that that sets everything up for you
Like the project
alright give in. ima use intellij
Yeah
Do you have a minecraft server ElgarL or just plugins
So i wanna make a thing where if u craft it doesnt cancel
so it still removes the materials
but makes the result when you crafted it
dissapear
i tried setting the type to air
but that dont work
Sorry for posting that on 2 channels, but i have no idea which category it applies to
should i use openj9 or hotspot, and what is the difference
I still get that Error:
https://gist.github.com/ItzJustNico/5d003c499a4e53cda8fa50783b9b4958
And it is still going after it passed the entity and not stopping even though I did that in the first while loop:
!startBlock.getLocation().add(vector).equals(targetDownBlock.getLocation()) && max < 40
I only write plugins
fair
Damn, I'm having a real hard time finding devs to help me with the server that I'm working on. And the spigot forums isn't working
he should really get a name that isnt a jumble of letters
I've run servers before but theres only so much you can do in MC
is the chunk loaded
i can be ur dev but i dont make plugins. i configure them and put everything together, if interested dm me
Me
Yes I am standing in it when I am doing that
Bet
He can't he gets kicked/banned too much. He's our own little rebel
i went on this really cool one the other day. The amount that they did with like the texture pack making buttons was really cool from a dev pov
yeah - when i said about him going to watch the paper dev stream he was like 'Which alt to use today' lmao
haha NNY will have to do
can somebody help me there?
get the item meta
and then the display name
Then - if there is a chatcolour to the name you can use like ChatColour stripColour iirc
intellij really requires ur to purchase a license
idk im getting prompts to put a license in
Did you forget about me haha
yes
are u yessing @ me?
oh ๐ฆ haha
community edition doesnt require that
only ultimate does
did you download the community edition
tho you can get it for free if you go to school
oh the snap mustve given me the ultimate
no
ye
Eclipse is free
a hah! i just updated it to community i got it, thanks
ahhh you forgot me again or dont you have time anymore?
im mad he just burned u lol
hmm sad
how do i set up class path in intellij so i use the api
give him a chance, im sure hes just busy
okayy
file > project structure I believe
sweet i think i got it thanks!
I feel like storing kills and deaths in config.yml wouldn't efficient at all
something like this?:
if (Item.hasItemMeta()) {
if (Item.getItemMeta().getDisplayName().equals("Item")) {
Shit I just saw that my autocorrect corrected floofsy to flo gay, floofsy if you see this I didnโt mean to call you like that my apologies:(
looks bad for me haha
He has you blocked too Conclure ๐
hey what were u struggling with nico
If thats even possible with your role.
Oh damn
I still get that Error:
https://gist.github.com/ItzJustNico/5d003c499a4e53cda8fa50783b9b4958
And it is still going after it passed the entity and not stopping even though I did that in the first while loop:
!startBlock.getLocation().add(vector).equals(targetDownBlock.getLocation()) && max < 40
Can somebody help me here maybe?
thats when ur trying to compile?
what's vector?
Hey, what's the correct way to check if a block is a slab in 1.17?
And do the double slabs still exist?
do i just change the dependency version in my pom if i want to make a 1.8 plugin? since intellij's dropdown menu gives me 1.12 as the lowest i can do
@lusty cipher there it is
yes I know
Floofsy got kicked
Yeah
hah
justice
@quaint mantle good job
you deserve a cookie
i would give you one, but I only have ash and coal
whyd id floofsy get kicked
he was cocky
ah
cause he's a dumb numbnut who was probably a troll
understood
and didn't want to learn java and blocked those who told him to learn java
he'd ask dumb questions, get passable answers, say "idk what you're saying" to anything you said, and when you told him to learn the java basics by linking him to a guide, he'd refuse to read the guide
and then block you because you weren't helpful
so , iam trying to code with [nms , protocols] i guess so when player join it will send him a packet that show his skin on this npc ..
if i joined : muntder_iq it will show my skin
if player name : Optic_Fusion1 join
it will show his skin
hello does anyone know how to translate item in the inventory
define translate
Resourcepacks paired with the localized name meta can do this I believe
anyone know how to do this ? with packets?
Here an example you have a sword in youre inv named hello now i want to translate it into the users language
that will be quite difficult
@lofty junco Check this out https://www.spigotmc.org/resources/translator-plugin-api.31294/
hmmm do you have an idea ?
oh thanks
you would have to 1 determine the user's language, 2 determine the language the item was written in, 3 use a third party translation api like google translate to translate it with, 4 send the translated data to that player
no matter how you go about it, you will need an api key from a translator service like google translate
and the associated logic will be quite heavy
i cant get an key
then you're fucked
But if this is for specific strings, localized name with a resource pack would be the best way to go about this
no because every player have to download it
If you arenโt translating just any input and instead static text, I would look in to the resource pack solution
Itโs going to be Hell doing it any other way
why no one answering me ..
..
because nobody knows
does anyone know a way to get a players non-afk playtime?
skins are cancer to work with
the server does not differentiate betweeen afk and non afk playtime
you will have to track the afk playtime yourself
Youโd have to write a plugin to track this
yeah i mean an api or similar
i found this but it doesnt have half a documentation https://www.spigotmc.org/resources/playtime-api.76329/
I mean it probably wouldnโt take much work to write this yourself, but I donโt know of any apis
not sure if this is the right place to ask a question like this but eh
does anyone have experience with custom texture packs like im just trying to get an item retextured to something else based on custom model data and its not finding my custom texture
{
"parent": "item/generated",
"textures": {
"layer0": "item/iron_ingot"
},
"overrides": [
{"predicate": {"custom_model_data":1}, "model": "item/cool_ingot"}
]
}
if i replace cool_ingot with some vanilla texture it shows it just fine but any custom texture i place there it shows as a black and purple box
i placed the png texture everywhere in the resource pack but it just cant see it
yeah is there any other place for resource pack help
i didnt see any so i just posted it here
already did and no one answering ..
..
yes i know
:L
like i said no one is answering because noone knows the answer
skins are cancer to work with
thanks
any classes that help define properities of a block
i wanna change the physics of a block
is it in .png format?
yes
ive got a couple other resource pack as reference and i really dont get why they work and this doesnt
guys can you believe, i bought real red switch mechanical keyboard for only 20 bucks lol
best purchase ever
i mimic the structure too and everything and it just doesnt seem to find my custom texture
with rgb and everythin
it feels so good to type
ngl
umm
i wiped out the resource pack
from my mega.co.nz drive
fuck
there's info on minecraft wiki
about predicates
i still use an IBM model m
well, on my secondary machine anyway
primary is a laptop so no need for an external keyboard
it feels like a typewriter
so satisfying
sorry can't help, i wiped out the resource pack which i was developing months ago
myes, the clickety clickety is so that you actually know whether you fully depressed the key or not
it's crucial when 10 fingerbanging your keyboard without looking at it
i got no clue what i did wrong but i just copy pasted a different resource pack and renamed everything and now it works
just using a reference resource pack in the future i guess
You could listen to a BlockPhysicsEvent and change the outcome of those events
cant tell how successful that would be though because changing the physics of a block itself is most efficiently done through modding
i thought the org.bukkit api was for modding
or am i gonna have to use something ilke forge
well tehnically plugins are mods
ah, thanks for that
server-side exclusive mods, in some sense
limited "mods"
but, very limited
[INFO]
[INFO] -----------------< com.manhuntmc.dogleader:DogLeader >------------------
[INFO] Building DogLeader 1.16.5
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ DogLeader ---
[INFO] Deleting C:\Users\<>\IdeaProjects\DogLeader\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DogLeader ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ DogLeader ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 13 source files to C:\Users\<>\IdeaProjects\DogLeader\target\classes
File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! and as error Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project DogLeader: Fatal error compiling
unlike a mod that actually modifies the server, like craftbukkit or spigot or whatever, a plugin only plugs into an existing interface
namely the bukkit api
Spigot API is Forge but for server side mods
without any rendering support since its a server side modding
lol
๐ณ
anyone know why this isn't doing anything?
if (event.getCurrentItem() == WaterTNTItem) {
it's in a CraftItemEvent, WaterTNTItem is an item that is also the result of the custom recipe i made, so it should work
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
wow
Please compare objects with .equals
how helpful
he blocked all of us
pretty much
batsht just block em, that's what i did :P
i think space wizard might not be blocked yet
Ah thanks
works now, thank you!
np np
anyone know how to display a particle for a certain amount of time?
there is no way; particles are transient
there is no way to delete an existing particle, or control its lifespan
^^ yeah particle "lifetime" is client side.Tbh everything about them is
#forge
i don't know if even the client can delete existing particles arbitrarily
lynx u talkin to me?
yes
tell him that I am right and that he smells
oh then i have no clue what you're talking about, i have those people you replied to blocked
truuuueee
there is no way; particles are transient
there is no way to delete an existing particle, or control its lifespan
the only thing you can do is send them
youre not gonna get much help blocking em all
nny is the source of most help around here
google it
you don't
i tried
bukkit scheduler coding
i found nothin good for a beginner
or spigot scheduler coding
that's because you're not even at the beginner stage yet
ooh schedulers are fun
really make you want to ram your car into the homeless shelter
well if it isn't good for a beginner, you should not be using it then
i tried bukkit scheduler, doesn't work for me for some reason
you are at the "what the fuck is java and what does it do" stage
the spigot tutorial for them is pretty indepth if I recall correctly
elgar has been linking the spigot and bukkit tutorials to him for like days
i tried this one, it doesn't work
https://bukkit.fandom.com/wiki/Scheduler_Programming
i'll try it again and tell you what happens
gl
also please be nice or i'll have to block you too
I would recommend learning Java first though
I.
So you have some amount of understanding going in to this and you'll know how to make use of the API
lmao have not been threatened by a block just like that
Imagine getting help from people
and threatening to block em ๐
imagine what people have been telling him for several days
wouldnt it be funny if yall just blocked him
i prefer help coming from nice people
we prefer the people asking for help to not be tards
i prefer not ramming my car into a homeless shelter
Beggars can't be choosers
but they have to deal with it
based
TRUE
๐
i see no problem with blocking rude people
i see no problem with driving my car into a homeless shelter
There are only so many people on this discord ๐
i see no problem with driving my car into a homeless shelter
Quote
but anyway, try out the scheduler stuff
scheduler is pain and you will likely end up ramming your car into a homeless shelter
It just happens sometimes
he'll end up in the homeless shelter as a homeless person at this rate
Nothing you can do to avoid it
he'll just block the government because he doesn't want to pay taxes
then it will be our cars ramming into him
and the landlord because he wants him to clean his apartment
and also the mailman because he brings 'LAST NOTICE PAY NOW OR DIE' mail
brb blocking the IRS
plot twist where the land lord is the owner of the homeless shelter
and the car dealer
how do i use this?
BukkitTask task = new ExampleTask(this.plugin).runTaskLater(this.plugin, 20);
that is not what the tutorial suggests.
i literally copied that line from it...
that you copied it doesn't mean the guide fucking suggests it
what am i searching for?
you might wanna use something along these lines:
BukkitScheduler scheduler = getServer().getScheduler();
scheduler.scheduleSyncDelayedTask(this, new Runnable() {
@Override
public void run() {
// Do something
}
}, 20L);
note that this is your plugins main instance
idk what an instance is yet
why?
consider reading a java tutorial
that's the way to do it ๐บ
because you will need to read a java tutorial about it then
it is definitely something you need to know for this
as you need to get this instance of your plugin main class through your entire plugin
Just learn Java lol
Beep
tell him about dependency injection and he'll shit his pants
I'd never
You should not be trying to do anything like this without understanding what an instance is lol
whats a pants
You really need to just take one of those free online Java courses
It doesn't take more than a couple days to build some amount of understanding
i'm currently learning via codeacademy
then keep doing that
it really doesn't fucking look like it lmao
trial and error is good tho
I mean
and help from random people on the internet
Like StackOverflow
lol
Not a Discord server
imagine him on stackoverflow
StackOverflow with already answered questions*
problem might be that people on the internet that already spend years on the language do not wanna join you in the trial and error
null pointer exception why
"whats a null"
i'mma just continue following the codeacademy for now
As you should
Good idea, and good luck
thx
yea, you wanna get to the concept of classes and instances/objects
cya
๐
How i can change item meta in hand without "switching" item animation?
Concerning you will always have to send an item update I do not think it is really possible
I might be wrong tho
lmao
Floofy stupid
He just says he will block anyone
if they dont agree with him
and dont do what he tells them to
lol
newbie
theres always someone who seeks help, refuses it and acts like an absolute jerk that comes every 1-2 months
this one is more persistent than usual though
last one we had was the JDA guy with the default avatar
!jadiss or something
he bent over backwards in 2 or 3 days
#help-development message this one
what about only metadata? CustomModelData
but i find it genuinely difficult to believe that this guy is really as socially inept and technically incompetent as he presents himself to be
granted, all sorts of stupid does exist, but it smells trollish by this point
I'm almost certain this is impossible
When you send a metadata update the client sees that as you switching to a brand new item
that is still part of the NBT tag send to the client
so I don't think that would skip the animation
that's bad
Hey Iโm a new developer and wanted to code plugins, where is a good place to start?
so if i start using the forge api, are client side mods placed in separate folders from the plugins folder?
since.. never?
do you know java?
yeah I also have no idea what you are on about xD
Not that much
well go learn java
โจ learn java โจ
the solution to your marriage crisis
how to learn heated beverage???
okay, so spigot has no client side api
great discovery
yes spigot is a server api xD
guys guys how do i make ploogin in javascript
doesn't bedrock have a js plugin API ?
Yeah Spigot plugins and Forge don't mix
- spigot isnt a server provider
- mods are completely different than plugins
- you want to use sponge & forge for mods
ok I think I covered all the bases
spong
i just want to know if i can run my mod on my spigot server
no
no
It can
simply drag your forge mod into ur sipgot plugins folder
If you have Forge as Version
whoaaaaaaaaa
spigot server

we got conflicting opinions up in here
Yea, I have my mods on a spigot server
there are no opinions
i am right
as always
what kind of mods
oh I think I get it
I have Forge 1.16.5 Download, and then you can play with mods on a spigot server
people keep telling me to get spigot jar
what do i do with the jar
yes you can play on spigot servers with a forge client
The 2 people that said no:
but no, you can't run mods on a server
spigot server
you can have client side mods
yes spigot server thanks daddy

No, you can't put mods on your server
I mean you could
I'm a mod on a server 
You can have it as a version, but not as a default mod in your server
Hes got a point
LOL
how can I get a bigger jar mine is full
Hey.
I wanted to know if it is possible to make a block to another type of block when a player walks?
you can but mods in vanilla minecraft to..
but not plugins.. ?
You could modify the spigot jar and call it a mod
you are shattering reality
But spigot is a mod in itself, so ยฏ_(ใ)_/ยฏ
Huh?
what's next, shrimp fried rice?
Yes
Itโs possible
Oh. Ok.
you're telling me a shrimp fried this rice?
welp, im gonna keep using spigot
To run mods + plugins in a server together you would have to use one of those jank server things that allow forge/fabric mods + spigot plugins, and they don't work well from what I've heard? Unsure.
@EventHandler(priority = EventPriority.MONITOR)
public final void onInventoryClose(InventoryCloseEvent e)
{
if(e.getView().getTitle().equals(name.toLegacyText()) && !allowedToClose)
open((Player) e.getPlayer());
else
destroy();
}
This keeps opening and opening the inventory over and over, even if you don't close it
Never thought about it that way
Can I also make it so a person will jump 2x higher?
with jump boost yus
Without double click?
Just use jump boost
Oh.
it's a potion effect
very interesting. so i want to change block properties and was told client side modding might be better... but then i still want to host my world with the mod
you can run a forge server
But can you do that without the effect?
velocityyyyyy
?
yeah you can add velocity to a player
PlayerVelocityEvent?
no lol
aw, okay, i was starting to like spigt lol
bruh
Have fun detecting when a player jumps performantly though
You're better off using the jump boost effect
Can you send me an example of a player velocity?
Pro tip: always use google first, if you don't find your answer.. Ask for help.
That's what I am doing.
googling is a skill
declaration: package: org.bukkit.entity, interface: Entity
did i sae you did not noe. Met me in dae ring, cumone.
any efficient way of checking armor contents rather then waiting for right click or left click
When would you want to check for armor?
like for the whole time smbd is wearing it, so like when equips and when dis equips
@EventHandler(
priority = EventPriority.HIGHEST
)
public final void onInventoryClose(InventoryCloseEvent e) {
System.out.println("Inventory " + e.getInventory());
if (e.getView().getTitle().equals(this.name.toLegacyText()) && !this.allowedToClose) {
this.open((Player)e.getPlayer());
} else {
this.destroy();
}
}
This prints even if I not close the inventory????
I always just check on click event for the armor slots
and a couple other events I think, been a while since I did that
do you have the script lying around maybe? :)
I lost a lot of my old projects but I'll look in a minute, sure
But I can't guarantee it's efficient lol
?jd
well i dont mind, if inefficient will refine
https://paste.md-5.net/dukutotuqo.java Even if I not close the inventory InventoryCloseEvent is called? "closing..." does never get printed, "inventory + name" prints every tick
how would i get fish and spawn the entity at my player location?
a
A fish would be an Entity correct?
๐คก
he blocked me on another server for the same shit
absolute clown
Don't worry, He has (probably) half the regular helpers in this channel blocked.
i'm scared as to how he'll survive in the real world
also he believes in strictly following every rule imaginable and reports people for any slight deviation
i've seen it happen and have been the target of it
Thats why he blocks you. You help him and tell him he has to read something or to learn more basic Java.
If he doesn't understand the tutorial and you won't just hand him code he blocks you.
dont mind him his choice to do whatever, not nice to talk stuff like this :(
nah he's constantly like this everywhere
I mean he already got kicked but as for as I am concerned he hasn't broken any rule whatsoever
good
Yep, not broken any rules
exactly and he never has
int i = Integer.parseInt(args[1]);
voteManager.addVote(player, i);``` Tried to use this but yeah doesn't work at all. Here is the error: https://paste.md-5.net/navonujasu.bash . Line 28 is `int i = Integer.parseInt(args[1]);`
and never will
well his choice, but you dont have to disparage him, uk
He will either learn or run out of people to ask.
Hi, Quick question:
Does anyone know how I can add an item created in another class to a player inventory? I created the item in the class so that it can be accessed from anywhere in the code.
I would think that it would somehow work with new item() but then I don't know anymore.
can somebody help me there?
Thank you in advance.
Its not disparaging if its honest facts.
he's gotten me muted for days on, multiple times, and constantly a pain in the ass so yes i will
๐คทโโ๏ธ
anyways i gtg sry for talking about it in here
You would need to show the class, but just the class itself would not be able to add to an Inventory. You need a getter to return an ItemStack
?paste
i mean sure, he might be rude, im not on his side i just wanted to calm down the tension
Oh theres no tension. Most of us just find it funny, and we still respond to his questions even though he has us muted.
lol
import java.awt.*; is the wrong import for Color
the price may not be counted in a conventional currency
but it is a price nonetheless
Yes, I would like to use this item in other classes and don't necessarily want to create it again and again.
and the price is that I get to point and laugh at you for being dumb
and disparage you if I feel like it
in return, you get your problems solved
Replace the import you have for awt, but you need to show your Item class
oh a colour import would have to be invalid anyway
ok
OK using that code you would use new Item().item() and add that to the players inventory
so I would have to store new Item().item() in a variable and then add that to player.getInventory().addItem(variable).
execute?
You could just use what I showed you and dispose of it once finished
Its not the best way, but the way you have written it it would do the job
player.getInventory().addItem(new Item().item());
ah so that's how you have to do it.
good Thank you very much :D
np, good luck
Also, again. How can I fix the following Maven issue? ```
puts backticks
message is 10x the limit
seems like an outdated compiler build ?
as it has trouble with java 16 module restrictions
oh it is the latest
huh
has anyone suggested to md5 that he allow clientside mods for spigot
you can do that
again, lol what
Shut up if you don't want to help
Spigot has no client side
youre not the boss of meee
that is some attitude my friend
It should be the latest compiler of Maven
Yes. I said that if you read up
Atleast the compiler plugin
Are you the chap from yesterday using Intelij?
tryna compile movecraft but it's not working? ๐ญ
that's rough man, i got all this stuff set up and now im finding out i can't do client side stuff ๐ฆ
i mean, im not gonna complain, im just sad i might have to switch over. hopefully i can just copy my world folders tho. i'll give it a go
switch over from what
spigot to forge
It depends on what mods. Some require no server component. Others are all Forge specific
tho I don't think it is particularly gonna fix it ๐
Sorry, but I think I could use some more help. I had now changed something in the code I sent you. instead of "item" I actually use "firewand" also as a method etc..
now my problem is that when I write player.getInventory().addItem(new Item().fireWand());, I get the error 'Item' is abstract cannot be instantiated at new Item
The item class/interface seems to be abstract
that was their maven version
not the compiler plugin
wrong Item
I was talking about the version of Maven itself
ok
im gonna give it a go. see if i can get my custom mod to run on my server somehow
Line 10, take static off
kek
that class is called FireWand
oh also yes, not Item class
uptime of ?
ok i have
67 days 9 hours 26 minutes 45 seconds
and use teh class name as you changed it to Firewand
shutdown at 69 days
no it's my windows 10 laptop
explorer crashed a few hours ago and I had to abort something because i was running out of physical memory
if not for the former I'd go for another few months
my secondary machine is at 122 days 3 hours 29 minutes 24 seconds
i don't even want to check my third machine
when i am going to add bedwars map where should i add them i use bungeecord
does anyone had a tutorial video
bungeecord is just a proxy
o.O
either add the map to your server and use a multi world plugin
or create a new server
and add that to your bungeecord proxy
A map has to run on a minecraft server
bungee is not a minecraft server
concerning you are in the spigot discord, you are running a spigot server
it's just a thing that tells the client to connect to a minecraft server
which is behind a bungeecord proxy
aka a backend server
spogot with bungeecord
yea
ik that
so you add your bedwars map to your spigot server
spogot moment
splรถgget
yes in the lobby server
Updated Maven, and still, it won't work
spocati
if you have multiple servers anyway, why not just create a new one ?
brb pls
you did clean install right ? eikrikh
my ram is low
Well, you then add the map to whatever server people play the map on o.O
real men manage their ram manually
I did
and also all other resources
well, I guess time to look at your entire maven pom ?
i'm constantly suspending and unsuspending individual threads on this low end machine because everything still takes juice even in the background
and also reallocating physical memory manually
the m sometimes look r and n L and i realised its one letter
Also, or some reason, despite setting MAVEN_HOME and M2 to 3.8.1 as well as changing location of MAven to the 3.8.1 directory, mvn -v still detect v3.6.3
at least I don't need to manage disk io since this is a ssd so it's no longer a bottleneck
idk if that variable actually matters too much
intellij bundles its own version of maven if that's what we're talking about
I have another question. I would like to program it so that when you right-click a blaze rod in your hand, you shoot a fireball in that direction.
So far I have already coded the following:
@EventHandler
public void handleFireWand(PlayerInteractEvent event) {
if(event.getItem() == null) return;
if(event.getItem().getType() != Material.BLAZE_ROD) return;
if(event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {
ItemStack FireStick = event.getItem();
if (FireStick.hasItemMeta()) {
if (FireStick.getItemMeta().getDisplayName().equals(ChatColor.stripColor(FireWand.FIRE_WAND_NAME))) {
Player player = event.getPlayer();
player.sendMessage("it works");
}
}
}
}
Would anyone have an idea how to implement this?
it is more about what comes first in your path
ItemStack Fire Stick = event.getItem(); what the fu-
lol
leeeeeearnnnn java
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
like, I don't think you even need MAVEN_HOME for mvn 3+ anymore. You just have the old version still on your system
and the "binary" for the old version is added further at the beginning of your PATH than the new one
Oops, that's from the translator. I actually have it there in German.
