#help-development
1 messages · Page 523 of 1
Bing your question before asking it:
https://www.bing.com/
gross
?ddg
?duckduckgo
Yahoo your question before asking it:
https://search.yahoo.com/
Terrible
wtf, has bing but no ddg
?edge
If you ask your questions in bing you deserve to only code your plugins in Kotlin
Google your question before asking it:
https://www.google.com/
Actual vomit tier
I swear we used to have ddg
I thought we did
whats ddg?
tf
i have a list of all commands 1s lol
Ah
Idk if they have an official name but the nice commands that are synced to your client
wait bungeecoord can use packets to access spigot servers without plyugin messaging?
thats basically what bungee does
No
ew 1.8
damn cause im stuck with this
Too old! (Click the link to get the exact time)
well hypixel uses it lol
listen I dont want to be a dick but that scoreboard is disgusting
not an argument
we have had this argument in the past
if hypixel uses it, it doesn't display it to 1.8 clients
^
I think they mean 1.8 not the rgb
If its commonly used in the spiggot or paper community in the modern day.
its probably a janky ass, poorly put together, and badly executed mess
because about 90% of our community's plugins are
owww
ah
I mean jesus christ the LandsPlugin is a certified, totally following spigot website standards, premimum plugin
and its held togethejr with ductape and dreams
and glitter glue
So is like
i hope you are at least running paper 1.8
90% of technology on earth
CoreProtect makes Yandere sim look tame in terms of if statements
well I am running paper 1.8 for my lobby servers and 1.12.2 for my survival
All the "high quality standards" are actually, in reality , piss poor
we are just to lazy to make our own from scratch
No
;c
Hi, I am getting an error when running my plugin.
https://pastecode.io/s/urtfhm0n
From what I have investigated it seems to be a problem in generating the config. But if I have compiled the plugin with the resources.
Maybe with a good modpack
Tbh at least the god damn tick issue isnt a thing in 1.12.2
But hell I can’t even swim on 1.12
anotehr classic case of rubber bands and glue
but would it be fine if I keep my lobby servers 1.8+
I mean I guess
all my servers only run latest now
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.file.FileConfiguration.save(java.io.File)" because "this.config" is null
debug why your config is null. it's not being initialized in the first place
just makes development so much easier not trying to deal with different versions
Just throw your lobby server on some weird fork that kills 90% of the games functionality
if you care about performance
throw minestom on your lobbies
minestom?
It’s a custom server software made from scratch
But contains basically no minecraft features ootb
much more performant because they strip out pretty much all thefeatures
does it support spigot plugins?
No
aint no way im doing that
Minestom is fun
well usually lobbys still have some plugins
who uses minestom
is your server public
improving game performance: 😴
improving lobby performance: 👁️ 👁️
Minestom ❤️
I currently run on Spigot, but the planned gamemodes to come out will be Minestom in the future and eventually everything besides survival will be on Minestom
LFMAO
my server runs on pterodactyl linux so i dont really need to worry about preformance
lmao
Have you tried porting the lobby to doom
my dad would play every day
not that either of those things say anything about performance, lol
Doom runs on everything so it must be fast
solution?
debug why your config is null. it's not being initialized in the first place
i told you
ok
Ngl though... porting your 1.1.12 Snapshot 42ab1F server lobby from 1.19.2 to an Arma 3 battle royalle modded game would probably be easier than trying to add a player to a specific area in a land within the lands plugin API.
"if you really care about preformance you should try touching grass"
You fucking joke, but i came up with "chronicle" when i legit took a break from coding
the universe's processing power is insane
If your server can’t run on an Atari 2600
Once again you joke but ur not wrong
I don’t want to see it
Newton and the apple, the Eureka bathtub man (forget his name)
Fuck me we all didnt die from dystentry because Alexander flemming left his petri dish out too long by accident
and discovered penicillin
Our entire society literally was built on "oops... oh actually holy shit wow this is cool"
moments
See: creeper
No porting doom to lobby is more fun 
https://media.discordapp.net/attachments/706186241288306798/1034245574733602856/2022-10-25_00-20-10.mp4
Still think my fave one is Nasa fixing the SaturnV rocket engine's stability problem by randomly changing the shape of the holes of an injector plate till the problem was solved and, after 30 blown up engines, they actually did it.
The problem? They still dont fucking know to this day
LMFAOO
that is peak engineering
Reminds me of that one stardew valley mod
we've literally just screwed around till stuff stuck
Christ nuclear power plants? Yeah we get atoms to rip emsevles apart....
To heat up water till the funni steam makes blades go brt... the blades are attatched to a big metal rod with magnets on.... that go bzzzz
Thats it
like no bs
thats all electricity is
make funny shaft go spin
shaft has magnets on
boom
We sitll have not evolved away from "me make zap zap by making pole go spin spin"
How do I get the itemstack of a dropped item?``` public void suction() {
Inventory inv = ((org.bukkit.block.Hopper) this.block.getState()).getInventory();
Location location = this.getBlock().getLocation(); int radius = 8;
Location pos1 = new Location(location.getWorld(), location.getX()-radius, location.getY()-radius, location.getZ()-radius);
Location pos2 = new Location(location.getWorld(), location.getX()+radius, location.getY()+radius, location.getZ()+radius);
BoundingBox box = new BoundingBox(pos1.getX(), pos1.getY(), pos1.getZ(), pos2.getX(), pos2.getY(), pos2.getZ());
for(Entity entity : location.getWorld().getNearbyEntities(box)) {
if( !entity.getType().equals(EntityType.DROPPED_ITEM) ) { continue; }
}
}```
Item.getItemStack
Item being the entity class for a dropped item
Well technically interface but whatever
ive never actually used a hopper inventory
Also... jesus chrsit my man those coordinates are cursed
its because of the nether
i dont care if its satan's left armpit
lmfao
You make a new location object or something
ur -radius and +radius
3 times over twice
There's got to be a better way xD
Ya want core protect base code?
Thats how u get core protect base code
wtf is a core protect
You can make a bounding box with just a single location and 3 doubles
It is the most well known and used logging plugin in the community
very well respected and utilised by almost every server
do you recommend it?
This is its base code...
Hey if it’s stupid and it works
I love this communityI love this communityI love this communityI love this communityI love this communityI love this community
Then it’s still stupid but it works
There is a certain fallacy to this.
I cant remember the name of the sub-reddit
and will not spread it here of all palces
but
Go find the reddits about dupes and cheating
`1
2
3
4
`
and you'll realise jsut how much it doesnt work
The issue with poorly made logging plugins... is you have no idea if its shit as the cheaters are getting around your logging plugin
cant the noobs just hopper the chests?
Sure but it’ll log that too
how?
The one thing our community has not considered yet is we only ever catch the idiots who get caught
Wdym how
how can you tel if something has been stolen?
Just listen for the hopper event and log it
Ive met folk who, I shit you not... have mined 1 million coal ore in a week via exploit and it wasnt caught as he wasnt an idiot and hasnt tried selling it all in one go
I shit you not 0 cap
I thought we were talking about coreprotect
1 mil
they have an api?
Not a protection plugin
heh
ohh
shush
bad
Oh no
ig
im guessing everything in the api is in the base plugin
Core protect logs commands, chats, blocks, events, inventory shit
And THEIR FUCKIN API ONLY HAS BLOCK LOOKUPS ARHKGb;isghaodghiad[#'gi0ds'ghasdsz
im okay..
im fine...
I just wanted to add functionality to search for key phrases in commands logged
😦
But nooooo
i wish I can combine all of the plugins on my server into one big jar
because to add new functionality ot the CP api u gotta pour 7 litres of mountain dew onto your mechanical keyboard and sing songs of praise to the great god Notchthulu
Why
me
Big brain move, put all your code onto one line, you'll always know where everything is
ill forget all about it the next day XD
Yeah hang on let me go draft a spigot PR to put everything in one class
ima keep sending that image everytime I laugh
Oh yeah and recode it in kotlin
cause clearly its the best ever
I still dont know why. folk have started to use kotlin though ngl
Stop spamming
just like... what a weird curveball
sowwy
No no Ethan
Look ive seen folk post 20 screenies in a row
of spaget
you are entitled to a few laughy minoon lads
Conclure sleep 🔫
im about to send the minion
Don’t encourage behavior that clearly breaks rules
My guy if folk were complaining about spam i'd see ur point. The kid was having a bit of a laugh.
I’m not joking around
oh cmon conclure we're just havin fun
Clearly, cause Ethan has stopped laughing. If it was funny it'd cleary be a joke
Done. That felt good.
Are you serious...
christ
Tell the janky ass javascript that pinged you about the spam to chill conclure.
?kick
*javascript bot
kick Ethan
See now youve stopped him laughing, Ethan is having to entertain himself with more complex discord features. He's gonna hurt his wee little brain box
Common helper L
uh oh your about to get the kick
Why are you encouraging him to “have fun” as in continuing spamming gifs?
its the way I laugh sir
?info
md_5#0
Yes, 3.5.2 is available.
This bot is an instance of Red, an open source Discord bot created by Twentysix and improved by many.
Red is backed by a passionate community who contributes and creates content for everyone to enjoy. Join us today and help us improve!
(c) Cog Creators
Wild take, you notice how the chat has completely died since you punished the nasty spammer lad?
That’s irrelevant, the channel has a clear topic, and should stay pertinent to that
Make us a developer general chat and maybe this wouldn't happen.
conclure can I send one more gif and ill stop
Just use #general ?
No I’ve not once gotten that request
yay so I can?
thats a dumb Idea lol
My brother in christ dont make me go thorugh the logs
Ive literally asked you
that request
Please link that
As a member of the discord i'd like some help with something please conclure actually
Could you, as a helper, help me find the logs where i asked youa bout dev chat? :L
well is anybody gonna help?
Just checked you never directly ask conclure for it
He is timeout’d for now, but yes I checked as well, additionally I have proposed it in staff chat before fyi
You want to program HTML, I can send you a playlist that will teach you how to program HTML. But I not teaching you as this is a Spigot server
I mean general programming advice is fine, just that its not the norm in this channel I suppose
I try to keep this channel for its purpose. Wait, I just read the topic and it shows for any development questions
:)
You removed his message?
Just a gif
I was going to send him this but I not going to worry about it, I don't know if he wanted to do that anyways
@young knoll dog
hi
so i have this code
https://paste.ethannetwork.net/jucemozobu.java
but it dont work
it dont give error
Wait, you that person that trying to fix worldedit?
Wait, he is the one that wrote the code?
so many unverifieds o.o
Just let him be for right now I guess
!verify
Usage: !verify <forums username>
This account is already verified!
it didnt work
!verify guy1
Could not find your SpigotMC.org account!
what?
you don't have an account on the spigotmc site?
i do!
then use that name here with that command
and it will send you a message on the website to verify 😄
A private message has been sent to your SpigotMC.org account for verification!
yay
and there is another channel available to chat in as well
its like a second general chat
ok but can u solve the problom?
a
make sure to import the player object
how
but it seems you need to also learn a bit more too
if you are using spigot api its if(sender instanceof Player) { Player player = (Player) sender;
and if you are using paper then you can define it right in the if statement
?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.
here is some resources to help you out in learning some java to understand 🙂
o.O
I am not sure what is telling you virus found but the spigot api and related stuff as well as the links above shouldn't contain viruses
well that should have fixed the problem with Player player thing
other then that not sure what else your issue is
how to compile
you really need to learn java then if you don't know how to do that
that is fine, but you are also not entitled to help either just because you ask for it. If you are not going to make the effort to learn and progress the others are less inclined to further help you to even include myself
ethan wouldve helpd me ;C
this is a community after all, not some help service that does stuff for you
that is their choice they are free to make
we are all volunteers here
Hi, im having problems with my plugin.
https://pastecode.io/s/jxix3xbp
I have tried everything up to a debug but it doesn't work.
java.lang.IllegalArgumentException: File cannot be null
your file is null
is it being called?
it says whats the problem right away
send us the code so we can further debug it
you are calling save config before it is loaded
this is why as the file does not exist
happens to all of us
yeah its my first plugin
Thats work? https://pastecode.io/s/863in83h
just asking but why do you want to save it on plugin enable?
Did not work
How can i import the bstat graph to my plugin page
java.lang.IllegalArgumentException: The embedded resource 'messages.yml' cannot be found in plugins\TConversations.jar
Now messages.yml is not generated
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.file.FileConfiguration.save(java.io.File)" because "ToddsConversations.messagesConfig" is null
This error occurs during the disabling process when the code attempts to save the "messagesConfig" file, but it is null, resulting in a NullPointerException.
surround it with a try statement
i have the config in the resources.
messages too?
yes
we mean the resource on the server
will it still be fine to use material == after the un-enuming
so its fine to use it now
correct
awesome
They'll still be the same instance so yeah
hi choco
chill
yea i assumed so
Anything pulled from a Registry should be referentially comparable
oh well i guess we won't be using material anyways
mhmm
Well you don't have to if you compile against 1.19.4 API
But yeah, source-level break in 1.20
or rather
we should
to avoid server operators enabling the compatibility option
and slowing down their server
choco do you think mc developers are gonna remove humanentity?
and there's a reason we're switching
seems kind of useless
VeinMiner will be dropping 1.17 - 1.19.4 support as well
Did not work
im asking is there any files on the server
plugins\yourplugin\stuff
no
Is it even coming in 1.20 still
ok, but why
hopefully
line 87
if (!configFile.exists()) {
configFile.getParentFile().mkdirs();
saveResource("config.yml", false);
}
change the false to a true
oh also dont use .getParentFile just use .mkdirs
Yeah but some changes have been made
Idk if they have been reviewed much yet
Not directly code related, but what would be a good way to design a RGB selector in minecraft
Can’t have a nice colour wheel or sliders, not without at least a resource pack anyway
Did not work https://pastecode.io/s/0cdv0jgf
java.lang.IllegalArgumentException: The embedded resource 'messages.yml' cannot be found in plugins\TConversations.jar
here my code https://pastecode.io/s/fpi0r114
quick question
Reader defaultMessagesReader = new InputStreamReader(getResource("messages.yml"), StandardCharsets.UTF_8);
why are you using a reader? yml has a default reader
the error is happening in loadMessagesConfig
This is how I learned
(the class)
okay ill explain this briefly
FileConfiguration defaultMessagesConfig = YamlConfiguration.loadConfiguration(defaultMessagesReader);
change that to
FileConfiguration defaultMessagesConfig = YamlConfiguration.loadConfiguration(messagesFile);
remove // Load default messages from the resource file
Reader defaultMessagesReader = new InputStreamReader(getResource("messages.yml"), StandardCharsets.UTF_8);
and it should work
if it doesnt i dont know
` private void loadMessagesConfig() {
messagesFile = new File(getDataFolder(), "messages.yml");
if (!messagesFile.exists()) {
mkdirs(getDataFolder()); // Crear las carpetas si no existen
saveResource("messages.yml", false);
}
messagesConfig = YamlConfiguration.loadConfiguration(messagesFile);
FileConfiguration defaultMessagesConfig = YamlConfiguration.loadConfiguration(messagesFile);
messagesConfig.setDefaults(defaultMessagesConfig);
messagesConfig.options().copyDefaults(true);
}
`
Like that
yes
wait
no
FileConfiguration defaultMessagesConfig = YamlConfiguration.loadConfiguration(plugin.getDataFolder.something("messagesfile.yml"));
fix everything in the bold
` private void loadMessagesConfig() {
messagesFile = new File(getDataFolder(), "messages.yml");
if (!messagesFile.exists()) {
mkdirs(getDataFolder()); // Crear las carpetas si no existen
saveResource("messages.yml", false);
}
messagesConfig = YamlConfiguration.loadConfiguration(messagesFile);
FileConfiguration defaultMessagesConfig = YamlConfiguration.loadConfiguration(plugin.getDataFolder.something("messagesfile.yml"));
messagesConfig.setDefaults(defaultMessagesConfig);
messagesConfig.options().copyDefaults(true);
}`
yk what
Dude, what?
private void loadMessagesConfig() {
messagesFile = new File(getDataFolder(), "messages.yml");
if (!messagesFile.exists()) {
mkdirs(getDataFolder()); // Crear las carpetas si no existen
saveResource("messages.yml", false);
}
}
thats all you need
That does not do anything besides saving it
Dont work
error?
Here‘s a proper custom configuration class https://github.com/JEFF-Media-GbR/JeffLib/blob/master/core/src/main/java/com/jeff_media/jefflib/data/Config.java
Looks like the messages.yml isn't included in your jar
Any idea why this is happening?
nope
Are you using maven?
That's inside the resources folder of the jar
Not the root
what is it
yes, it's supposed to go there.
Hey so I have a development api that has a few things shadowed into it (like item-nbt-api) and when building projects using the api I need to add the repo link for all the stuff thats already shadowed into the api I get the following
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
> Could not find de.tr7zw:item-nbt-api:2.11.2.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/de/tr7zw/item-nbt-api/2.11.2/item-nbt-api-2.11.2.pom
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/de/tr7zw/item-nbt-api/2.11.2/item-nbt-api-2.11.2.pom
- https://repo.jadeisacutie.com/releases/de/tr7zw/item-nbt-api/2.11.2/item-nbt-api-2.11.2.pom
Required by:
project : > dev.selena.glitchmc:GlitchAPI:1.0.0
> Could not find com.mojang:authlib:2.3.31.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/mojang/authlib/2.3.31/authlib-2.3.31.pom
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/com/mojang/authlib/2.3.31/authlib-2.3.31.pom
- https://repo.jadeisacutie.com/releases/com/mojang/authlib/2.3.31/authlib-2.3.31.pom
Required by:
project : > dev.selena.glitchmc:GlitchAPI:1.0.0
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Just to reiterate, de.tr7zw:item-nbt-api is compiled into dev.selena.glitchmc:GlitchAPI
any idea what I could do? I dont want to have to add repositories to my gradle when I already have them assessable in the API Jar file
If it's compiled into another dependency then it shouldn't be its own dependency
No idea what gradle does with shadowed depends though
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'dev.selena.glitchmc'
version '2.0-SNAPSHOT'
defaultTasks 'build'
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url = "https://repo.jadeisacutie.com/releases"
}
maven { // item nbt repo to test if it gets rid of error, does indeed
name = "CodeMC"
url = uri("https://repo.codemc.io/repository/maven-public/")
}
maven {
url = "https://repo.jadeisacutie.com/private"
credentials {
username GlitchMCUsername
password GlitchMCPassword
}
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT'
implementation 'dev.selena.glitchmc:GlitchAPI:1.0.0'
implementation "dev.selena.glitch:Hordes-1.8:2.0-SNAPSHOT"
}
build {
dependsOn shadowJar
}
shadowJar {
dependsOn(jar)
if (System.getenv("BUILD_NUMBER") == null) {
archiveName = rootProject.name + "-" + version + ".jar"
} else {
archiveName = rootProject.name + "-" + version + "-b" + System.getenv("BUILD_NUMBER") + ".jar"
}
dependencies {
include(dependency('dev.selena.glitchmc:GlitchAPI'))
}
zip64 true
subprojects.each { subproject ->
from subproject.sourceSets.main.output.classesDirs
from subproject.sourceSets.main.output.resourcesDir
}
configurations = [project.configurations.getByName("runtimeClasspath")]
}
If that helps
so thats the one using the development API
https://paste.ethannetwork.net/epalukobiy.swift
version: 1.0.2
[01:16:56] [Server thread/INFO]: EthanGarey issued server command: /betterinventorymanager reload
[01:16:56] [Server thread/INFO]: Version updated! New version is 1.0.2!
Anybody know why this is happening?
COMMAND
@Override public boolean onCommand(CommandSender sender, Command command, String arg, String[] args) { if (args[0].equals("reload")) { aStatic.checkForConfig(plugin); sender.sendMessage(ChatColor.RED + "Successfully reloaded!"); } return true; }
MAIN
Static aStatic = new Static(); @Override public void onEnable() { aStatic.enable(this); new MainCMD(this); }
line 28-31 is the problom but idk why
nvm I fixed it, I had to replace getDefaultsection with getDefaults
okay so now I just know something is up
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find net.md-5:bungeecord-chat:1.8-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
- https://repo.jadeisacutie.com/releases/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://repo.jadeisacutie.com/releases/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
- https://repo.codemc.io/repository/maven-public/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://repo.codemc.io/repository/maven-public/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
- https://libraries.minecraft.net/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://libraries.minecraft.net/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
- https://repo.jadeisacutie.com/private/net/md-5/bungeecord-chat/1.8-SNAPSHOT/maven-metadata.xml
- https://repo.jadeisacutie.com/private/net/md-5/bungeecord-chat/1.8-SNAPSHOT/bungeecord-chat-1.8-SNAPSHOT.pom
Required by:
project : > org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT:20160221.082514-43
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Could not find net.md-5:bungeecord-chat:1.8-SNAPSHOT.
Required by:
project : > org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT:20160221.082514-43
Imma try delete my gradle cache
(Note I do have the spigot nexus in my repositories obviously)
its not thats what I am saying
`ItemStack gsgp = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7);
ItemMeta gsgpmeta = gsgp.getItemMeta();
gsgpmeta.setDisplayName(String.valueOf(ChatColor.RESET));
gsgp.setItemMeta(gsgpmeta);
for (int i = 0; i < 10; i++) {
inventory.setItem(i, gsgp);
}
inventory.setItem(17, gsgp);
inventory.setItem(18, gsgp);
inventory.setItem(26, gsgp);
inventory.setItem(27, gsgp);
for (int i = 35; i < 45; i++) {
inventory.setItem(i, gsgp);}`
any way to compact this?
guessing thats a filler item?
i figured it out nvm lol
`ItemStack gsgp = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7);
ItemMeta gsgpmeta = gsgp.getItemMeta();
gsgpmeta.setDisplayName(String.valueOf(ChatColor.RESET));
gsgp.setItemMeta(gsgpmeta);
int[] slots = {0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44};
for (int slot : slots) {
inventory.setItem(slot, gsgp);
}`
sure...
unless it can be better
are there any empty slots left after doing this?
I see
ye I guess that works then there is probably a better way but hey that works lol
oh god
there's a way to do this mathemathicall
`ItemStack gsgp = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7);
ItemMeta gsgpmeta = gsgp.getItemMeta();
gsgpmeta.setDisplayName(String.valueOf(ChatColor.RESET));
gsgp.setItemMeta(gsgpmeta);
int size = inventory.getSize();
int rows = size / 9;
for (int slot = 0; slot < size; slot++) {
int row = slot / 9;
if (row == 0 || row == rows - 1 || slot % 9 == 0 || slot % 9 == 8) {
inventory.setItem(slot, gsgp);
}
}`
i lied im good at math
Im so confused
this gave me this
so me epic
`ItemStack grayStainedGlass = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 7);
ItemStack blackStainedGlass = new ItemStack(Material.STAINED_GLASS_PANE, 1, (short) 15);
ItemMeta grayMeta = grayStainedGlass.getItemMeta();
grayMeta.setDisplayName(String.valueOf(ChatColor.RESET));
grayStainedGlass.setItemMeta(grayMeta);
ItemMeta blackMeta = blackStainedGlass.getItemMeta();
blackMeta.setDisplayName(String.valueOf(ChatColor.RESET));
blackStainedGlass.setItemMeta(blackMeta);
int size = inventory.getSize();
int rows = size / 9;
for (int slot = 0; slot < size; slot++) {
int row = slot / 9;
if (row == 0 || row == rows - 1 || slot % 9 == 0 || slot % 9 == 8) {
inventory.setItem(slot, grayStainedGlass);
} else if (row % 2 == 0 && slot % 2 == 1) {
inventory.setItem(slot, blackStainedGlass);
}
}`
Updated the code for black stained glass pane
ah shoot it didnt work
im trying to make it every other
wait I read way too fast XD
else if is not the right way to go here
slot % 9 == 0 || slot % 9 == 8
that will make it that all the 0th and 8th slots on the row will be white
like
the way you're doing this is very manual
and if you want another menu you gotta like copypaste that stuff
Write some common code that you can apply to all menus
the gray stained glass panes is the framework
anyone got an idea why gradle is packing a fit all of a sudden?
you're literally hardcoding an item in a menu engine then
it saw you trying to code on 1.8 and decided to stop you right there
you should try maven
...
no

