#development
1 messages · Page 82 of 1
Not sure if you edited it before sending but the flatDir is not being closed, which will mess up the entire file
I did edit it
I removed something, I’m on my phone now. Before on my pc it was different so I had to edit it on my phone.
For every maven there it says “unresolved reference.” When trying to build.
Unresolved reference is referring to the maven method, not the link you're passing to it, so that syntax error I pointed out could be the cause of it
Alright, I appreciate the help. I gotta go for now tho so I’ll try when I’m back and report back the results. Thank you
You also have two tasks blocks, and it looks like some extra squiggly brackets at the bottom, but that might be related to your removal
Appreciate the advice/help
Hello, I'm using a framework here, and I'd like to know if I'm doing it right, I believe so, but maybe I'm doing it wrong
pom.xml: https://pastebin.com/qx3wmPxf
The problem I'm facing is that when pulling the method to open the menu, it doesn't open, nor does it give any error, so I'd like to know if I didn't do something wrong in the maven configuration
Is there documentation or anything for me to setup a local repository? I feel as though that is part of the reason because I removed a Val in my kotlin gradle for a repo that no longer exists. It was referenced multiple times in the original build.gradle.kts
Still same errors
Will be very hard if you don't show the unaltered script, but anyways, make sure there is no syntax error, surely your IDE tells you what is wrong
If that doesn't work try updating your Kotlin version or something
I have fixed it. Only one error now. file:///C:/Users/TTVSi/IdeaProjects/Cubed/build.gradle.kts:75:28: Unresolved reference: myVersion
That's not on the paste you sent, so no idea 
You don't declare that variable anywhere, you're probably looking for version instead
Or project.version
Depends on what you intend to do with it, if it's just project.version then no not really
Unfortunately project.version is now throwing a different error.
What error?
None of the following functions can be called with the arguments supplied: public abstract fun set(value: String?): Unit defined in org.gradle.api.provider.Property public abstract fun set(provider: Provider<out String!>!): Unit defined in org.gradle.api.provider.Property
I am going to val myVersion for the variable, see if it likes that more.
Fixed it
It's building 😄
Nice
Thank you for the help. Addding just the variable fixed it.
`val myVersion = "1.0.0"
named<ShadowJar>("shadowJar") {
archiveBaseName.set("PrisonAPI")
archiveClassifier.set("shadowed")
archiveVersion.set(myVersion)
mergeServiceFiles()
}`
As simple as that
The issue was that it needed a string, so you'd have to do project.version.toString() if you wanted to use the project version, but if that works that's good
Nvm now it's throwing repo errors during the building. This is going to be fun.
Could not find com.sk89q.worldedit:worldedit-bukkit:6.1.9.
How is it not able to find WE?
That version probably doesn't exist
Rip. server is 1.12.2
Indeed it does not exist. Maybe removed? I could just implement 6.1.4 instead?
Can you tell me if my gradle settings are set correctly? They might be set wrong.
Gradle JVM: Coretto-1.8
Looks right at a glance, are you getting an error?
Error for JVM?
Any error I guess? Why are you asking if it's correct? Is there an issue?
I was just curious if that could be a reason for my build errors.
What are the errors
A lot 😂
I don't know how to upload errors to paste
Same way you did Here, copy paste
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
I don't know to copy whole gradle error log.
you select it?
Ctrl+A
Afonso has a crush on me, so if it seems like they're talking over me it's because he's in love.
Fixed the rest
Cubed:main: Could not find com.destroystokyo.paper:paper:1.12.2-R0.1-SNAPSHOT
Last error
That's latest
is that even the actual repo?
I can't seem to find it
appears to be gone
Because minecraft 1.20 is trash?
💀
how
1.20.5/1.21 are literally the best updates in years, specially regarding development and performance
Being a server owner? 1.8 is the best version there is. Pvp etc. I have even talked to massive devs in comm and they said that 1.20 and such has horrible exploits. It's called via version? Like no point in converting my entire core to be 1.20...
uh
yeah I won't have this conversation again
too busy to do it
I will just yeet myself out of this channel
I saw one where you could use whisper to track a player down, was very cool
Dupe glitches on hypixel, etc. Dev created a script to do so.
I mean you're just silly
Or you can explain how 1.8 isn't the best version to run a server on? It 100% is
PVP on 1.20? Comedic
Bro, I know the type of person you are, just from this simple message, and one thing I have learned is that having conversations about this specific topic with people like you, brings nothing, so, don't ping me, and bye.
Just made it like 1.8 combat then
You're over here dogging on me for using 1.8. You started it homie. You're just gonna play the victim tho ig. Have a good one!
I already had said I was gonna leave and you keep pinging me wanting to poke the bear.
You came here for help, I help IF I want to.
Afonso, you dogged on me for using 1.8... Stop playing the victim. I said nothing to you prior to that lil bro.
Afonso just has a crush on us
I'd laugh but that's me
I did laugh
You remind me of that zodd guy, anyways, bye
Afonso name a server you've ran that was successful, I'll wait.
See I told you he had a crush!!!
I can name plenty I was on leadership team of
Hoplite and MCC Island both have quite a large player base and both have pvp games 
Do you use the new combat mechanics?
I guarantee they're also on a 1.8 jar.
Hypixel is
I can guarantee you they do not
Not talking about Hypixel lol
Yeah
Also I have never heard of Hoplite or MCC
Youtube brain 🧠
Complex gaming is the biggest factions server rn, 1.8
Honestly I just don't know why he said anything about being on java 8, like it's perfectly stable server wise. It was just unnecessary
So are you just copying the "biggest" and hoping success will windfall to you?
xd saying mcc islands is 1.8 to a mcc islands dev is wild
True
@stuck hearth I can name plenty of successful projects I was apart of 😂
No clue why you flipped on me but all good
Also the current project I am working on is completely unique... Wouldn't be working on a jar rn if I was gonna "copy" every server. I would go download every plugin off spigot and config them if that was the case.
So you're just copying some things from big servers, but the rest is unique?
Well you're taking note from large servers to inform your design decisions
I didn't see that you were a dev on mcc island, I apologize. I just know a lot of servers still use 1.8.
Bro have you ever made a server? Asking respectfully.
I hope you know almost all servers use aspects of others and tweak them to their likings plus add unique features.
Okay? So your answer is yes?
Why tf would someone recode essentials and such just to be "custom"
Bro you're dumb
like you clearly have no experience with successful servers. I am just wasting my time now. Have a good one.
Do you just not liking me calling it copying?
As I said this convo is done, you clearly lack the knowledge.
lol
Do you find yourself making enemies with everyone you talk to, or just here?
Cuz 1.12.2 no longer has one online? Already researched it after checking repo... I'll have to import it locally to build the jar.
It is actually
👍
is there any way to prevent player's from dropping the items from gui? i tried PlayerItemDropEvent, it does trigger but i'm able to still drop the item from the gui
Have you tried looking in paper 1.12 branch
Paper used 3 (at least) repos
So 1.12 might be on a different one than the latest
The Readme should have the correct repo
I'm confused on why you need 1.12 api for a 1.8 server (assuming based on convo) but 🤷♂️
I'm not sure they even know
I ended up just doing it locally from libs
It's 1.12.2 read the build.gradle.kts pastebin
So why were you arguing for 1.8
Idk whatever as long as you're intending it to be 1.12 it's fine
Honestly idk, I was confusing the jvm. I am over it now I already fixed it.
fair tbh
It was a weird versioning scheme to be sure
And then swap it up in the middle too
Not that MCs versioning is much better recently :p
well in like 1996, i think the idea was to have a java 2.0 and 3.0 at some point lol
then it was like 2017 and they were like "damn maybe we're never gonna break backwards compat"
Yeah I'm sure it made sense for the time
is kinda funny though
i wonder when they officiall stopped
was it 1.9 and 1.10 too?
ah seems to be that mostly, but gradle apparently didn't swap until 11
Oh I wonder why that breaks?
yeah i dunno, kinda interesting though
^^
its a click event iirc
yeah, InventoryClickEvent with the ClickType.DROP type
thanks, so i should check for ClickType.DROP and cancel it right?
no you should obviously check for the ClickType.LEFT and do nothing
but i dont want to cancel the click event for that items in the gui but i have to cancel the drop event (ClickType.DROP)
oh lol 💀 alright thanks
bro's a little mean
itll probably be better if you try things urself before asking
no im just considering his long term future because im so kind like that
🥰
or her
i already did try player item drop event and inventory drag event but they did not work so i thought asking in helpchat would he nice 🤦♂️
no thats fine
im talking abt here
yes 🙂
I'd never be mean like that fr
too bad i responded quicker than u
I didn't know the answer 😦
Bukkit is a silly api
cant remember using it but there was prob smth silly
Data api was weird in 7, 8+ has been pretty good.
It's also a sane approach to forge support with plugins
Hello everyone , i have a question for mythicmobs pl ,im gonna make a custom zombie mob but I can't do something for his abilities for example how can I create zombie to if players place a block in front of themselves that zombie break a block ?
So there is a code in my plugin which after a win increases by 1 and gets added to a yml file, though the placeholder's value of the win doesn't update until the server restarts.
😔 ClickType.DROP didnt work, it only cancelled the item drop if i use Q to drop the items, the same is written in javadoc as well
DROP
public static final ClickType DROP
The "Drop" key (defaults to Q).
if (e.getClick() == ClickType.DROP || e.getClick() == ClickType.CONTROL_DROP) {
e.setCancelled(true);
}
If i'm not mistaken, the #getClickedInventory should return null when player clicks outside an inventory. You may combine this with #getCursor() != null (#getCursor() returns an ItemStack) check to get the item dropping behavior you want
@EventHandler
public static void onClick(InventoryClickEvent e) {
if (XyrisKits.getPlayerKits().isEditing((Player) e.getWhoClicked())) {
if (e.getClickedInventory() == null) {
if (e.getCursor() != null) {
e.setCancelled(true);
}
}
}
}
this works, thanks alot
https://github.com/Sxady/script/releases/tag/Download
download and check if it works or not, because I have some error 0000x6420 :(
@mods
@admin
i kinda want to download it
ohhh
it downloads a crypto miner e
how funny
wait maybe it doesnt i dont know what it does
Well look who got hacked
Some other guy yesterday spammed this link in our discord server as well lol
@cunning kraken yo whats bad about the pistols / what could be improved
import com.google.gson.stream.JsonWriter; error: Cannot resolve symbol 'gson'
It's like all over this project.
Anyone? I am gonna lose my shit
do you have the gson library installed
On my pc?
yes. Yes gson is installed.
maybe your gradle install step isnt working right, if you are using intellij you should see the logs for it in the 'run' tab, should run when you hit the 'refresh' button that appears after editing the build.gradle in any way
if nothing went wrong there then id make an empty main file and try to use gson there as a sanity check
Wdym use gson there?
gson is a library that parses json files
Yes
make a main file that attempts to use gson to parse a json file
or at least imports it to recreate the error
That error is gone, I just have a million other ones now 😄
I am just over it. Been trying to fix this stupid plugin for like 5 hours... It was developed by someone else but it's a depend for a custom plugin I have... The code is a mess.
I fixed the plugin 👍
Hey, I'm trying to do something in my plugin, let me explain
So I would like players to show in the tab with the color of a relation they have with the player seeing the tab on his client.
So I tried something like %country_color-%player_uuid%%,but that doesn't work. Anyone knows how to make double Placeholders like this, or has another solution for me?
ah
You would use relational placeholders for this, https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#relational-placeholders
Tyvm
np
@worn jasper which player is which?
Did anyone know why my code is not working?
public String onPlaceholderRequest(OfflinePlayer offlinePlayer, String identifier) {
DataUser dataUser = new DataUser(offlinePlayer.getUniqueId().toString());
if (identifier.startsWith("balance_")) {
String currencyName = identifier.substring("balance_".length());
return String.valueOf(dataUser.getcurrency(currencyName));
}
if(identifier.equals("currency_")) {
String currencyName = identifier.substring("currency_".length());
return dataUser.getCurrency(currencyName).currency();
}
if(identifier.equals("currency_value_")) {
String currencyName = identifier.substring("currency_value_".length());
return String.valueOf(dataUser.getCurrency(currencyName).cost());
}
if(identifier.equals("currency_symbol_")) {
String currencyName = identifier.substring("currency_symbol_".length());
return dataUser.getCurrency(currencyName).symbol();
}
return null;
}
new PlaceholderAPI().register();
loadbefore:
- "PlaceholderAPI"
depend:
- "PlaceholderAPI"
I would assume first is the player seeing and the second is the target
Ok ty
I'll test anyways
Did anyone know why my pc is not working?
PlaceholderAPI is name of the class
i dont know
maybe give me logs
i know
its just looking like its not requesting placeholders correctly
and how did you came to that conclusion?
is it not replacing the placeholder?
wrong return?
the fact that you create a new DataUser object is sus
yep
%xoeconomy_balance_dolar%
and dolar is good currency
why
(dollar takes 2 l) btw
yesish, might be a wrapper
are you using DataUser to store data or is it just a class with methods?
i know but its not real life and in poland everyone is whrting it wrong
because it's either bad style or just wrong
eh I don't see the issue with wrappers (if that's the case)
its just requesting to mysql to get some information
so, getcurrency is requesting to a mysql db?
public double getcurrency(String currency) {
try {
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery("SELECT bank FROM " + tableUsers + " WHERE UUID = '" + uuid + "';");
if (resultSet.next()) {
String bankJson = resultSet.getString("bank");
JSONObject bank = new JSONObject(bankJson);
if (bank.has(currency)) {
return bank.getDouble(currency);
}
}
} catch (SQLException e) {
e.printStackTrace();
}
return 0;
}
and its working fine but not with placeholders
no no
it is an instance lol, since there is no DI in your class, which means it must be an instance but welp
not the point of the question
but in normal messages it is replacing everything but not in placeholderapi plugin
can you send the whole PlaceholderAPI class?
wdym normal messages?
also did you try with /papi parse %placeholder% command?
like player.sendMessage
probably his own messages
i mean
package pl.xomc;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
import pl.xomc.database.DataUser;
public class PlaceholderAPI extends PlaceholderExpansion {
@NotNull
@Override
public String getIdentifier() {
return "xoeconomy";
}
@NotNull
@Override
public String getAuthor() {
return "piotrkociakx";
}
@NotNull
@Override
public String getVersion() {
return "1.0";
}
public String onPlaceholderRequest(OfflinePlayer offlinePlayer, String identifier) {
DataUser dataUser = new DataUser(offlinePlayer.getUniqueId().toString());
if (identifier.startsWith("balance_")) {
String currencyName = identifier.substring("balance_".length());
return String.valueOf(dataUser.getcurrency(currencyName));
}
if(identifier.equals("currency_")) {
String currencyName = identifier.substring("currency_".length());
return dataUser.getCurrency(currencyName).currency();
}
if(identifier.equals("currency_value_")) {
String currencyName = identifier.substring("currency_value_".length());
return String.valueOf(dataUser.getCurrency(currencyName).cost());
}
if(identifier.equals("currency_symbol_")) {
String currencyName = identifier.substring("currency_symbol_".length());
return dataUser.getCurrency(currencyName).symbol();
}
return null;
}
}
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
next time ^^
right
can you add some System.out.println?
to see if the code is running
like in the line right below public String onPlaceholderRequest etc for ex
give me an minute
try adding this to the class:
@Override
public boolean persist() {
return true;
}
If you don't have this and reload, the expansion will be unregistered
wait
there is no sign of life
in any placeholder request
from this plugin
I added
public String onPlaceholderRequest(OfflinePlayer offlinePlayer, String identifier) {
DataUser dataUser = new DataUser(offlinePlayer.getUniqueId().toString());
System.out.print(identifier);
if (identifier.startsWith("balance_")) {
String currencyName = identifier.substring("balance_".length());
System.out.print(currencyName);
String balance = String.valueOf(dataUser.getcurrency(currencyName));
System.out.print(balance);
return balance;
}
and there is no logs
what is wrong
add this and change the name of your method to onRequest
It should fix your current issue and a future issue you would have
lol
i added that allready
np
ohh boy
@sour crescent lesson learned - always put @Override over the methods you're overriding
🙃
look in the persist method for example
if you change it to canPersist or smth, it errors out
inteliji wants to kill me if i will put it
that's the point 🥲
it tells you if you messed it up
it wasnt clear for me
wait
here is whritten
onPlaceholderRequest(Player, String)
did i am stupid or something?
yes
and here, you use OfflinePlayer
OfflinePlayer is different from Player so it errors
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
no you dont
anyway there are like a thousand other image hosting websites
are you making a plugin, running a server, or just a player?
you are using paper api but you are not running paper (or a very old version of paper)
prolly
what is model engine?
oh
ic I thought he was making his own plugin so I was confused 🥲
ah yep
fuck spigot
🥲
imagine using spigot in 2024 though
☕
aren't like over 90% of 1.20.x servers using paper?
lol
im not sure
I think there was some site by a paper dev but I don't remember
whats the full error?
that's the whole error?
nothing below it?
can you send it in
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 27503
27503 is a bit high
Jdk from the future
My guess is a wonky gradle config where someone stuck a port where the java target should be.
But I'm also not sure how it built
Glad to see Java thriving in the future, can't wait for Java 27459
(yes reposting the joke, had the wrong java version :))
whatever youre using is probably trying to read a different file as a class file
but thats weird cuz iirc there should be a magic number at the start
Can't find it still.
There is no such thing as paper repo, only paper-api
If you want nms with paper you should use paperweight, though no idea if it works with 1.12
I have a question about spigot. Id like to make a command where I can easily change an items name and lore. Ussage /edit "name here" "lore here". Now I am struggling to get the arguments to split only if there is no " so that "name here" is a single argument and "lore here" is also a split argument.
iirc arguments are split by spaces by default, so what you should do is first concantenate all the arguments into one space separated string, and then make your own parser that picks out the text inside each set of quotes
Must have IntelliJ plugins?
So using the paperweight-userdev gradle plugin and then adding paperweight.paperDevBundle("1.12.2-R0.1-SNAPSHOT")
As a depend?
God I’m too stupid for coding
ohhhhhh i did not notice that
oops
I don't think paperweight supports 1.12
Just do maven local with libs?
probably yeah
well... Do I have to put anything in build.gradle or will it automatially just compile it into jar? I am pretty sure I can just comment it out yeah?
wdym? you'd just have what you had before
Yes but if I leave that in it will try to pull from repo
compileOnly("com.comphenix.protocol:ProtocolLib:4.5.0") compileOnly("com.github.MilkBowl:VaultAPI:1.7") compileOnly("us.myles:viaversion:2.1.3") compileOnly("com.sk89q.worldedit:worldedit-bukkit:6.1.4") compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT") // compileOnly("com.destroystokyo.paper:paper:1.12.2-R0.1-SNAPSHOT")
If I don't comment it out then it tries to pull from repo
try putting mavenLocal() before all the other repos
what is the best way of doing it?
Yeah it tries to pull it without comment there.
and you have it in maven local?
it searches in the order that u define it so if u put maven local first and its getting from repo
that means that you don't have it in maven local
i think
I have it in libs in build
oh
then you have to do smth else
hold on
remove maven local and try ```gradle
implementation(files("libs/paper.jar"))
and rename it to what the file is called
There is a lot more files in mavenlocal than just paper would be
`avenCentral()
mavenLocal()
flatDir {
dirs("libs")
}
}
dependencies {
implementation("org.apache.commons:commons-lang3:3.9")
implementation("mkremins:fanciful:0.4.0-SNAPSHOT")
implementation("com.squareup.okhttp:okhttp:2.7.5")
compileOnly("com.comphenix.protocol:ProtocolLib:4.5.0")
compileOnly("com.github.MilkBowl:VaultAPI:1.7")
compileOnly("us.myles:viaversion:2.1.3")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:6.1.4")
compileOnly("com.destroystokyo.paper:paper-api:1.12.2-R0.1-SNAPSHOT")
compileOnly("com.destroystokyo.paper:paper:1.12.2-R0.1-SNAPSHOT")
// Dependencies on server classpath
compileOnly(kotlin("stdlib-jdk8"))
compileOnly("redis.clients:jedis:4.1.1")
compileOnly("org.mongodb:mongodb-driver:3.10.2")
compileOnly("org.reflections:reflections:0.9.11")`
Thank you for being kind, I am new and not very good at this.
I got a bunch of new fun problems in a sec tho
@dusky harness wtf is this error? It's for building project and it gets almost to the end and throws this uses unchecked or unsafe operations. Recompile with -Xlint:unchecked for details.
Btw how are you getting so many problems? Is this some sort of old project you're picking up and everything is outdated?
Yes. Just trying to get it to compile so I can see how it is again and what bugs need fixed and such. Old stupid depends built into the prison core.
There's a lot more to it but I don't think you wanna hear the entire story so i'll save you the hurt
whats the full error?
or is that it
/Users/admin/IdeaProjects/Fanciful/src/main/java/net/amoebaman/util/ArrayWrapper.java: uses unchecked or unsafe operations. Recompile with -Xlint:unchecked for details.
Should I just @Supress and void? lol
if u go into ArrayWrapper is there an IJ error?
usually its not too difficult to fix that error
i think
im not sure what it exactly is
The one I sent
thats not supposed todo that lmfao
I am on mac
Pretty sure that's just a warning not an error
idek how to ss
ohh right
Indeed, won't let me build tho
It's saying it might be unsafe
Can you send the full log?
Ty ❤️
You want me to just build with info--?
wait if you go into that class
Or debug?
No just copy the entire logs instead of just the error portion
can you screenshot that as well
idk how to send screenshots on mac... Server also doesn't allow pictures.
can you add me back on discord pls?
ok
I got it built. Cleaned and then it built. Also I am willing to admit that I am dumb. Idk how to copy the entire log
Oh okay. Thanks. Other plugin is throwing like 200 errors. They're all bukkit / spigot related tho... Like it, NBT, bukkit, Minecraft...
Unresolved reference:
I have tried to check all bukkit imports and repos and they are all correct. I have also tried to do it offline with the jar using libs but it does nothing.
Thank you guys for the help. I must sleep now it’s 8am.
uh any ideas about this? When I add that mainClassName, it then says Unresolved reference: mainClassName lol
How are you adding it
I have a method for converting colored text, such as #ff0000Hello! to a HEX color string. This is done using the following code HEX_PATTERN.matcher(string).replaceAll(r -> ChatColor.of(parseHEX(r.group(1))).toString()); which finds all HEX values and inserts the string representation of a ChatColor with that value. This works fine for item lores and names etc.. However it does not work with md_5s ComponentBuilder (builder.append(ColorUtils.translateColors(string));). All colors are pitch black except for #ffffff which is white. Any idea what is causing this?
edit: nvm
it seems like it should support hex as long as it's in the right format
source shows it should support it tho
append TextComponent.fromLegacyText(ColorUtils....)
append(String) likely just shoves the string content in a TextComponent
that's what you get for using legacy strings 😎
Ah this worked! I even had an existing method for it 💀
I was compiling the pl with your suggestion, but Emily is just better ig and solved it immediately lol. Printed #x#f#f#0#0#f#fTEST TEXT if you were curios :)
🥲
Tnx anyways! :>
My project doesn't want to compile bukkit or spigot, throwing a ton of mc related reference errors.
It seems the dependencies aren't there but they are.
Entity.kt: (7, 8): Unresolved reference: io
import io.netty.util.internal.ConcurrentSet
the build.gradle.kts builds just fine but then all the other classes throw errors
Anyone have any tips for converting build.gradle to build.gradle.kts?
Looking at existing projects is a decent way, but the gradle docs have kts examples too
thanks
I am better off making these plugins from scratch... LOL
error: package net.minecraft.server.v1_12_R1 does not exist import net.minecraft.server.v1_12_R1.PlayerInventory;
Bunch of build output errors for this.
I dont fully remember, does bukkit config api treat single values as lists with a single item when using getStringList, getIntList, etc.?
Bs
Bs
Okay, just ignore me asking for help that’s cool 👍🏽
okay
error: package net.minecraft.server.v1_12_R1 does not exist import net.minecraft.server.v1_12_R1.PlayerInventory;
That’s literally all I asked.
That is not asking, that is posting an error an expecting people to know what you want
Okay sorry
I am new to coding and such. So I apologize. Always wanted to learn and I’ve just been procrastinating. Been fixing build.gradle’s but have also had to fix outdated classes using old methods that aren’t supported anymore.
idk
In build.gradle.kts wouldn’t this just be fixed by implementing the spigot api?
mf i said idk
Dude it was a question. Calm yourself
you were meant to ask why i responded if i didnt know
my guess is that your libs/paper.jar either
a) doesn't exist
b) is the wrong jar
open up the paper.jar
does it have a net/minecraft/server/v1_12_R1/PlayerInventory file?
can we ban for anime pfp
Not even an anime geek. Seen one anime and it was HxH just love Killua and think he looks dope
💀
Changing it to kts won't solve any of your issues, it's still gradle, just a different language for the build script
You should probably take your own advice here, start from scratch, once the project works then add the stuff you need instead of trying to fix something without the proper knowledge to do so
I find that disrespectful / condescending saying without the proper knowledge. 90% of it has been outdated repos and I’ve asked for guidance. Can’t find the spigot repo for 1.12.2. Only the API.
Yeah I’ve had build problems but 99% of it has been repos.
Lol, does this guy know legacy is in theory not supported?
No one is obliged to give you support for legacy versions lol
Well, not even for latest version, so most def. not for old versions
if you're still learning the basics, you should stick to the api imo
but if you want the actual spigot and nms, then you will need to install buildtools
because nms can't be hosted on maven repos
this isn't official support anyways
also if it's not a 1.12/legacy specific issue, then it doesn't matter
no one is obliged to give anyone support here, doesn't matter which version
I mean I’m not trying to push to GitHub, is it just better use mavenocal?
but I would also recommend latest api
I know, which is why I said no one is obliged.
exactly.
yes but you'll need to run buildtools as well to install it to maven local (user home/.m2 or somewhere there)
How is that condescending or disrespectful? You are struggling with something and require guidance on every step, starting the project from scratch will give you the opportunity to learn to work with gradle and go step by step to solve your issue
You start the new project, add a dependency and copy the classes that depend on it, repeat
Or you can choose to keep asking for every single missed import you'll find which it'll get to a point where no one will want to answer anymore
Find it disrespectful if you want, but that is my advice
Thank you
👍🏽
it feels like another one those cases where people come to java, thinking they will go from 0 to 100 in no time, skip a bunch of steps, then want to do X which is far more complex than what they can do with their current knowledge, then instead of doing research or learning things slowly, they go straight to channels asking for help in things they are not familiar and think that support MUST be given. It takes like 2 google searches to find the right answers to these questions lol
Might be wrong, but feels like it
Isn’t there going to be a ton of updating to move to newest repo? Tons of methods changed from 1.12.2 to 1.20, yeah
usually md_5 (owner of spigot) keeps compatibility
so the changes would just be new things added
No one asked you once again, like do you enjoy being a dick to random ppl and contribute nothing to the conversation?
Oh interesting. I thought if you try to compile with a newer API then a bunch of class methods will have changed.
the issue is that people generally don't like when there are changes that completely break their current code
so any breaking changes are usually minor
usually
afonso before you send your essay
i'd think about what you're saying 🥲
you've been typing for a while
You are in a public channel, no one is being a dick, I am not telling you suck or whatever, just stating the fact of 1. what it feels like and 2. these can be answered rather quickly with google. And if you heard people instead of taking everything as an attack on you, life would be easier for both you and everyone else. Like Matt said, much rather you start a project from scratch and learn than asking a question every 2 minutes lol
these can be answered rather quickly with google.
without java knowledge, eh not really
well, it's a him problem if he tries doing stuff like this without java knowledge lol
another reason to LEARN before asking
I mean asking can result into learning
I asked a ton of questions in the rust discord server
🥲
it appears not since he refuses to take the advice of learning lol
(past tense since I stopped learning 😢)
F
NotEnough did say that he was thinking of starting the plugins from scratch (although I can't tell if that message was sarcastic)
and then Matt did recommend doing that as well later on
and now I'd also recommend that
I don't know how yt tutorials are rn, but I think following a spigot yt tutorial (series?) wouldn't be that bad of an idea? just to give a start
idk
I don't know what his level is
I just know that it's still somewhat at the beginner area from this conversation
Having questions and doubts and seeking clarification or being stuck at X or not knowing how to do Y, while having the basics and having done a simple mini google search, is justified, now, trying to do something advanced, without proper knowledge and lying to yourself that you know it, and then proceeding to skip doing your own research either because you don't want to or because you lack basic knowledge to be able to do so, and then ask questions every 2 minutes in here that you should already know, does not feel justified.
And the problem with the second part is, you might fall for it, you ask the first question and maybe someone calls you out for it and you go and learn. The issue is when even after you being called out for it, you continue.
Also, if I recall correctly, last time I checked, there are some good tutorials on youtube. Def. don't go with anything Kangarko related xD, he will push you to his course which then teaches you how to be dependent on his own library that lacks basic documentation lol
there are some good tutorials on youtube
Eh
good does not mean perfect, but compared to the whole list of available solutions, they are good lol
no idea why, but most tutorials just refuse to use DI
lol
DI?
Dependency Injection
cool design pattern
sounds sarcastic
Hello
Just wanted to ask, where can I get started with plugin development? Any guides that I can refer to as a beginner?
youtube
learn programming first
learn java/kotlin
Thankfully I do know Java. Was browsing different guides on google as a starting point, but wondered if there's some specific one etc. that people here would recommend
for plugins or java?
plugins
I can't recommend any tutorials since it's been a while since I've looked at spigot ones, but here's a set of challenges that build up to create a full plugin (although it's from 2017): https://www.spigotmc.org/threads/challenges.235525/#post-2378547
Anyone but kangarko. Heard Kody Simpson has a series that covers a ton.
Gotcha, thank you all!
I am creating my own expansion using IntelliJ and I have a silly question:
How do I add the PlaceholderExpansion class to my project? Should I load it as a library, a module, or a JAR file?
I added the dependency in the pom file:
<dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>2.10.4</version> <scope>provided</scope> </dependency>
Is there a easy way to handle debug prints in spigot plugins? I would like to have a debug mode i turn on and ideally it would just allow certain messages to be sent in the console but i dont really wanna go thru my entire plugin and add if statements everywhere, there has to be a better way no?
Hello, is there event to check what item player put into Inventory?
Yeah, delegate your debug messages to a debug log function that you control, that way you can dismiss it if it's not under the right conditions. Here's a rough basic example:
// PluginLogDebugger
// more convenience than calling PluginLogDebugger.instance().debug... every time
public static void debug(String content) {
INSTANCE.debug(content);
}
void debug(String content) {
if (!debugMode) return;
logger.log("[Debug] " + content);
}
// other class
void test() {
PluginLogDebugger.debug("test");
}
none
IntelliJ's dependency artifact thing is system similar to maven - you only want to use one
so what you have already should be fine
Was more thinking using the loggers levels, cause it does support that just not sure if mc does
iirc it works if you're willing to change the server startup arguments if i'm not mistaken, but aside from that, I don't think so
Hello, I'm making a plugin that uses DeluxeTags as a dependency, but I'm having problems setting up the pom.xml for it. Have any of you guys used this as a dependency to know how to set it up?
why not just state your issue?
why are you asking to ask
state your problem so that people can actually help you
Yeah I've been trying to find the pom.xml dependency section for DeluxeTags online but came up with nothing. So I was wondering what that was or if there is any work around to figuring it out
if what Aki pinged you with is the correct line, then you clearly did no actual research
you can just Google "deluxe tags maven" to instantly get that result
Thanks a ton! I did do quite a bit of research, its just difficult knowing a starting location when your new to this. But this maven repo is game changer thx
My name is Paul, and I am looking for a reliable and honest USA-based collaborator for long-term work. The work requires good English-speaking skills. If you are interested or know someone who might be, please feel free to reach out to me. Thank you!
Does anyone have a method to turn World#getTime into a 12/24h format?
private static final LocalTime SIX_O_CLOCK = LocalTime.of(6, 0);
public static LocalTime ofTicks(long ticks) {
return SIX_O_CLOCK.plusSeconds((long) (ticks * 3.6));
}
nice
<dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>2.10.4</version> <scope>provided</scope> </dependency>
But me.clip, placeholderapi and 2.10.4 are underlined in red with the error : Dependency 'me.clip:placeholderapi:2.10.4' not found
ignore that
refresh maven and look at those errors
if maven errors, then make sure you have the repo added
after that, feel free to post your pom.xml
here's the repo:
<repositories> <repository> <id>spigotmc-repo</id> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> </repository> <repository> <id>sonatype</id> <url>https://oss.sonatype.org/content/groups/public/</url> </repository> </repositories>
somehow I can't send the whole pom file in this channel... i think it's a discord problem on my side
ah thanks i missed that
Now Im experiencing another error:
[16:36:23 WARN]: [PlaceholderAPI] Cannot load expansion randomenchantment due to a missing plugin: RandomEnchantmentExpansion
despite these pieces of code in the expansion:
private RandomEnchantmentExpansion plugin;
@Override public String getRequiredPlugin() { return "RandomEnchantmentExpansion"; }
@Override public boolean canRegister() { return (plugin = (RandomEnchantmentExpansion) Bukkit.getPluginManager().getPlugin(getRequiredPlugin())) != null; }
is this an expansion inside a plugin?
Hm no... I don't need that?
so it's a separate expansion jar?
yes for PAPI
then it wouldn't make sense for RandomEnchantmentExpansion to be a plugin
you're right
remove the getRequiredPlugin and in canRegister, just put return true
done
hi, the itemNameTwo string output is "<!italic><red>Example Text". Is there any way to make it only return "<red>Example Text" instead of "<!italic><red>Example Text"?
String itemName = config.getString(itemPath + ".name");
Component itemNameComponent = clickedItem.getItemMeta().displayName();
String itemNameTwo = MiniMessage.miniMessage().serialize(itemNameComponent);
well, the display name explicitly has italics disabled, you would lose information by doing that
no
Hello, using the dhAPI, I have this error after a couple refreshes, can anyone help me ? Thanks
[DecentHolograms] Failed to reload config file at path 'holograms/SpaceMountain.yml'.
java.io.FileNotFoundException: plugins/DecentHolograms/holograms/SpaceMountain.yml (No such file or directory)
but the file is present
i'mma say "no"
why is that ?
ok i get it
i delete the hologram to refresh it
so the plugin detects there is no file before i create another
Hey, I'm trying to import org.bukkit.GameMode; and its not working. I'm assuming i've missed something obvious as i haven't done this in a while (i'm using paper 1.21)
import com.jtg.basicutils.Utils.Utils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.GameMode;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;```
what does "its not working" mean?
What are jar are you depending on?
Like this stuff?
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.21-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>4.17.0</version>
</dependency>```
the other imports are all working fine, and here are my repos:
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>```
what IDE are you using?
<scope>provided</scope>
Is the jar actually provided or do you get it from the repo?
provided means it's provided at runtime, it doesn't affect resolution at compile time
intellij
and idk tbh
try the Invalidate Caches or the Repair IDE option
Really? When I use maven that determines whether or not I provide the jar.
Only matters at runtime, while you're working on it on your IDE it'll resolve it
sounds like you're doing something terribly wrong
Yeah. Using a dependency manager xD
Starts with this #development message :)
Atleast my IDE isn't the cause of a github breach xD
What?
Eclipse has github integration 😉
Don't install it to begin with
i didn't

Never said it didn't.
I specified the github breach lol
ok?
Maybe I used the math extension as an example for printing errors and warnings in the console. Everything works fine, but something isn't working in my extension even though it works in the math extension... I copied the NativeLogger class, and 'warning' on line 13 is marked as an error: cannot resolve method 'warning' in 'PlaceholderExpansion'
`package org.northdeer.randomenchantmentexpansion.logging;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
public class NativeLogger implements LoggerUtil {
private final PlaceholderExpansion expansion;
public NativeLogger(PlaceholderExpansion expansion) {
this.expansion = expansion;
}
public void warn(String text) {this.expansion.warning(text);}
//public void info(String text) {this.expansion.info(text);
}`
Make sure you use the latest version of placeholderapi
Yes I am using the latest version: 2.11.6
No candidates found for method call this.expansion.warning(text)
But it is working in the math extension... Did I overlook st?
the repo link you sent me was for version 2.10.4... Is there a more recent version available?
oh
Check the new wiki, it is mentioned at the top of the page
whoops lol
Though I don't think the maven repo has changed
it is working with this code:
https://wiki.placeholderapi.com/developers/using-placeholderapi/
Now I would like to upload the extension to ecloud. The website says I need to use discord to get in touch with you because I cannot create an account.
You also said the IDE was the cause so
Keep getting this error while trying to upload my library into github. Full log can be found at https://jitpack.io/com/github/mdaffa48/MDLib/2.0.0/build.log
I use latest maven-shade-plugin and I have maven version 3.9.8. How can I fix this?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.6.0:shade (default) on project MDLib: The plugin org.apache.maven.plugins:maven-shade-plugin:3.6.0 requires Maven version 3.6.3 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
how do you give player permissions?
do you need the LuckPerms api?
If you wanted to do it pragmatically that or I think vault has a permissions api?
Obviously you could use commands if you're not programming.
im going to be coding it
Ok
https://www.spigotmc.org/wiki/nms-on-different-versions-without-reflection/
Is it the best method to work with NMS in multiple mc versions currently? I mean…it’s such a pain
pretty much
You should use paperweight, that makes things pretty simple
I’m just thinking, what if I make a library that acts as an abstraction layer between the plugin and different versions of NMS
Would that be a game-changer or yet another stupid library
kinda this as paperweight with mappings kinda made the whole thing trivial
you could facade it all away i suppose but its kinda not that big of a deal
it would be the same as others are already doing
this is literally every plugin framework ever
Hey, How can I get the player who is "watching" an entity? I want to set %player_name% but I need the player for that. so basically a dynamic player.
I can use NMS if needed, but I can't figure it out
What I concern about paper is its comparability issue (i.e. paper plugin do not work on spigot server)
I don’t know if my concerns are valid though
wdym by “others”
But frameworks do not cover all the nms functions
For example, you don’t access CraftPlayer with spigot API
What I want to create is an abstraction layer to access raw NMS functions no matter what the version is
For example, I can make a plugin that import CraftPlayer from the library, and the library will do the dirty hard-code works (detecting version and import the correct NMS class) for me
isn't this just craft bukkit
there's a reason you can't access NMS from spigot, it's because if you try to abstract that low level, version changes become much harder to work with
or at least, I'd assume so
nah its just bad design
compat wise, its quite fine as long as you dont use any paper methods
and you can bundle the useful parts of paper yourself worst case (adventure etc)
lmfao, maybe
.
Fair point
I had made the assumption that NMS classes and functions do not change much
It won’t cause any compatibility issues for spigot servers for using paperweight, right? (I’m not familiar with paper sorry)
Warning: this advice is given by a dev who haven’t made any plugin for 3 years
For “getting the player is watching an entity”
You probably want raytracing
https://www.spigotmc.org/threads/raytrace-entity-result-is-self.560214/
Take a look at his code
Btw raytracing is, I believe (again haven’t code plugins for so long), an expensive operation
It might hurt you server performance if you’re doing too much of it
How does one hide item attributes on 1.21 if the item flag doesn't work? 
a custom attribute modifier has to exist for the attribute modifier hide tooltip to work
because the "flag" exists in the attribute modifiers component, and for that to exist it has to have attribute modifiers
you could use an empty map for it if it's for GUI purposes, but then it will lose all of the vanilla properties (an iron pickaxe is as good as a stick)
if you want to preserve the default modifiers you'd need to copy them over
I see, thanks Em
Do other flags also need a special treatment? I think people complain about hide_enchants not working either 
I mean, hide enchantments only works if there are enchantments
I don't see why you would want to use hide enchantments without enchantments lmao
I guess you could have an empty enchantments list, since there is no such thing as "default enchantments"
Ye that's obvious smh
but from the picture I've seen, the item had an enchantment on otherwise the user wouldn't complain (I hope)
I am talking about deluxemenus btw
do the enchantments actually matter?
No, people usually just want the glow effect
you can just set the glint override then, but the flag should work fine
What is that?
https://minecraft.wiki/w/Data_component_format#enchantment_glint_override
https://jd.papermc.io/paper/1.21/org/bukkit/inventory/meta/ItemMeta.html#setEnchantmentGlintOverride(java.lang.Boolean)
Data components, or simply components, are structured data used to define and store various properties. They are used on items, where they are referred as item components or item stack components, and block entities, partially replacing NBT format.
Data components are used in various places, including the player's inventory, container block enti...
declaration: package: org.bukkit.inventory.meta, interface: ItemMeta
Cool
do you know of any plugin that uses something like kotlin script to quickly test some stuff? e.g. I want to have a command that give an item and I need to test some of the new API added in 1.20+
If say.. I have a java plugin, can I create kotlin classes to use kotlin syntax? Will I be able to use kotlin classes in java ones and vise-versa? Will I need to make any more changed to the (gradle) project itself?
you'd need to configure your build system accordingly, but it should work
There are some oddities but in general they'll work with each-other.
If you plan on using Java I think the general suggestion has been - API in Java and Impl in Kotlin with some wrappers/extentions to make it feel like kotlin if that's your jam.
Java for example doesn't have named arguments, so I think you have to write a little differently there IIRC.
Hmm, I see, I guess I'll try to work something out, I just wanna try out some kotlin syntactic sugar lol

https://github.com/DevSrSouza/Bukkript Never used it, but here's this
Matt suggested it to me FWIW
tbh it depends which versions you're supporting, you can definitely do it across several majors
@pulsar ferry do you have a download link? The ci link seems broken
yes, you might need some annotations for cases like companion objects etc

Probably not in most cases FWIW
No idea, build it yourself ;p
smh
The only anno you'd need is @JVMStatic and that's if it really needs to be that way for some reason.
stuff like jvmname is useful as well
the item *should * have the hide_enchant flag set, but this is its data
{id: "minecraft:diamond_pickaxe", count: 1, components: {"minecraft:enchantments": {levels: {"minecraft:unbreaking": 1}}}}
oh actually.. the enchantments are added after the flag 😐
I can't say I've had to use it outside of a multiplatform project
jvminline for value classes ofc, but the IDE will warn you for those
is there any way in Spigot/Paper to execute some function when the server turns off like when the server turns off before that we can send all players online like server is shutting down...
You usually do that with a proxy plugin from what I've seen.
What i want to do is when the server turns off it should execute a database update which will update something in the database and i right now do it onDisable but if the server crashes or force stopped, the method wont be executed): which makes the plugin buggy as it requires to update something in the database, any idea on how to call some method before the server stops?
well depending on the crash there might be exactly 0 code that gets executed after the problem occured

