#help-development
1 messages ยท Page 22 of 1
There's a difference between talking about a server feature and soliciting minors to use drugs
I never mentioned anything about being racist or anything on that; I'm talking about context, I doubt it will be just myself and a friend being the only ones on any server at any time
we've seen nothing (at least I've seen nothing) that tells us that Mojang can differentiate between friend-only servers and public servers, nor that they want to (because they don't want that content on their game at all)
like you should be allowed to make dark jokes between you and your friend on Minecraft, on a private server, without being MP banned for it
that's bullshit
You can. You won't be reported by your friend
If you are, you've got some real shit friends trying to get you banned "because lol"
refer
major servers already have the need for chat filtration, mojang's decision just sounds like a way to pick at small communities
^ it's literally human nature
who doesn't
get new friends
like
You need to find new people to hang out with, yeah
That report feature is not a joke
they're serious minecraft gamers do you really think they can make new friends
When you know it's potentially going to lead to a ban if your discussions are severe enough, you should not be playing with it
You don't play with fire either
Anyone know how to access the text of an advancement in protocolLib? swaer ive tried all the methods and they return nothing
This is not complicated at all
Which text and packet? A lot of these are translated
link?
What word list? There is no word list
https://wiki.vg/Protocol#Advancements on here it say it's just Title and Description. Just trying to cancel that annoying popup about chat filtering
Bedrock has one but that's not relevant
Well it's not an advancement, so there's that
oh lmao
that's the problem Choco, discussions between friends can be "severe" and "disgusting" to other people, but to each other it's just another daily occurrence
thought they were toasts
I personally don't make racist jokes or the sorts, but I know people with perfectly fine characters that do
if your bantering between friends contains being racist, you should not be doing that publicly on a server
simply because it's humor
that's how humour works
"publicly on a server"
you don't keep anything in memory do you
we're talking about a private server
A private server is still public
no it is literally not
No?
why would you get reported on a private server
It COULD be public
they also made a built in ban system
jesus christ if you want to join in please read the whole chat
that doesn't need fancy server implementations like spigot
a private server still contacts mojang
On a whitelisted server: <#help-development message>
On a non-whitelisted server: <#help-development message>
they made banning, muting and whitelists a thing
- servers can be private, friend only
- friends can report you simply because it's funny
- Minecraft doesn't have that context nor care
Your friends are going to have to learn
If they're reporting you for saying rule-breaking shit, you deserve to get banned
Still need new friends
2b2t mfs gonna bust out the supercomputer to crack the hashes and be able to fake messages
yeah, they'll learn when they get several people banned on their primary accounts
Yes... it's not a toy...
and guess what, over a joke
It's a feature that sends a report to Mojang
If you are using that because you want to be funny, play stupid games, win stupid prizes
if anything
waste of 30$, let's all just crack the game and run cracked servers
repeated false offenders should get banned ngl
Don't know if you mean "false reporters", but if you do, they will
lol, that's what I proposed on LibrePremium
False report issuers get banned for misuse of the system
Choco
If I ever get false banned, I will just run offline servers
either that or some idiot is gonna ddos the report servers and prevent all reports from coming through
You can't join an offline server if you're banned ;p
if you're not using session servers you can
Piracy, cough ๐คจ
the people who don't understand Minecraft's reporting system are the ones reporting, those are the ones not taking it seriously. The ones to deal with that is the poor friend who made a joke, and the other person made another joke (to them): reporting you to Mojang
Still, we don't support it yet
We will discuss that topic later
I just can't see this being a valid argument against it. If you were reported and banned for something, you said something that clearly was not okay. Regardless of whether or not your friend was the one to report you. If your friend is jokingly reporting you, they've shot you and themselves in the foot because now you can't play together. To me, that's the system working as intended.
So just to be aware. Is there no way we as programmers may prevent players from reporting each other?
Mojang has been very clear who they intend on banning
the plugin by Kacper may work with this
They should have been clearer earlier, but they have numerous articles now explaining
"clearly was not okay" why does Mojang get to decide what's not okay between 2 friends on a private server though? Yes, because they own the game. But that's not how it's been treated for the past 9 years (since I've been playing)
I bet 90% of people will forget player reporting is a thing in a few months
?????????
Kacper on top leagues ๐ช๐ป
Mojang communication. Damned if they do, damned if they don't
๐
If they don't do it, they're not listening. If they do it, they're pandering to shareholders
this is more of a microsoft decision than mojang honestly
wtf do you want?
reporting is just another way to make the game "more child friendly" so they can advertise it to parents as a safe way to play with friends
but I don't care about that
because it's a company
Bigotry and pedophilia has no place on the internet anywhere
and companies will do company things
I released a plugin on a server, everyone hated it for 3 days, it's been a month and everyone has forgotten about it
"oH yOU aRe ReStRiCtInG oUr frEEdOm"
Choco fanclub ๐คจ
I barely play MC anymore, and I also don't hangout with friends on it~ nor would I be punished because I don't make the dark-humored jokes that they 'would ban for' (source: Choco)
it's not going to affect me
but that doesn't mean I'm not going to care lol
I wont in a few months
but rn it's a topic being brought up
it's just human nature
It's all fun and games until mojang says "Okay we've been having lots of false reports, so all server messages shall pass through mojang now" ๐คก
Illusion
transfer packet? nah
I mean they could just
like
do a chat filter before actually sending the packets to a server?
it would've been a lot easier
Just try to use some nEuRAl nEtWOrK
lmao
what is it
he forgor
blockbench x spigot guides?
modelengine
was

