#help-development
1 messages · Page 1935 of 1
person may not have been initalized
eclipse flashbacks
how the fuck doesnt this set it to something
That is javac
what's s?
a string cannot iterate
then that key is not a configurationsection
a: "123"
b:
c: "123"
a is NOT a configurationsection
b is
so getConfigurationSectino("a") returns null
and b.c isn't a configurationsection either
"a" in this case is a Key that has string associated to it
"b" is a key whith a configurationsection associated to it
the issue is in that example my string is asking for whats behind b
like using 'b' as key
and i know the config i use isnt null
for(String key : config.getKeys(false)) {
if(config.isConfigurationSection(key)) {
ConfigurationSection section = config.getConfigurationSection(key);
// Do your stuff. Now you can be sure it's a section
}
}
I have a headache, I should drink some jägermeister
ah i found the issue
typo in config
anyways
how do colours work again? Throwing a &2 at the client does NOT change it for some reason
Use ChatColor
ChatColor.translateAlternateColorCodes('&',"&2My Message");
i only want part of the message to be coloured tho
Bungee has hex now so 👀
you could also directly use § but you don't want to use that
use &r then
?
&r resets the chat color
&aGreen &rnormal
urgh the numbers dont work
A book showing the possible formatting options with the character that performs them.
Formatting codes (also known as color codes) add color and modifications to text in-game.
Text in Minecraft can be formatted with the section sign (§). In Bedrock Edition, the section sign can be entered into signs, world names, books, renaming items and ...
thats why im asking
they do work, show your code
colour = cs.getBoolean("implemented") ? "&2" : "&4";
msg += colour + s + "\n";
yeah you didn't use CHatColor.translate...
?jd
Can the objects stored in AtomicReferences get garbage collected?
not when you still have the reference
msg += ChatColor.translateAlternateColorCodes('&', colour + s + "\n)");
so if the atomic reference is the only way to obtain the object it will get GC'ed eventually?
nah why so complicated. Just put your whole string together and at the end, run it through translate all in one
not if you still have the reference
thanks!
GC just removes everything that isn't referenced from anywhere
works now thanks
everything that has a "pointer" to it (it's in a map, in a field, in an AtomicReference...) is not collected
nevermind &r isnt getting applied for some reason
do items have their own uuid or
how would i save them into a database, and spawn them later or something? (they're saved in region files afaik)
no
items lack a uuid
you have to serialize them
e.g. BukkitObjectOutputStream or however it's called
one sec
Ye, BukkitObjectOutputStream
or look at this @muted sand https://github.com/JEFF-Media-GbR/JeffLib/blob/master/core/src/main/java/de/jeff_media/jefflib/ItemSerializer.java
this one is easier to understand^
so msg = ChatColor.translateAlternateColorCodes('&',msg); does correctly parse the colors but not the &r for some bizarre reason...
it does. print out your msg before applying translate and send it here
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try (BukkitObjectOutputStream boos = new BukkitObjectOutputStream(baos)) {
boos.writeObject(itemstack);
}
byte[] bytes = baos.toByteArray(); // Then convert these bytes to a base 36 string or whatever you want
Are there any good, uptodate libraries for inventory menus with lots of tweaks and stuff? Some must-have, all-in
yeah I should update my library to use try-with-resources too
wait how exactly does &r work
I'm currently writing one but it's far away from finished
it resets back to white, non-bold, non-underlined, non-italic, non-ubfuscated
or wait
not white, but uncolored
e.g. purple in lore, white in chat
I personally use the inventoryGUI lib from phoenix616, but idk how up-to-date it is
ah
it certainly works, but is lacking in stuff like adventure support
I only drink cheap beer 😄 7.99€ per crate
ah okay
thanks!
inventoryframework is nice imo
and it has adventure support ^
IF is looking very very nice, thanks!
tho, haapi, if you are on paper its better to use ItemStack.serializeAsBytes
99% of people here code for the public though
Whst stops you from doing public plugins with paper support
the fact that serializeAsBytes is not available in spigot
so your plugin will only work with paper
abstract out it
how would i make 1 minigame instance per server (create a server when i want to start a minigame, close it when it ends)
Use MethodHandles to support both
or just directly use the output stream. I guess paper does the same anyway
Hm, interesting. I'll keep that in mind next time I need to serialize something
Though honestly, DFU bad
Spigot ones just use ConfigurationSerializable, which, rh, is not thst good
using that is almost useless for items, it gets rid of lore enchantmenets etc
Especially when you update your server
fr??
anyone know why the sysout doesn't fire? Doesn't make any sense to me:
@Override
public void onEnable() {
// Plugin startup logic
getServer().getPluginManager().registerEvents(this, this);
System.out.println("BedBreaker9001 is starting up.");
}
@Override
public void onDisable() {
// Plugin shutdown logic
System.out.println("BedBreaker9001 is shutting down.");
}
@EventHandler
public void onBedEnter(PlayerBedEnterEvent e){
System.out.println("Bed Enter");
if(e.getBedEnterResult() == PlayerBedEnterEvent.BedEnterResult.NOT_POSSIBLE_HERE) {
System.out.println("Illegal");
e.setUseBed(Event.Result.DENY);
// Cancel so that spawn isn't set
e.setCancelled(true);
}
}
I have another event in the same class that does work
@EventHandler
public void onEndCrystalExplode(EntityDamageEvent e){
if(e.getEntityType() == EntityType.ENDER_CRYSTAL){
// Remove entity so there's no damage and cancel the damage event
e.getEntity().remove();
e.setCancelled(true);
}
}
which sysout
the "bed enter"
public final class BedBreaker9001 extends JavaPlugin implements Listener {
hmm
JavaPlugin doesnt even need to implement listener im pretty sure
implementations aren't the issue cuz that onEndCrystalExplode is in the same class
it do
so it doesn't make sense why one works and the other doesn't
ah im wrong then
how are you testing it?
setting it to night and sleeping
it doesn't implement Listener so you do need to implement it yourself
Probably that if statement is wrong
the sysout above it doesn't work either
mhm
hm
So probably the problem is that that event does not fire when it is supposed to
Are you sure that’s the right event?
i stand corrected
What server ver are you running, and is it updated?
it definitely is
This event is fired when the player is almost about to enter the bed.
so when does it fire now
I presume so
it spams if he stands near a bed 
*almost != when
what is DFU?
Data fixer upper
well how many items do you have to serialize per second though?
Mojank's serialisation thing
well yes but there's no other bed entering events
so this must be the one
ok so
Thsts not about speed
its not about drive
The fact is that it does not fire
it's not about power
we don't stay hungry
we don't devour
what event is that?
it sys outs the stuff now, must've been a faulty build or something. however it doesn't stop the player from sleeping in the nether and hence blowing up
PlayerBedEnterEvent
uhm, isnt that an utility for data structure migration?
because he is not about to enter the bed, he is about to let it explode. check the interact event
hmmm interesting
public void onMobSpawn(EntitySpawnEvent event) {
Location location = event.getLocation();
List<Entity> nearbyEntites = (List<Entity>) location.getWorld().getNearbyEntities(location, 8, 8, 8);
System.out.println(nearbyEntites);
System.out.println(event.getEntity());
System.out.println(nearbyEntites.contains(event.getEntity()));
if(nearbyEntites.contains(event.getEntity())) {
event.setCancelled(true);
System.out.println("Nearby same-entity-type found, event cancelled.");
}
}```
Anyone know why `nearbyEntites.contains(event.getEntity())` always returns false?
Console prints out
```[13:37:50 INFO]: [CraftCow, CraftPlayer{name=PrayRNGesus}, CraftCow, CraftCow, CraftCow, CraftCow, CraftCow]
[13:37:50 INFO]: CraftCow
This in theory should return true?
I saw some github thing aboutb it and it used this instead of the interact event
but it must've been wrong
because it could be different cows?
is 1 month and a half enough to get an entire network up and running with only 1 developer with mostly custom plugins
youre checking same entities, not same entity type
I doubt it
please use ```java so it has syntax highlighting
Thank you
Unless the plugins have already been written. If that is the case it is probably more doable
Guys is there a way to get when the world spawns an entity and change it?
declaration: package: org.bukkit.event.entity, class: EntitySpawnEvent
a high quality MMORPG? nah
Oh
this event is called when an entity is spawned
How would I go about getting the type though of the nearby entities?
I’m stupid
nah it happens lol
Is this also called by using /summon cmd?
i believe so
Entity#getType
Cause I want to make a sort of naturally generated mobs
I am pretty sure, I'll test it rn
Ty
.stream().map(Entity::getType).anyMatch((et)-> et == event.getEntity().getType()); or something
awesome thank you very much 🙂
i think it's called whenever an entity spawns in a world regardless of what spawns it
yes. you can cancel it without problems
How?
ugm well
not without cancelling natural spawning too i think
@EventHandler
public void onSpawn(EntitySpawnEvent event) {
event.setCancelled(true);
}
Well… that’s not good
by cancelling it
there's no event.getCause to check if it's naturally spawning or not
you can @midnight shore
CreatureSpawnEvent
then check the SpawnReason
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
declaration: package: org.bukkit.event.entity, class: CreatureSpawnEvent, enum: SpawnReason
Perfect
i think they only want natural generation
I just want to get when a zombie spawns naturally and with some chance change it to be a super zombie
okay there's SpawnReason.NATURAL and SpawnReason.CHUNK_GEN although the latter is deprecated
but
if it's just about zombies
don't worry, they aren't spawned during world gen IIRC
yeah i think they don't spawn from world gen
I’ll try! Ty both
np
Cannot resolve the trustAnchors parameter must be non-empty Why i get this error when i start a new spigot project?
Maven
Could you provide a bit more context about the code?
where does that come from
that is definitely not a message that maven has produced
i don't think they've written any code
they said they get the error when they start a new spigot project
are you maybe on some outdated linux distro that doesn't have the updated root CAs?
im on windows
Use eclipse to solve all the errors \s
When i create the project and maven finishes installing dependencies
good one
(i'm joking eclipse sucks)
?paste your pom.xml
(i use eclipse but i still agree that it sucks)
is there any way to get the location of a block in a block place event then get that location in a block break event? im trying to make it so that a specific block drop changes to something else
then you haven't use it for long enough
store it in a list, map, etc
Don't mind on project name xD
you could set metadata to that block then try to read it on break
you could also use a hashmap
outside of the sonatype repo it looks fine by me
works 100% fine
still my question is the same, how would i pull that meta data (which was set in the block place event) onto a block break event
please send the FULL error log @quaint mantle
pls explain what you're trying to do
Is there some way to save data to a block? Like you would do with tags regarding entities?
oh you already did
Unresolved dependency: 'org.spigotmc:spigot-api:jar:1.18.1-R0.1-SNAPSHOT'
Unresolved plugin: 'org.apache.maven.plugins:maven-shade-plugin:3.2.4'
okay I suggest you to use my library that adds "meta data" to blocks @fast temple
#getMetadata
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/metadata/Metadatable.html#getMetadata(java.lang.String)
declaration: package: org.bukkit.metadata, interface: Metadatable
^
wdym your library
Does this also happen if you use maven standalone?
oh
this block that i have already has meta data though
im just confused on how to check
omg
trust me, you want to use my library
you could use this method
wait i think im just stupid
ok ill check it out but i think something just came to me
is your windows maybe totally outdated?
No lol
How do I import a library without having maven?
ah yes windows 98 users in 2022
Running latest windows vista update
Do you use gradle?
you don't want to do that. if you want to do it anyway - what IDE?
Eclipse
then you don't
So you are probably using JDT
is there any reason why you don't want to use maven or gradle?
because if not, this is the perfect time to learn it. it only takes 5 minutes
and it will save you a TON of trouble in the future
I have this problem with eclipse, when I use maven it crushes
try gradle
Rightclick your project > Configure > Add gradle nature
tbh eclipse's maven support is upper shit
https://blog.jeff-media.com/how-to-create-your-first-minecraft-plugin-using-the-spigot-api-and-maven/ here's a guide for IntelliJ + maven. eclipse just sucks imho
also i imagined eclipse crushing on intellij when you said that lmfaooo
if i do... b.getDrops().clear; b.getDrops().ad(ItemStack);
Perfect
would that work?
wtf is b
block
oh sorry lmfao
Wow Ahaha
block
bad naming
no that will never work
Then rightclick your project again > show in > terminal > type "gradle init"
ok so how can i remove the original drop then add my own itemstack
you should get the drops, save them to a variable, then use #setDrops afterward
you WILL have to use my library or another workaround to save custom data inside a block
oh wait
listen to BlockDropItemEvent, check if it is your custom block, cancel the event and spawn your actual drops
Actually discard that
or you could use #setDrops instead of cancelling it
open a thread for this pls
no
that method doesn't even exist
Go to gradle tasks > click on project > build setup > init
INTELLIJ is really weird, I’m just addicted to eclipse 😂
thx didnt know that event existed lol
np 😄
hm, maybe i was thinking of a different event
eclipse is weird
I tried both
I switched to IntelliJ after 8 years of eclipse
so I am safe to say that I wasn't biased when I say IntelliJ is superior 😛
intellij is superior but i'm too lazy to switch
The only time I used IntelliJ I literally deleted my desktop directory for an error
I have tried intelliJ a few times and it is not that it is bad, it just more that it is hard to get comfy with
I understand that but after I switched I never looked back
is this event is 1.8? because it says it doesnt exist
oh no
no of course not, all the good stuff was added in 1.13 or 1.14+ only
1.8 ALERT 1.8 ALERT
im using 1.8 so i cant do that event then
well you're fucked then
update
haha
but i know its possible to do
NOOOO
for legacy help, you could try going to the helpchat discord server or smth
it's called legacy for a reason
what will we do
1.8 so old that even the website that told you it's old is already gone
1.8 is old but gold
the 1.7.10 one is still up lmao https://howoldisminecraft1710.today/
where pvp mechanics like 1.8
im using it because pvp mechanics r better
1.17.10 ftw
why
there's plugins to add in 1.8 pvp mechanics
just use 1.0
tfw 1.8 is gonna be played by people who are younger than it soon
soon? It's already happening id bet
I think this is already a thing
infdev minecraft superiority
well how do i change the drop of an item in 1.8
abuse ItemSpawnEvent
if that even exists back then
I feel old now, thanks
Oh jesus I am getting old
lmao that's when I started university
Life is too long
i was 7 when 1.8 released
that's how long ago it was
well 2013
ugh I was 19
you're too young
olddddddddd
no i'm erdi
(comedy)
my first windows... was windows 3.1
Oh okay now I feel young again thanks alex
but I couldnt read back then
the first windows I used when I could read was 95 or 98
my first windows pc (or rather, my uncles') was windows xp
XP came out in 2001
yeah that's about the time I learnt to read
but we didn't immediately have windows XP when it was released, so yeah - must have been win 98 or 95
should we go to #general
?scheduling
i figured it out
just 1 really weird issue
my block break event is happening twice any fixes?
but it's worth double-checking
no problem 💀
lmao
why would it better? smaller byte length? faster?
@tender shard i wasnt fucked lol i figured it out lets go
it happens 💀
erm whut
"I wasnt fucked" I'm not sure if I can help with that lol
you said when i asked how to do it in 1.8 that i was fucked
I doubt it has any "real" advantages despite being easier to access
Less error-prone
exactly
what's your workaround?
how is the BukkitObjectOutputStream prone to errors?
It might uhh
I think we went over this
Start skynet
basically i made it so that it set the drop from the item to air and then naturally drop the itemstack on the player
yes, sure, but - how do you detect the blocks you placed?
ah
I mean I copied one from a gist and it seems to work
||other than me not understanding how it works||
didn't you mention you wanted only custom placed blocks to do custom drops?
i already told u my block already had metadata
thats when i said that i realized something
that i could just check if it had that metadata
yeah sure, if that's enough for you
but now imagine you want custom drops for a dirt block
and only for certain dirt blocks
then you're fucked
also isn't the metadata you mentioned lost on server restart?
(Yes)
oh
how do i not make it lose it on server restart?
Save it somewhere
you have to use dirty workarounds like save it to file, mysql, ...
or a proper workaround, like update to minecraft 1.14+
I mean that’s not really a dirty workaround
it kinda is, because you'll have leftover data if the world gets reset etc
Databases are still preferred over PDC if you have a ton of data
yeah but IIRC this is just about identifying whether a block was player placed
and it only seems to be for a certain block type / tile entity
I thought pdc doesn't save data for non tileable bloks
why not just listen for block place event and then use the data container
but yes, PDC is not a fine way if you want to save 100MB in a block, you're right about that
Pdc isn’t on 1.8
PDC is 1.14+
1.16.3+ for chunks / blocks
It doesn’t, but you can save it to the chunk
oh?
Using the xyz as a key
ecactly that's what my library is for
well it uses NamespacedKeys, so it's always a String
it gets stored as x12y-54z3 for example
it can't be, PDC only supports NamespacedKeys
if it WOULD support something else as keys, it would easily fit into a short
Really?
since chunk coordinates are only 0-15, -64 to maxBuildHeight, 0-15
okay maybe not a short since the new build height
4 bytes for x, 4 for z, and 11? For the y
maybe it would require an int
Yeah
but yeah my CustomBlockData is perfect for stuff like the following
- Store a certain ItemStack in a block that will get drop upon mining that block
- Store the UUID + timestamp of the last player who placed this block
- Store whether this block was playerplaced or not
It's not a good way if you want to
- store a history of ALL block changes this block ever experienced
- .... tbh I don't have any more ideas
oh I got another idea
custom containers
e.g. a "weed/drug" plant that can store certain potion effects lol
Heh
you name it... small stuff = fine, large stuff = better don't
Imma use it to store a crop type for custom crops
yeah exactly that would be totally fine
I still wonder why there's no PersistentDataType.BOOLEAN
that's why I also had to create this https://www.spigotmc.org/threads/more-persistent-data-types.520677/
I know @waxen plinth will now say "uuugh it doesn't support collections" and they are right about that
but I'm actually quite proud of CustomBlockData. I had the idea of abusing the chunk while I was dreaming and now even big plugins like oraxen are using it :3
oooh
CustomBlockData?
that's my "PDC for blocks"
Yeah my library has one of those too lol
this ^
we should merge our libs and call it "FuckOpticFusionLibrary"
internet love = mock each other and both know it's meant in a good way
or for large stuff
That too I guess
like when you want to save 100MB inside a block, it would kill the server probably
maybe not kill it, but... chunk loads are still synced in spigot IIRC
Redempt lemme DM you
He tryna slide into those dms
im spawining my armor stand insed a block
when i teleport it to like
0.1 block above
the armor stand goes to the top
how could i fix that?
nvm
messing with variables
I'm an expert in sliding into "things"
everyone wants to slide into my dms 😏
I am a certified leg haver
I don’t know what that means
I have two legs but none of it is certified

quick question
what do you people do against users who mess up their config?
just let your plugin throw exceptions and use the default config?
or do you try to parse the config because it gets loaded and send a proper message to the admin?
I try and do some parsing
But in the end there are so many ways to mess up the config
yeah sure, so do you e.g. send a chat message to OPs if the config is broken?
Console
Heh
yeah but
there are so many noobs, they don't even see / understand console errors
Hello
well chances are they have a lot of other red things too
💀
cause its a server owner noob
I currently do stuff like this but yeah somehow many admins still just ignore that message and tell me "their config is fine" and "angelchest is broken"
Fix the header
it's not about how it looks
You have no space between ! and W but you do have one between G and !
you play minecraft without f11?
yeah I get it, it could look nicer
It bothers me
but how can one oversee this?
im sure someone looks passed it
I mean
the console prints the same warning twice
What if the users are smart and don’t use op
I guess if people still don't get it, they are just not worth to use paid plugins I guess
Still plz fix the spacing
but then it would lead to an endless line in the console
"if you can't understand this error, your life is worth less than the money you paid for this plugin"
lmao yeah that's a good one
Endless line?
yeah no line breaks
!WARNING !
I either have to manually add line breaks so that the console looks fine, or not do that and make the chat look nice
^
This is what coll is referring to
Yes
oh well I might have been drunk when I made that
a drunkard made this plugin
im not russian
Leaving that in a 1 star review ASAP
this is very true
but ballmer had more like a cocaine peak
Great now I need to get a breathalyzer
I have one :3
ahaha
I hit the ballmer peak like pretty close
ballmer peak is like 1.4 and I got 1.45
Nope too high
I have no context for what .138 is
Isn’t the limit for driving in the US like
.06?
.08 I thought
it's .08
1.45‰ = 0.145%
our limit is >0.5 (0.05) to drive a car
1.1 (0.11) to drive a car without it being a serious crime, and
1.5 (0.15) to use a bicycle
<*
oh yes
sorry
I was confused by your weird % notation for BAC
it makes no sense to use % if it's always below 1%
what if you were really really fat
then I'd be happy
I'm only 60kg
If i lose 3 kg my BMI would be unhealthy
Jesus
but you'd have consequences as if you were a skinny skinny person who would be tipsy over something you dont get tipsy over
I'm slightly underweight
well but blood alcohol is like relative to your body wheight
Yes
I'm 6'4 and 71kg (158lbs)
0.1% = 0.1%
which is my point
someone twice my wheight can drink (in theory) twice the amount of alcohol and we'd have the same BAC
Like a bean
yes I am slenderman
I am 185cm and 60kg
Jeez
Relative to me, most people are
Am smol
pat pat
Shortest person I know is 5’
BAC bac = new BAC(Wheight.of(WheightUnit.KG, 60),Height.of(HeightUnit.CM,185),AlcoholAmount.of(AlcoholAmount.1_JAEGERMEISTER_BOTTLE));
knew
Don't keep in touch with her anymore
does australia use proper units for height and wheight?
only america uses proper units and the world knows that
My only gf was 5'3
oh is that why you have to remember things like "5 tomatoes" to calculate how many feets a mile is?
as are tall ones
like "oh yeah sure, my house is like 2 square gunter's chains in size"
he wants a pocket gf
public enum NippleOwnerGender {
MALE, FEMALE, DIFFERENT
}```
🤔
it's not wrong though
oh yeah sorry
Except it's mfx instead of rgb
Color can be an enum
Or something
Just a very big one
it must be "expandable" in runtime
16.5 million enum entires is fine
The human eye can't distinguish that many genders anyways
I again started a discussion that actually would belong to #general
I don't know why this always happens to me
drunk
I am not drunk
"I don't why"
public class Gender {
private int r;
private int g;
private int b;
public Gender(int r, int g, int b) {
this.r = r;
this.g = g;
this.b = b;
}
public int getR() {
return r;
}
public int getG() {
return g;
}
public int getB() {
return b;
}
}```
I literally sent proof that I'm not drunk
new corsair rgb gender just dropped
So the breathalyzer lied
Does that even work
red = how much you like cocks
green = how much you like vags
blue = how much you like nipples
you're still missing the fourth attribute which is about how much you don't care
No
Since bytes are signed
damnit why no java have unsigned keyword
“How much you nipples”
God I fucking love records
I nipples a lot
I many nipples*
I'll nipple you until you starve
in australian it probably even makes sense
"Yo m8 wanna nipple around the kangaroo?" - "Ehh m8 suuure bruh"
My name Jeff
australian = the disney version of american canadians
sorry, what commands?
my command lib
unlike all others
hey, im using the nbt api and im getting this error,
i used build tools to create my server, and ran the following command: java -jar BuildTools.jar --rev 1.8
im getting this error when using nbt
which do not use files
is it in redlib? if so, no, I'm always using ACF because that's what I'm used to
Let's trade
I introduce you to a core part of my library and you do the same for me
this is the wrong place to ask, you'll have to ask the NBTAPI authors
sure
but let's do it in about 30 minutes
I currently got some task I have to do -.-
yes perfect :3
be prepared.
well my logs say that the api couldnt find nms support in the server, is there nms support in the server i used?
I haven’t actually gotten to commands yet
In my lib?
Ye
Do you want to
I can show you at the same time as alex
We could just make a thread here
erm well you have to talk to the NBTAPI author
I think I can manage with the wiki
NBT / NMS is not part of Spigot API and you won't get any support for it here
Ok
Seems well documented enough
Yeah it goes over all the major stuff
it's like asking microsoft on how x86 assembly code works
but is there nms support in the server that im using
Yes of course there is
Yes
All servers use NMS
what "server" are you using?
The server has to have NMS
It is literally the base server
NMS is short for net minecraft server
Or it isn’t a server
every minecraft server has nms
Well I guess it could be like, minestorm
It's like asking "does my car support an engine"
But that’s beside the point
spigot 1.8 compiled using build tools java -jar BuildTools.jar --rev 1.8
Yes
Should be doing 1.8.8 but whatever
Anything spigot(or forks) has NMS
Well no actually should be doing 1.18.1
so the command im running is wrong @waxen plinth
1.18.1 is basically 1.8.8 if you think about it they both have 8's. One of them is significantly better though 😄
Use --rev 1.8.8
||(its the one on the left)||
so im downloading it with 1.8.8
you mean 1.18.1 the better more up to date version of the API :)
so wait im doing -rev 1.8.8
--rev 1.8.8
Y2K hes using 1.8, you cant change that lmao
though I'd reccomend using 1.18.1 over 1.8.8. If your concerned about pvp there are some great plugins out there for that
RIP
@river oracle my 1.8 client still works with the server even though i ran build tools with 1.8.8
1.8 through 1.8.9 have the same protocol
you should be running a 1.8.9 client
its 1.8.9, i use lunar client
then yeah you'd be fine
noone should ever run any client below the latest version
do you mean like 1.8.9 or 1.18.1
not sure if you mean latest ver per version or overall
I totally understand people driving 10 year old cars. But I don't understand anyone running 10 year old software
updates are free
what about a 10 year old tesla
1.13+ are FPS killers for old PCs
my car is 22 years old
or do they still get updates
I run 1.18.1 for my server, but if I'm doing like hypixel or some shit I'll use 1.8
whut
alex forgets cars existed?
what car
quite close 🙂
I wish, Citroen
the fuck is that
vroom vroom
a car
French junk
oh its french based
heard of that one time in like a donut media video
if you have a car that's still running after 20 years, it'll probably be still running in 30 years from now too lol
a baguette car :o
MC definitely needs olive trees
Hey, I don't exactly know how to word this so it makes entire sense, but which version of Minecraft was it when Spigot changed to the new code? For example:
1.8.8:
Material material = Material.LOG, 2
1.__
Material material = Material.BIRCH_LOG
1.13
1.13 iirc
1.13
👏 Coll
ah perfect thank you, i wasnt sure as i wish to update my plugin and server however couldnt remember. Thank you all 👍
1.13 was the version that dropped all the shitty legacy code
Welllll...
"all"
Legacy materials still exist
you can drop support for all versions below 1.16
you can either say "I support 1.8+" or "I support 1.16+"
everything else is non-existent (except maybe 1.12.2)
1.12.2 is no excuse, just update
yeah probably 1.16. If i really want to push it, then ill do 1.14 or 1.15 but 1.16 is how ill do it.
What the hell is that 1.16.4
literally NOONE uses 1.14 or 1.15
either support 1.12+, or 1.8+, or 1.16+
^
all versions inbetween are totally dead
those are the main vers
1.19+
np
How can I make a kit not be seen if it does not have a certain range?
I mean... hypixel still uses 1.8 and they are like 50% of all players
Kits have range?
but hypixel will never install one of your plugins
Yes
what do you mean by kit, and range?
I put that it is blocked and I create a permission, I give it to the range and the other ranges continue to be seen
Easykits plugin
do you mean rank?
Yes a kit for a rank
Then this is a configuration issue #help-server
Would I need to learn NMS to make a proper spawner stacking plugin?
Okey
How could I track and drop the proper spawners when someone breaks a spawner then?
are you on 1.16+?
1.17 & 1.18
?
Anyone know if there is a support server for the Holographic Displays api
cant seem to find one anywhere
can i send a list of Strings over a plugin messaging channel?
You could serialize it into a json upon sending it and then deserialize it when receiving
I don't believe there's a Discord for it, but the Javadocs can be found here: https://ci.codemc.io/job/filoghost/job/HolographicDisplays/javadoc/index.html?com/gmail/filoghost/holographicdisplays/api/HologramsAPI.html
package index
would anybody know how to get the entity the player is looking at?
I could just use dot products, but I want to see if anybody has a set answer
player#rayTraceEntity
Is there a way to check if a player who sits on armorstand pressed W or A Or Spacebar?
can i change the itemframe yaw using the teleport?
Item frames can only face NSEW
Is there a built in method that tells you what type of spawner a spawner is?
declaration: package: org.bukkit.block, interface: CreatureSpawner
No problem
It can face up and down too
Oh yeah
this should actually be called EntitySpawner
eh
Creature prob reveres to all non player mobs
As Players are entities, but you cant spawn them
it can spawn evoker fangs, snowballs, fireballs, arrows, armor stands etc
yea that description doesn't cover everything it can spawn
Am I just stupid or are custom currencies a bit fiddly to do?
Fiddly how
Like the storage side of it
I just want a thing where I can get / add / remove / set an amount but its hard. I don't know sql so more fun
I could do it in one big json file couldn't I?
But yes, you could
Idk sql
Learn it
?learnsql
?learnsql
lmao
Aww
It's pretty hard to learn
It's a must know if you want to get into any sort of data storage at all
not really
Do you want this giant book I have
how could both of you did the same command lol
It made no sense to me :/
“SQL queries for mere mortals”
I got the error org/bukkit/event/block/BlockDamageAbortEvent does not exist.
and I'm not entirely sure why because everything seems to be on the right version and it was working on an identical different server
I know 0 sql
Is the server up to date
run /ver to see
Like really up to date
o.O
no more packets handling yay
huh
its just weird because it worked on one server but not on the other the only difference being the hosts, same version and everything
What about us?
Ill check but I was very sure
You can use the new event
Yay
you can start by learning
You're not going to know a lot of things if you never take the opportunity to learn anything ;p
Sit down for a day or two and you can pack in a lot of SQL knowledge. At least the basics of it
no i paid college fees they spoonfeed me stuff
Yeah, college is a waste of money for software lol
Yeah, I know I didn't learn OOP for 7 years lol
7 years
Don't even
How long is your college
College never taught coding, I self taught
Ah
that is a shit course then