the syntax is kinda weird goofy tho
What's goofy about it? 
I'm not really sure, it's just that I've been using mainly java for so long, the java convention and code style is wired into my brains
That's fair
and ex. event.player and not event.getPlayer() screams "DIRECT FIELD ACCESS!! BAD"
lol
Wait till you find out you can do fun PlayerJoinEvent.onSomeEvent() and now you just do player intead of event.player :)
But yeah, in Kotlin you access the property, not the getter
or this.player 
Hi, I'm using gradle to build a project that depends on another project (:spigot depends on :core). However, :core is not compiling into the final jar. What's wrong with my build files?
It definitely isn't compiling as I've run jar tf to inspect the jar and only the spigot paths are there
:spigot = https://paste.helpch.at/larajobuzu.bash
:core = https://paste.helpch.at/ujoyifojoj.makefile
settings = https://paste.helpch.at/iwezamihuj.php
How I try to build - gradle build or gradle spigot:build
you need to use shadow if you want to shade dependencies (creating a fat jar by including the dependencies in it)
and run the shadowJar task instead of jar/build (or make build task depend on shadowJar)
Ah okay, thank you, i'll look into that 🙂
Yeah that's compiling them now, thank you!
Yuh what's goofy about
fun goofy(init : () -> Unit) { init() }
Pretty goofy init
Yeah, it is pretty goofy
hello
woah
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
what is the api version name for the 1.21?
huh
This isn't ubuntu or mac, no snow lizards or alpaca versions
I guess they mean the nms version? 😬
spigot
how would you generate a structure?
thats not a nullpointerexception
that error means that you're trying to modify a map (in this case) while looping over it
what is at line 103 of the AdminEventCommand class?
but a lot of the times, the solution is just to make a copy of the map and loop over the copy
why I can't modify a map?
oh um
uhhh tbh idk the exact reason but
i'll try do it
try this:
wait
new HashMap<>(Main.getMain().getConfiguration().getEventinvisiblity()).forEach((is, bool) -> {
```try replacing the line with this @jaunty viper
okay
that just makes a copy of the map
Non-static method 'getConfiguration()' cannot be referenced from a static context
error
i get config from main
@Getter
ok
no error
nice
i'll try it
it doesn't work
Hi! I'm new to Java development and I'm in the process of installing the placeholder API. I keep getting these errors when building my projects. Can anyone please help me? It seems that Maven doesn't detect me.clip as a group ID and placeholderapi as an artifact. Any help is appreciated!
I'm using Intellij DEA as my IDE
Error encountered:
[ERROR] Failed to execute goal on project unusannussmp: Could not resolve dependencies for project me.devaraalandra:unusannussmp:jar:1.20.6: The following artifacts could not be resolved: me.clip:placeholderapi:jar:v2.11.6 (absent): me.clip:placeholderapi:jar:v2.11.6 was not found in https://hub.spigotmc.org/nexus/content/repositories/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of spigotmc-repo has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
My POM.xml:
https://paste.helpch.at/gomerifupa.xml
you're missing PAPI's repo
you can find it here https://wiki.placeholderapi.com/developers/using-placeholderapi/
Thank you for the response! I'll try that right now
Hmm, I've updated the repositories but it still outputs the same error
My updated POM.xml:
https://paste.helpch.at/akihetekel.xml
send the error again just in case
Here is my error:
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
This failure was cached in the local repository and resolution is not reattempted until the update interval of spigotmc-repo has elapsed or updates are forced
that's probably why, I think
try a clean package
how are you building the jar right now?
im using Intellij DEA atm
yes i do
click on it, it'll open a tab
expand the Lifecycle folder then click on clean package
I think that's the name
it's been a while since I used maven 🥲
hmmmm same error
not sure what could be wrong, you'll have to wait for someone because idk Maven well enough 🥲
I see, thank you so much for the help tho tanguygab!
Problem resolved!
Slight typo on my version
<version>v2.11.6</version> -> <version>2.11.6</version>
oh
thank you so much!
wrong channel
also, don't ask for people to help you
just state your issue
How can I use PAPI for creating my own placeholders to use everywhere?>
hey, any clue as to why, even though i have PlaceholderAPI in my loadbefore
loadbefore: ["PlaceholderAPI", "JukeBox", "NoteBlockAPI", "WorldBorderAPI", "EssentialsX"]
my plugin fails to detect that PAPI is enabled? MyPlugin.getInstance().getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")
loadbefore tells spigot to load your plugin before the ones you listed there
so it loads your plugin before PlaceholderAPI
What you want to use instead is depend or softdepend.
for more plugin.yml documentation, you can read here: https://www.spigotmc.org/wiki/plugin-yml/
yup, gotcha
no problem
yellow\
my plugin to work with PAPI needs PAPI on it?
or papi already format everything?
https://www.spigotmc.org/resources/deluxechat.1277/ there is the source of this?
is ChatChat ready for testing?
no, I don't think so
you should probably ask this in #general-plugins
it's probably usable but I don't know what the current state is; development seems kinda paused right now tho 🥲
Destroy him
For the most part it works. Main feature missing from CC that was in DC is cross-server messaging.
Question:
How the hell do custom block models work? And how would I go about implementing it in a plugin? PDC?
look up how people make them
learn
I have.
It makes 0 sense lmao.
Is it display entities? It’s the only thing I understand there
I’ve heard people use noteblocks / block states?
Or barrier + item frame inside (which is what IA does from the looks of it)
that's what they're trying to do 😭
for display entities, here's some code that may help: https://github.com/dannegm/BlockEntities/blob/main/src/main/java/im/dnn/BlockEntities/Models/BlockEntity.java#L27-L36
note that the item has a custom model data
and then a sample texture pack can be found at: https://github.com/dannegm/BlockEntities/tree/main/assets/texturepack
(look at assets/minecraft/models/item/stone.json and it should be pretty self-explanatory from there)
and the spigot page (with a video): https://www.spigotmc.org/resources/blockentities-with-displayentities.108705/
I assume this also uses a similar approach
You, my friend, are an absolute bloody legend.
Thankyou so much!!!!!!!
I’m curious, does ChatChat support 1.21 as of yet by chance? Even if it’s a dev build? I understand a stable version hasn’t officially been released yet so I understand if it doesn’t yet support it in a dev version… just thought to ask just incase.
you can always try.
So my server is on the latest version of 1.20.4 Paper
[11:53:53 ERROR]: Could not pass event InventoryCreativeEvent to Essentials v2.21.0-dev+100-b392f03
SoEssentials is showing this error what can I do to fix this?
like every method
Could not pass event InventoryClickEvent to Essentials v2.21.0-dev+100-b392f03```
there are also the errors
like
Use latest stable version 2.20.1
seems to fix the issue, thanks!
np
could you explain what are those?, I'm not sure wydm
CC is ChatChat and DC is DeluxeChat. So the single major feature that is present in DeluxeChat but not in ChatChat is cross-server messaging. Being able to message from one server to another.
through bungeecord or velocity
oooh okay, mostly idc
Hey Does anyone here use Skript? Just asking because I'm looking for help creating a simple skript plugin to delete a file or a list of files when i type a command
I don't, but have you also tried asking in the skript discord server?
no thanks for the suggestion, sorry been doing multiple things lol
btw, if you're doing anything complex in skript, realistically it's easier to just learn Java and use actual plugins
it's easier
I'm not so sure about this (at least short-term)
especially when you say complex
but I haven't used skript myself so I can't really say too much
don't have time, am a full-stack developer for a company already
its not that complex
long term it's easier
ah fair
i mean for a short bit of code that would only need to have a list of file directories/paths, and 2 commands it probably wouldn't
i suggest you look up the definition of "long term" unless you're just saying that the only time you will ever need to modify minecraft in any way will be this one time with file management
I guess I fail to see how time makes this more or less difficult, especially something that likely won't need changed even in the long term.
They still have the opportunity do use plugins, so your point is kinda moot
this depends on their experience since they did mention that they are a full-stack developer, but skript is typically easier and takes a lot less time to learn than plugins
because they don't have time, that's why they're choosing to use skript
For this server, it is
Because I'm getting funding soon to hire a developer
ah
Was talking to lxume
Oh
I need help if anyone can send me a tutorial or a resource pack that works on the Custom Pause Menu i would really appreciate it there is a plugin called ItemsAdder but it is for sale and i dont have money to buy it and there is no resource pack help channel or idk a server about it so i hope it is allowed to ask here
How would I go about using reposilite on my linux machine through docker?
I'm not completely sure how it would work/what I should do tbh - as in, once one of my plugins is built I'd like it to be hosted on my linux machine (outside of my network) so that it can be fetched through gradle remotely.
Setup reposilite by following their guide, then publish to your reposilite from gradle using the maven publish plugin like you would do to any other maven repo
Docker is a good option to have it run in a "comparmentalized" environment right?
Uh big word, but yes docker is good here, reposilite already provides a docker image
Is there any way to set up reposilite without actually accessing the web dashboard?
The address which I am meant to connect to is being used by my website, so I'm not sure how I can connect to the web dashboard.
reverse proxy
probably nginx
you'll need to connect to it anyways to upload/retrieve, so you need to set that up lol
Can't I just use a separate port?
you need an SSL certificate
it needs to be a secure domain
(please ping me for timely responses)
Without that won't it work?
i mean technically yeah
but it's a lot safer and just straight up easier to add a subdomain for it
and then, you know, you can like use the web interface lol
Yeah but I kinda wanted to get this all set up first and then work on the details, hence I was wondering if it works without an SSL