now you're doing crazy frog
it's a very good idea
both make people do weird stuff

oh
model engine is a plugin??
i thought it was like a software
you made models in bruh
no
you make models in blockbench
you toss them in modelengine
and its horrible api turns the models into armorstands
and makes a resourcepack for you
it's magical but the api is damn horrible
you gotta have a bone with a specific name, with no inheritance in order set it as a vehicle
there's a free version
that has a "6 model limit"
that you can just bypass through an injector plugin
its the only way to render them in?
i mean tbf what i was gonna make is kinda simple maybe idk
looking at the code
I doubt the 6 model limit is even a thing lmao
Maybe there's a licensing system on the paid version? But I don't see anything on the free version that would limit stuff
one thing I want to start messing with this year is armorstands
I feel like I could make a shitty modelengine that is 10x worse
might make a texturepack that just has an item as an arrow
then I'll make a for loop that just rotates the armorstand's head in a way I can understand how to control
im looking for a quote as i cant be bothered lol. who would be interested in developing "Metldown" from https://noxcrew.com/mcc
this is not the spot to outsource work
true but are u interested?
I have way too much work already
which is why I wasted like 3 hours of my life typing today
haha
KWD
??
The first argument when initializing a namespaced key is your main class, eg the class extending JavaPlugin
Ik but idk how to do it
Does anyone know how to run something every time a particle spawns?
Well the server has no concept of particles so if you're looking for an event, you're SOL. Though using ProtocolLib you can listen for outgoing particle packets and do something based on that information.
Is there an event for when a player types in an anvil or do i ahve to listen to packets?
how to run anything every tick?
use the scheduler
The typing itself is client-side
What were you trying?
if the client is 1.8 typing into an anvil is sent every letter iirc
๐
god older mc sent so much unnecessary data
so... is there any vid about how to run anything every click
Live player search function
pog
just looks prettier than typing it in chat
yeah thats for when the item is put in pretty sure
no
wait wdym
too easy
I'm tryina make myself an eulerangle visualizer because my stupidass can't wrap my head around
plot twist: I'm sleep deprived
euler angles are hard lol
yeah but so is my will to become a hypixel dev
specially after they taunted me with a rejection email after way too many interviews
if you get in, get them to unban my friend
not my job
I just want to be able to turn on my ghost client without getting banned type thing
how to detect clicks for an item with certain id? by id i mean the thing using meta
tell them to unban me its been like 5 years plz ๐
35 minutes in and I'm looking at gimbal lock
So this is possible but i dont work with custom Anvil inventories
for some reason PrepareAnvilEvent doesnt get called for it
client literally sends packets
paper sends events
so why wouldn't you receive them
PrepareAnvilEvent
maybe the item is null because you didn't set any item
but AnvilMenu internally has an itemName field
yeah im not sure
and you can call AnvilMenu#getRenameText
So in theory
PrepareAnvilEvent -> getRenameText -> render stuff
With GUI's, is the best way to add functionality to add the maps to list and then find the inventory in the list and cancel the click and do other stuff?
Because I don't like checking for the name
And a map for individual maps for each player?
use InventoryHolders
whats that?
so make your class extend InventoryHolder then you can just check if the holder in the event is equal to your class
so just do the list thing?
?pdc
hey guys i got an question its something essential
but i started doing methods so far didnt really use them in the past and made messy codes
public void startfm() {
if(!XFile.exists()) {
ZXTools.getInstance().saveResource("X.yml",true);
CLogger.ConsoleChangeMessage("X.yml was created");
}
else {
CLogger.ConsoleDefaultMessage("X.yml was found! ");
} < now this is the method
in general the issue is once i use it from main class
" FilesMananger.getInstance().startfm();"
it causes NullPointerException
just show which line it points to
no
by the looks of it you are abusing static but whatever
which line does the npe point to
Does getInstance return null?
nah i dont really abuse static
i cloud make the whole filemananger class static
i made an instance
instead
well maybe yeah i abuse static
but not for no reason
public void startfm() {
if(!XFile.exists()) {
ZXTools.getInstance().saveResource("X.yml",true);
CLogger.ConsoleChangeMessage("X.yml was created");
}
else {
CLogger.ConsoleDefaultMessage("X.yml was found! ");
}```
public class FilesMananger {
private static FilesMananger instance;
public static FilesMananger getInstance() { return instance; }
yeah either
ZXTools.getInstance() is returning null or XFile is null
thats the way i made the instance
btw XFile is incorrect naming convention
nah XFile is fine
where do you create it?
not in main class
you are declaring it but not creating an instance
so i made an instance so i can run the method from there
(im creating many files in once)
how should i declare the instance?
ill google it
well i have found what i already know
hmm anyone minds to go call and codetogether to explain my how to do something correctly without abusing static :D???
what is "something"
asap i dm u
how can i find the placed block at inventoryclickevent
getCursor is not accurate
if you place one with 64 in your hand it won't return an item stack with the size of one
and its causing a dupe in my plugin
show code causing the issue
that depends on the click type
placed block in inventory click event?

typically most dupes in block breaks/inv clicks tho are caused by running something a tick later that deals with editing an item in said event/removing said item from event (EG in a runTask)
~solved by epicgodmc (dep inj)
ooooh yesss dude
god i would rep farm sooo hard
Burchinator ๐ฎ

whats that
I got bored so started making a custom items blocks and enchant plugin but then got bored making that
have no idea why i named it burchinator
๐
wtf elgar
your plugin npc takes damage
idk why i still have this installed on my pc lol
oh great
using LivingEntity in 1.19 and 1.19.1 NMS is fucked
why didnt they use a new package name in craftbukkit for 1.19.1 D:
is there anyway i can modify a registered event listener
so its not ignoredCancelled ?
i done this
but kinda won't work
Why do you need to do that
what they do?
There might be better ways depending on what the goal is
you need different mappings for 1.19.1 and 1.19 even though both are 1_19_R1
why tf did mojang change shit
well it's just their obfuscation
I guess spigot is now "responsible" for changing the package name if stuff like this happens
mmmmbruh
seems like one cannot rely on simply getting the org.bukkit.craftbukkit package name anymore
They probably added a method or smth. Caused ProGuard to change method name
yeah
and for real
why do they obfuscate the names anyway
if they at the same time, release the mappings
lol
or like 3 ebooks
i would assume one to be like 10mb
hm let me check
oh yeah .epub is quite large
I got a 300 pages java ebook in .epub, and it's 7mb
but it also includes some pictures
average kindle ebook (they use their own format) is about 2.6 mb for 300 pages
battery last a long time?
it's because they dont have a normal display, but "e-ink"
they only need battery when changing the page
wtf
wtf
thats whack
Picture this: a screen that doesnโt give you eye fatigue after staring at it for a long period of time, lasts for weeks on a single charge, and offers glorious full color.
Picture this no longerโthis is reality. E Ink is finally in color, and 2020 could finally be E Inkโs year to shine. E Ink devices with color displays, like the Hisense A5C an...
๐
it's really interesting how they work
and they are quite cheap, I think the cheapest one is < 100$/โฌ
I got the paperweight 11
paperwhite*
yeah lol
man why doesnt gaming laptops use eink
it only needs power 60 times a second that way
not as cool as this bluetooth hose tho
๐
i thought it was lips 
for people that know how json and javascript work:
function getWeather(){
fetch('https://api.openweathermap.org/data/2.5/weather?q=bucharest&appid='+weatherApiKey+'&units=metric')
.then(result => result.json())
.then((output) => {
var json = JSON.parse(output)
var temp = json['main']['temp']
var tempMin = json['main']['temp_min']
var tempMax = json['main']['temp_max']
var weather = json['weather']['main']
var city = json['name']
}).catch(err => console.error(err));
}
setInterval(getWeather, 30000);
Is my syntax ok to get temp, temp_min, temp_max, weather and city?
like a creepy smile
4K is like only 8 megapixel btw
lol
yes

even my 15 years old camera has > 20 megapixels ๐ฎ
api json stuff typically should use _
why do you know this stuff
well you just do 3840 x 2160 and than it's about 8.3 million
inside code is where you can use camelCasingIfYouLikeInJavaScript
but yeah, like_this_is_industry_standard
but who cares about industry standards
fuck the system!!

i got a canon eos 5d mark 2, which is 14 years old now, and it has 21.1 megapixel โค๏ธ still works like new
can it run minecraft
cause a non open source plugin
is causing a plugin with ignoreCancelled
yes sir
and shouldnt get called when the event is cancelled
btw I got birthday in february and I want this as gift from all of you pls
var json = JSON.parse(output)
bro i am broke
if an event is cancelled
its "only" like 8k$
will the other listeners get called ?
no
based on the priority of your listener
did you even see if you needed json parsing for that
a lowest wont get called ?
it is json already
so no need to parse
doesn't that make it a json object or something?
lowest gets called first
i am not familiar with json and javascript
so i should cancel lowest right ?
the order of event execution is LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR
depends, what are you trying to do?
well json in javascript is just json
and when you try to parse json 2 times over
there is this gencube plugin
that error happens
monitor should never cancel events
City: Bucharest ,Weather: undefined ,Temperature: 30.95 ,Temp Min: 29.92 ,Temp Max: 32.21
oh yeah
it worked!
no not monitor
You can do if (typeof variable === "string")
And parse to json if you need that way if true
highest
weather is undefined somehow but will solve that
so i was saying
cancels the event
and the minecube with ignoreCancelled
still fills the inventory
even if the block is not broken
likely something with the api server returning a empty value
and its closed source
typically you wanna cancel events at lowest so that all other listeners know that this event is already cancelled
so just ask the author to stop being a dum dum
this
ignoreCancelled is the stupidest thing no cap
on god
this ^
depends
ignoreCancelled makes sense sometimes
for example, an anticheat plugin might cancel a blockbreakevent, then you can uncancel it if it was only cancelled for "anti cheat" reasons
alot of times its just in ways it does not make sense though. and breaks shit for other plugins
yeah true. imho "ignoreCancelled" should be true by default instead of false
the gencubes is highest and ignoreCancelled false
the skyblock is lowest
it cancels
but the gencube still gets filled
WHY
because ignoreCancelled is false
ignoreCancelled = false means, the listener gets called even for cancelled events
because it doesn NOT ignore cancelled events (ignoreCancelled = false)
so i should true the cancelled in gencubes ?
if you set "ignoreCancelled = true", then the listener only gets called for "not cancelled" events
and now buy me this pls
lmfao
including the lens
alex getting paid
in cameras
so
skyblock lowest
gencubes highest and ignoreCancelled true
still getting filled
why
he just told you
what should i do then
if skyblock cancels at lowest, and gencubes listens on highest with ignoreCancelled = true, then the gencubes listener should NOT be called
(unless another plugin uncancels it)
whut
maybe that caused it ?
wdym you changed the priority with reflections?
did you get the event's handlerlist and modified it with reflections? o0
wow that's some dirty shit
cause the gencubes is closed source
you shouldnt do that
hm
what a shitty plugin. if a plugin is closed source, it should at least allow to set the priorities in the config
the gencubes is ignoreCancelled true lowest by default
imho lowest should be used only to cancel events, and higher priorities if the listener actually wants to "do" any stuff
and you know what is worse ?
I always just make the priority configurable
that's pretty normal lol
is it something like this
^somethingi have been working on
ignore my abomination of testing
well if ur ever gonna look for something else. i plan to make something very similar with my own spin on it
its not quite done yet though
still gonna take a fat minute to complete
bukkit event priorities are still weird to me bc of this
hm it makes total sense to me. except that "ignoreCancelled" is false by default
it's called "highest" because that plugin can "override" whether a "lowest" plugin cancels it
im used to HIGHEST meaning the handler runs first in the queue
lol
so i would typically use LOWEST to make a handler get called last
it works like in an administration building. first, the "lowest" worker gets to work on a case. the "highest" ranked dude only gets notified if something went wrong on the lower... priorities
No, lowest gets called rirst
ik for bukkit ye
if you think about it. the higher the priority the higher the impact the event can make so make perfect sense
e.g. the president is the highest person and he doesnt decide every case. normally, the administration's "lowest" workers get to work on a case and the highest person only gets notified at the end of the queue to have the final decision
same like for court decisions. the lowest court decides it first. the supreme / highest court has the last say, hence "highest"
would be weird if a county's court would be called "highest" court, while the "supreme court" is the "lowest" lol
so yeah it's confusing. its not called HIGHEST or LOWEST because of the order of execution, but because of "who has the final decision on whether this XYZEvent gets cancelled"
tried to find an example of what im used to but guava doesnt even have event priorities lolwtf
but Forge eventbus follows the way im used to lol
oh already 11.30 am, time to get a beer
highest gets called first and lowest is last
that would make sense if events weren't cancellable
as said, just remember my court example from above
then it makes perfect sense
u know the codes bad when theres 20 different bugged things in the world
jkjkjkjkjk looks cool ๐
:((((((((
bc if i think priority i would typically put highest near the "first"
"u know the codes bad when epicgodmc coded it" lol
so bukkit has it backwards
jkjkjkjkjk โค๏ธ

gotta PR changing the call order of bukkit events 
yeah "priority" is indeed a weird word for this
yeah md5 would totally approve this lol
yess
allow-ddos: false
Hackers hate this trick!
its so easy
fabric event bus has no priority/power system either ๐
must be a weird niche for handlers to need to be called in a specific order
im really surprised google guava didnt have it
when just googling "event priorty", 4 of the first 5 results are bukit/spigot related lol
and one weird facebook thing
i keep forgetting facebook is meta now
wont that be personalized ?
oh btw since we talked about kindles earlier: they are also perfectly readable in direct sunlight, unlike normal phone / tablet screens
THEY LOOK LIKE A REAL BOOK
but they don't have cancellable events
wait wtf, they contradict themselves
they say 1 is lowest and gets called last
however here it's assumed that 6 (higher than 5) runs after 5
it also says something abt parallel idk
rip
an alternative could be a very literal value name like
Order or CallOrder
Order.First, Order.Early, Order.Middle, Order.Late, Order.Last
is it
yes!
hey so I am trying to make placeholders for my plugin so like
%pluginname_eco {player name}% would show how much eco that specific player has
I have been able to make
%pluginname_eco% which just shows the player their own eco
I need this for say, a sort of shop system so the shop can check how much eco the player has
what's your question though? ๐
how to get the player name from the placeholder?
You could just check if the placeholder starts with "pluginname_eco_", then get the remaining string, and that's the playername, and ...
lol SCNR
ye my question was like how I can make it work per-player
as I said
public Integer onPlaceholderRequest(ProxiedPlayer p, String params) {
if (p == null) {
return 0;
}
if (params.equals("eco")) {
return checkPlayerEco(p.getUniqueId());
}
return null;
this is the code for the player's eco (pluginname_eco)
Has anyone ever created custom Toasts?
Achievement Toasts
mmm toast
you'd need a datapack for that I think
how exactly would I do that
/toast command
CMI ( one plugin ) for example does that without anything
wtf is a toast
that "Achivement Achieved" thingy
You sure thats not using a texture pack of some sorts?
nope
no resourcepack was installed upon install
the main issue is that im trying to make this all work with BอญออคUอฅฬฬNอฉฬอญGฬอฬพEฬฬฉฬผEอฬฬพCอออคOอออซRฬอฆฬDฬฬอ
no, you don't need a resource pack
ye I think so
all you need is a datapack
[IMG]
Create 1.12 Advancements with a breeze!
Website: https://AdvancementAPI.com/
Helpful Links:
Wiki: https://pluginwiki.com/AdvancementAPI (Feel...
time to borrow some source code
thx
@noble lantern can be achieved like this
public static void sendToast(Player receiver, String message, CompMaterial icon) {
if (message != null && !message.isEmpty()) {
String colorized = Common.colorize(message);
if (!colorized.isEmpty()) {
Valid.checkSync("Toasts may only be sent from the main thread");
if (hasAdvancements) {
(new AdvancementAccessor(colorized, icon.toString().toLowerCase())).show(receiver);
} else {
receiver.sendMessage(colorized);
}
}
}
}
interesting
didnt know spigot made advancedments public
I don't get it
why not leave it open in case someone has questions anyway, it's not like other people couldn't also answer questions
I am going to be completely honest, I have no experience with making bungee plugins and all I wanna do is make some bungee commands (which players can use on all connected servers) and the 2 placeholders
what thread?
the one I just sent, with the AdvancementAPI
btw there's also this https://www.spigotmc.org/threads/advancement-creator-rapid-advancement-creation-library.293465/
only one minute to go
then I can drink beer without people judging
wow this is annoying. noone answers my question, everyone thinks I don't know how it works D: https://www.spigotmc.org/threads/when-does-the-org-bukkit-craftbukkit-package-name-change.566855
im still judging
I'll sentence you to listen to music disc stal
how would i fix the PlayerInteractEntityEvent from executing twice everytime i click it
ohhh
this question gets asked like twice per day lol
@ancient plank we need a command ?interactevent that says "PlayerInteractEvent may be called once PER HAND, so check the event's getHand() method" including a link to the javadocs. it gets asked here like every day lol
OffHand and MainHand
some players have the main/offhand switched
it's a client setting IIRC
how can I get offline player by name in a bungee plugin?
you can't
bungee does not save any player data
bungee only forwards packets to the backend servers, and does nothing else
so I cant get an offline player in any way on a bungee plugin?
no
oof guess im taking the hard way
Bungee shouldnt be handling stuff about players
what are you trying to achieve anyway?
sounds like you're trying to do spigot stuff on the proxy
^^
i mean... you could of course let your bungee plugin maintain it's only player database in a mysql database, json/yaml file, sqlite file, .......
but probably there's a way better alternative if you tell us what you're trying to do ๐
erm
you cannot return an Integer
you also cannot make it require a ProxiedPlayer
you also will never have any ProxiedPlayer object on a spigot server
you just didn't understand what bungeecord does
it has nothing to do with spigot
wanna i bet i can make one ? hehe
how must I make placeholders on bungee then
ya dont lol
am I going to have to make another plugin seperately for each spigot server aswell along with the bungee one for the commands?
that depends on what you are trying to do
my placeholder just grabs a value from a database which I have connected the plugin to, and shows it to the user or whatever used the placeholder
and you are sending this message from bungeecord?
in papi we just return a value for the used placeholder we dont send any messages right
yes
atleast in the 2 tutorials I watched
welp.. looks like I am going to be making a seperate plugin to put in the spigot servers too
why the hell are the file names appearing red even thought they have absolutely no errors
(IntelliJ)
ohh wait shit I forgot to update them on git
capitalize them
Streak
Parkbucks or ParkBucks
how can I set an Item in to anvil tried to do
inv.setItem(0, new ItemStack(Material.PAPER));
but that wont work
Make imajin do it
will do!
@quaint mantle can we get this pls? :3
How can get a block in array by chance
exemple
cobblestone: 80%
iron: 15%
coal: 5%
generate a random number between 0 and 100
then check if it's < 80
if yes, set cobblestone
if it's less than 95, set iron
otherwise set coal
git*
e.g. ThreadLocalRandom.current().nextInt(0,100) <= 80
how can i installl this api (https://github.com/WesJD/AnvilGUI) into my 1.8.8 project. Please anyone help ^^ thx
are you using maven?
if yes, add the stuff mentioned on their github readme into your pom
[00:25:03 ERROR]: Could not pass event PlayerJoinEvent to Simpleplugin v1.0.0 java.lang.LinkageError: loader constraint violation: loader 'simpleplugin-1.0.0.jar' @5b0ffae wants to load class org.geysermc.floodgate.util.DeviceOs. A different class with the same name was previously loaded by 'Geyser-Spigot (3).jar' @4dc5ff2c. (org.geysermc.floodgate.util.DeviceOs is in unnamed module of loader 'Geyser-Spigot (3).jar' @4dc5ff2c, parent loader java.net.URLClassLoader @5c29bfd) at com.plugin.simpleplugin.util.ToolBoxChecker.hasToolbox(ToolBoxChecker.java:14) ~[simpleplugin-1.0.0.jar:?] at com.plugin.simpleplugin.Simpleplugin.onPlayerjoin(Simpleplugin.java:111) ~[simpleplugin-1.0.0.jar:?]
i got this error help
yes
You shaded geyser into your plugin
yikes
how to fix that
are you using maven?
don;t shade it
btw I've used maven for 3 years and only recently discovered that "maven" is an english word that means sth like "expert"/"genius" lol
lol
i wonder what "gradle" means
Gradle doesn't have such a poignant name https://www.urbandictionary.com/define.php?term=Gradle
A dank ass Widespread Panic song heard best under the influence of alcohol or narcotic to โheightenโ the experience. This song was written by John Bell and only called Gradle because he happened to be using the โGradlโ font on his computer when he wrote it down.
A dank ass Widespread Panic song heard best under the influence of alcohol or narcotic
yeah true
freak
?interactevent @tender shard
The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.
For example, only executing code if the main hand was used:
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
return; // do not progress past this point |
}
// provide functionality
}
but how i can make this, for that ?
1:
2:
That was tier
and values was
block: chance
hey i have a question
is the book page limit on the bookmeta or bookitem?
because if its on bookitem then it would make my life much easier
since I'm trying to run Player.openBook() with a bookmeta that may be more than 50 pages
The PlayerInteractEvent may be called once per hand. If you only want code to be executed once, you can check the result of https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getHand(), then decide functionality.
For example, only executing code if the main hand was used:
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getHand() != EquipmentSlot.HAND) { // * if the hand used is NOT the main hand:
return; // do not progress past this point |
}
// provide functionality
}
that's awesome, thanks!
i remove it but it still not working
?notworking
"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.
run mvn clean package
then you should have a working .jar without geyser shaded
btw geyser's naming scheme is fucked
they only called the artifacts "api" and "core" lmao
it should be "geyser-api" and "geyser-core" lol
(not something that YOU have to change, it's just geyser's fault)
thank i will try
How can I get the block back in relation to a probability
My configuration looks like this
TIER:
blockId: probality
And at each tier there is 1 block which is added and thus the probality changes according to the tier but it is not the goal here
How can I get the key (blockId) of the tier I'm asking for according to a probality
1:
0: 80
1: 20
2:
0: 80
1: 10
2: 10
Code: https://paste.md-5.net/emegecuxex.js
Error: https://paste.md-5.net/woliqurabu.bash
If I rl / start (the lang is en) then server it gives me a null pointer but if I switch the lang to de and back to en it works anyone a clue why
still error ;-;
Did you use the new jar
yeah
Doesn't look like it
Make sure you did a restart and that you don't have 2 of the jars
How do skyblock islands / private prison mines work technically? With having multiple world borders and stuff in one world?
Instead of having 1000 worlds, one for each player
its only 1 in the dependencie
isnt that just one big world with different islands and different borders?
its so hard to fix that
Yeah it doesnt get more simple than that
How should I go about placing thousands of blocks and breaking hundreads at a time without lag? Like those enchants do on prison servers
there is a forum thread for that
Can I have a link
any difference between Plugin.getLogger() and Bukkit.getLogger()
yes
Bukkit.getLogger() is of the server
and i think Plugin#getLogger() is the plugin logger
plugins logger with your plugins prefix
yeah
After a entire days worth of debugging
I am still not a single step closer to figuring out why my custom entity does not send update packets
packet entity or Bukkit?
Neither
NMS Pathfinder entity wrapped into a custom bukkit entity and added to the world via bukkit
what about the entity is not working?
The issue is that the entity is created and ticked properly on the server, but the client is simply not receiving any update packets about it
If you added it to teh nmsWorld, it exists as a Bukkit entity
well if itโs added via bukkit, bukkit is aware of the entity and should deal with it
Indeed, it should
And the server processed it properly
Plays step sounds, attacks players etc, etc
And yet, it does not send a single update packet to the client after initial spawn
hmm, i forget the exact process but iirc this is probably a missing data watcher or something?
Default datawatchers are initialized
have you looked at how mojang spawns an entity
well, there must be something lol
And yet somewhere between 1.18.2 and now, there has to have been some change that broke it
As it worked just fine before
well, 1.19 didnโt change that much to do with entities afaik, very weird
The entity exists and is processed
The server even plays step sounds apropriately
And yet not a single update packet is sent to the player
weird, can you share your code for spawning? iโm admittedly not at my computer but if elgarl is still around
static Pathfinder spawn(Location loc) {
CraftWorld w = (CraftWorld)loc.getWorld();
PathfinderMob mob = new PathfinderMob(w.getHandle());
w.addEntity(mob, CreatureSpawnEvent.SpawnReason.CUSTOM, (e) -> e.teleport(loc), false);
return new CraftPathfinder(mob);
}```
you don;t everride doTick?
doTick is not a thing
it is in mine, but I only have ServerPlayer code as an example
I am using mojmap for what its worth
same
But doTick is not a method in the superclass
I call super.baseTick()
else I'm afraid I can;t help you on that. I've not messed with Mobs yet
Which does not do anything in terms of mob updates
Well, I have found the issue
The EntityAdd packet has changed, which you have to provide when defining the entity
In 1.18, the entity was determined by a registry check for the object type
So I was forced to overwrite the entity type via reflection
Apperantly, that behaviour broke it
ah
Simply providing a non-spoofed packet solved it
Hello everyone, I have a small problem with my config file.
In this file you can add colour codes to texts, this works fine with the & sign. However, if you use a ยง, this special A symbol is displayed in the chat. Doesn't this symbol have the same meaning as "\u00a7"?
Just don't use ยง?
Im assuming its an encoding issue, like not saved in the right UTF-8 or whatever system
But it shouldn't matter, ยง shouldn't be used either way
You can use ChatColor.translateAlternateโฆ. which converts ampersand color codes to section symbol ones.
I use the MineDown library to do that plus much more
^^
Right so, I need to develop something for 1.7.10, does the Minecraft Development plugin for IntelliJ not support it?
Nothing supports it
ah, pain.
1.7.10 is a new low ๐
popular for modded
I believe it was the last version that had the really good redstone mod
I've searched the internet and there seems to be absolutely nothing that supports it anymore nor any documentation available that I can find lol. I found the API and how to set it up but i can't do much from here
it's pain
you would do better learning plugins writing with a current API
crippling yourself with an ancient API is like doing it all while blind
Holy
It legit looks like it was 3 years ago or so
is craftbukkit/spigot even availiable for 1.7?
time is going by too fast i dont like this
i though that was when the dmca hit
https://github.com/WesJD/AnvilGUI/blob/master/README.md how can i use it
?
Pls help
thx
Guys
it was around there
there are literally several examples in the readme
thanks for the information you provided
i diagnose you with: did you read the whole thing
np
no work
is there a better way?
abstract class Command<T> {
String name;
abstract void execute(T t);
}
class DiscordCommand extends Command<SlashCommandInteractionEvent> {
void execute(SlashCommandInteractionEvent event) {}
}```
my englsih not good sry
then show what u did
?paste what you did
yea thats ur pom.xml
yeah but that not working
the dependency isnt even in there
could you stop tagging me
people will reply when they have time im not in the mood for this now
sorry
do a rnd 50 50 and then on that damage armor or not
which team are you
1)java Player.closeInventory(); Player.sendMessage("some error message");
2)java Player.sendMessage("some error message"); Player.closeInventory();
probably the one that doesn't capitalise a variable name ๐ค
damn
I'm on team javw conventions
I'm trying to change an item in the PickupEvent using .setItemStack() in the Item class, this doesn't work, I even tried to cancel the event and remove the cancellation putting a delay of 1 tick between them, doesn't work, any clues?
Hello, I'm facing something weird with Bungeecord, so when I execute bungeecord commands it sends me the messages as actionbar, like that:
And at first it wasn't a problem but when I coded a Bungee plugin that has a command to send you a message, it sent the message as actionbar too, why is that and is there a way to disable it?
wich maven repo do I need for packets like net.minecraft.server.v1.8_R3
?1.8
Too old! (Click the link to get the exact time)
bro I know its not for me its a favor for someone
๐
conclure
have you already seen my recent contribution to this community?
if no, enter ?interactevent
Oh yeah I saw
it would be nice if we could also get a list of all "custom commands" ๐
e.g. ?configs, ?pdc, ?notworking, ?learnjava, etc
Yeah, we used to have ?cc list publicly accessible
However, it was often used to flood channels
Hence the removal
Yeah
?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.
?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.
?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.
?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 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.
I mean Id definitely want some upgrade in terms of the discord bot, like using individually virtual interactions etc
there should just be a cooldown for custom commands for everyone
we could just make a spigotmc wiki page that lists all the commands