by far no
gradle too hard
gradle way way better
maybe if you understood like 2 things about grdle
gradle isn't actually too hard
you'd realize that it also wouldn't work on maven
because gradle works on maven repos too?
I'm losing braincells wait
all you need for basic stuff is
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT'
}
``` and bam run the gradle build script
than why is is not working?
and the auto generated stuff edited to your likings
for you or I?
you
show me your repositories block
nvm I'm blind
um
remove the /snapshots
it's on public
repositories {
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url "https://maven.enginehub.org/repo/"
}
maven {
name = "CodeMC"
url = uri("https://repo.codemc.io/repository/maven-public/")
}
maven { url "https://maven.enginehub.org/repo/" }
maven {
url "https://repo.jadeisacutie.com/releases"
}
maven {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
}
troll
well that fixed that but now this?
haha
mans using movavi
oop wrong project
im using movavi
maybe it didnt work one second
item-nbt-api is uhh
in jitpack
ik but its shadowed into my development API
graven more like graveyard
this mf seriously a clown
🤡
that's my job not his
zack is 9
anyone think this is efficent?
if (configyaml.get("version") != plugin.getConfig().getDefaults().get("version")) { configyaml.set("version", plugin.getConfig().getDefaults().get("version")); Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "Version updated! New version is " + plugin.getConfig().get("version") + "!"); }
woo man screnshat
okay so if I remove
maven { // item nbt repo to test if it gets rid of error, does indeed
name = "CodeMC"
url = uri("https://repo.codemc.io/repository/maven-public/")
}
I get the error again aaa why its a part of dev.selena.glitchmc:GlitchAPI:1.0.1 It exists there
jitpack..
tf is this oml
its epic version checker
could you elaborate? I have less braincells than a hamsters
jitpack's the repo where item-nbt-api's hosted at
I love how you have a class called static but still instance it for a utility method
"STATIC ABOOSEEE"
would be fine
pretty much
me at work
it's ass
lmfao
people call it shitpack
just use intellijs github thingy
are you legally braincell deficient
yes
pretty much what I did
also I found a way to get intellij for free
the ultiamte one
ultimate
thanks 😄
na you just gotta make multible google accounts
start free trials
every 30 days you do it
delete the google account right after you start the trial
or you can just stick with the community edition for free ?
guess im your homie
been using intellij community for like 6 years now and it's still solid
know your place
Could not determine the dependencies of task ':shadowJar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
> Could not find de.tr7zw:functional-annotations:0.1-SNAPSHOT.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
- https://maven.enginehub.org/repo/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://maven.enginehub.org/repo/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
- https://jitpack.io/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://jitpack.io/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
- https://hub.spigotmc.org/nexus/content/repositories/public/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://hub.spigotmc.org/nexus/content/repositories/public/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
- https://repo.extendedclip.com/content/repositories/placeholderapi/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://repo.extendedclip.com/content/repositories/placeholderapi/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
- https://libraries.minecraft.net/de/tr7zw/functional-annotations/0.1-SNAPSHOT/maven-metadata.xml
- https://libraries.minecraft.net/de/tr7zw/functional-annotations/0.1-SNAPSHOT/functional-annotations-0.1-SNAPSHOT.pom
Required by:
project : > com.github.tr7zw:Item-NBT-API:2.11.2 > com.github.tr7zw.Item-NBT-API:item-nbt-api:2.11.2
(This is when I tried to change it in the development api, worked fine with the codemc.io one)
?paste plz
and their github wiki says to use that
wait is the issue that I am meant to add the mirrors into my maven repo registry?
int intelligence = 1000;
for (int i = 0; i < 1000; i--) {
intelligence--;
}
well no
yes
it goes below 0
to the integer limt
ohwait
its not infinite
lmfao
just till it gets to -2147483648 then 1 more and bam its 2147483647

omfl I had to add the mirror links for the other repos in the API thats why I was needing to add them in the projects using the development api
i
FileConfiguration config = getConfig();
int loopCount = 0;
if (config.contains("loopCount")) {
loopCount = config.get("loopCount");
}
while (true) {
loopCount++;
config.set("loopCount", loopCount);
saveConfig();
}
will this go on forever?
so it can go past the long limit?
that's the equivalent of being a clown and like
basically you're IO bound
but yeah this gives me similar vibes to like
🤡
yeah so your ide's basically saying you're a dumbass
damn
I'm honestly not sure why you're trying to make spigot plugins in the first place, you'd have much more success at the comedy club
im running it
ITS UPDATING REAL TIME
dude uses vscode for .yml files I'm officially lost
really slow though
?
make it a bit more effcient
multithread?
change your uhh
saveConfig
to new Thread(this::saveConfig).start()
it'll be faster
trust me bro fizzicks
yeah give it some time to gc
`long loopCount = 0;
new Thread(this::saveConfig).start();
while (true) {
loopCount++;
getConfig().set("loopcount", loopCount);
saveConfig();
}
`
ohh
`while (true) {
loopCount++;
getConfig().set("loopcount", loopCount);
new Thread(this::saveConfig).start();
}`
bet
so what is it
show the line 471
this line 471 player.setMetadata ("Starttrue", new FixedMetadataValue( this, uuid));
still was sending lol
something tells me you have an outdated jar
its going much faster now
something also tells me you need to learn java if you have a single command class with 471 lines
1000 per second
pull up task manager
a) stop using metadata, b) im guessing this should be a plugin instance and an instance of that class isnt one
hell nah
I have like 2$ to my name can I buy it
it would be a great addition to my portfolio
metadata is good for now, i think this make it plugin insance? (Plugin) this
bruh
Caused by: java.lang.NoSuchMethodError: 'dev.selena.items.ItemMapperBuilder dev.selena.items.ItemMapperBuilder.skullTexture(java.lang.String)'
so I opened it with JDGui to make sure it was adding it and its right there
wtfs wrong with VSC 
no
?di
Guide to dependency injection: https://www.spigotmc.org/wiki/using-dependency-injection/
damn it was making my pc too slow i had to stop it
use pdc tho
weak
lets see you run the plugin lmfao
huh so i do this.plugin = plugin and write plugin insted of this??
?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.
Then don't get it
I'm not gonna go over this again
0 help
so learn java
ah
jetbrains academy
i not gonna learn all java for 1 line of code damn
just something
you dont need to learn all of java
yet you come here and ask for help for everything
ah
thats insane
i just used google
You don't become an expert overnight but learning the basics sure helps
Good luck being an electrician if you just see funny number going up instead of actually understanding what volts, amperage and resistance is
I understood basic programming concepts so I did learn java by making plugins but like
It did stall my progress
haha
I Don't know insanse thingy this not mean i don't know basics of java it only 1 thing ☠️
Still
you've asked for help with stupid issues so many times over the past week
?basics
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.
is this a better command for you
nope
?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. https://media.discordapp.net/attachments/694661573125472256/998143126373941248/6n0v4g.gif
leave me alone
It's like going trying to become a pastry chef and not knowing what flour is
what was that one command with a website on not to spoonfeed?
no we just arent gonna teach you the basics and spoonfeed you all the code
?spoon
Spoonfeed a newbie for a day and they'll come back with more questions. Teach them to find their own answers and you'll both be better off: you won't get stuck answering the easy questions and they'll be much more productive than before.
The gist:
Spoon-feeding is NOT helping. It robs a person of the process of solving a problem by working through it, which is not only fun but is also a crucial skill to learn. Problem solving is much harder to learn than memorizing syntax. Even if a person looks through the syntax you provide, you’ve taken away the chance to practice problem so...
?cba Epic
pixie#0420 definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.
hmm
pixie#0420 definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.
wtf
ebic#5512 definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.
?cba
guy2#2591 definitely regrets to for the most part inform you that unfortunately, they essentially are unable to definitely assist with definitely your enquiry, which essentially is fairly significant. Please simply really ask again later or possibly kind of ask someone else about this enquiry, demonstrating that the person that ran this command generally regrets to kind of inform you that unfortunately, they for the most part are unable to generally assist with actually your enquiry in a subtle way. Thank you very sort of much for kind of your time and the person that ran this command specifically wishes you a really good day, so the person that ran this command really regrets to actually inform you that unfortunately, they literally are unable to definitely assist with very your enquiry, or so they particularly thought.
i though i could pass a user into it
lol
damn stop ping
holly shit its 2:50 am
i tryeid
had so much fun guys but gtg; cya!! 🤡
and i only understand it on line 471
I hope you never come back
rip
if you read two lines up, you see ClassCastException, hmmmm i wonder what that means
what is classcast exepction
It’s in the word.
do you not even know what casting is
ah
time to make a full series of java basic tutorials
put it in the search index
put all the messages in a bin
and just giving someone a 6 hour read
watch 4 before
watch 4 more
that will now be our reaction for u asking for basic help then
it change from like small to big like int to long smth like that
ah
agree
I'm not here to help people in denial
2 types of casting
spell casting
but i can't remeber
damn
For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.
you could just help me insted say learn java
we dont get paid to help
Spoonfeed a newbie for a day and they'll come back with more questions. Teach them to find their own answers and you'll both be better off: you won't get stuck answering the easy questions and they'll be much more productive than before.
fuck me
we arent gonna spend our time teaching you
ah
I'm not your personal babysitter
I'm not your personal teacher
We're here to help, we're not here to like fuckin
then ignore me 💀
damn
spoon feed a baby
some other people will help
We're here to aid when google can't basically
but we won't code half your plugin for you
i will for the low low price of $100
next time ask your shit to chatgpt
time use bing Ai to fix errors
not supported in egypt sadly
dont worry atleast one of us will be here all today to warn othersof you
vpn
that shits region locked? wtf
warn about what
I'm here all day writing minigames with discord on my 3rd monitor
you refusing to learn java
you've asked for a litty small error way too many times?
i now need code
our problem isn't that
its basic java, if you are even refuse to learn that we arent helping
not rewatch all 99 java video
our problem is that you've asked for the stupidest errors
just read baeldung
eh then don't help me 💀
damn
ignore me 💀
never asked you guys help me
damnnn
ight blocking you now
nice
that was good
trol
wat
oh you can't change A Class to An Object 💀 just tell me that insted of all this 💀
no you cant cast a class into another class that it isnt
oh
ok was near
never ask to help me 💀
nice
or just help me to get the error to every time never aske here what error mean
i will understand
open google
imgaine you give person math test without study ☠️
and type 'spigot how to read stacktraces'
So study?
imagine you tell the person to learn math instead of helping with that one exercise all the time
Which is what you're refusing to do
just block and move on
rip
not worth my time to argue with a bumbling fool
diff between learn java and help
No that's not what studying is. Studying is learning not getting someone to do your homework for you
an error not need learn java 💀
Studying isn't to learn whole java for error
like you make mistake
teacher explain
not tell you slove by your self
damn

um
we arent your teacher
this
90% of errors you get you can understand by learning java
then don't tell me learn java 💀
what
bedwor
how is us telling you to learn java make us ur teacher
o
💀
ah i aready know enough
no you dont
maybe i couldn't get the problem from the error?
guys we should regroup and try a different strat
maybe this the prioblem?
maybe not learning java is the problem>?
"ClassCastException" hmmm idk what casting is i should google it
Still not help