#help-development
1 messages Β· Page 97 of 1
Hmmm it doesnβt seem to work anymoreβ¦
I didn't do it wrong right?
List<Entity> nearbyMobs = arrow.getNearbyEntities(rangeX,rangeY,rangeZ);
for (Entity entities : nearbyMobs){
if (entities.getType() != EntityType.PLAYER && entities.getType() != EntityType.ARROW){
arrowLocation.toVector().subtract(entities.getLocation().toVector()).normalize().divide(new Vector(1.5, 1, 1.5));
}
}```
Looks the same to me unless I'm blind
uh did you add vector to the entity
π€¦ββοΈ
oh wait
i forgor i divide
if you wanna multiply, multiply
i think the higher you go with divider the lower the end result is
Idk how you plant to trigger it
I mean ofcourse by itself it won't do anything there's nothing spawning the creeper
would be nice if you actually summoned him
World#summonEntity ?
spawnEntity *
it returns entity
Plus EventHandlers are only going to get called if the class of the event that they are listening for has a handler list
Would it matter if this was in a task and it only stops when the arrow hits the ground?
Because the mobs seem to get sucked into the arrow after 1 second of it being shot and stay at that location, but it is funny
if (getConfig().isSet(p.getUniqueId().toString())) {
why isnt this check returning true?
config contains uuid
db498e7e-89c9-3ea7-887b-3d0330cfc132: true
is that a default?
what do you mean
nvm
I guess you have to provide more info. From what you have send so far it should work.
Is it in the right file?
Use EntityType.CREEPER
nvm might've solved it
(Creeper) world.spawnEntity(/* whatever */, EntityType.CREEPER)
generic enums for the win smh
hey how do i read json from a file with gson?
into a hashmap
and a filereader or bufferedreader
whats in that file
gson.fromJson(Files.readString(file.toPath()), SomeClass.class) probably
spawning one if you hit one :/
try it
not the one you hit
when you hit a creeper with some projectile, it spawns a new one and explodes it
Two options. Create a class that extends BukkitScheduler, or make use of the task consumer
Bukkit.getScheduler().runTaskTimer(plugin, task -> task.cancel(), 0L, 1L);```
i've got that, but i'm not sure what the someclass part is
because the class has other things other than the map
this is the map
the type that you serialized
a hashmap<uuid, list<playerquest>>
hell yea thanks
what would that be in my case
uhh isnt there a gson::fromJson method that only takes a string?
can i easily make bossbar visible to everyone on server?
check out bossbar methods to add players
Just have to add all online players to it, then add players on join
so i have to loop?
yes
Cannot resolve method 'fromJson(String)'
ah um im wondering if you need a typeadapter
hm?
I mean yeah, but like... Bukkit.getOnlinePlayers().forEach(bossBar::addPlayer);
okay and runTaskTimerAsynchronously doesnt return anthing, how am i supposed to store it somewhere
i need to cancel it from somewhere else
yea no idea what the issue with that method is
nice it gave me a wrong index
like the one that takes Consumer<BukkitTask>
π
flame spigot API design
you already have a way to do smth with the task ig
Yea but why does that not just return the bukkit task too
now you get to use the bukkit runnable trash
because you can cancel that one from inside and it returns your the ref
ima just use te one without consumer ig
runtaskAsync(plugin, task -> { this.task = task }) would this be possible?
Well, no
that code would execute too late potentially
now i need 2 remove bossbar
how do i check if the clicked inventory was the player's inventory
on an invetnroy click event
first execution time vs others :/
i started to execute a few before actually measuring but when i start measuring the first one there also takes longer :/
I have a question
description: yESsss
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
smh
how can I make a player invisible with armour
like in bedwars
invis pot
π
buy from the shop
2 emeralds
someone give this guy an oscar
I think he wants full invisibility, no?
Player#hidePlayer(Player, Plugin) and loop thro onlinePlayers
I am saying how can I add it to my own plugin, the problem is that I can still see his armour
wtf xD
rather not
invisible like effect
take off the armor
B)
or invisible that nobody can see him
packets probably do something like that
you can also disable ambient particles and shit
thank you, the only real answer lol
ratio
pff i'm trying to measure my test but the time it takes depends on the amount of precious tests π€
ah so your tests are useless π
π
HEHEHEHA
love those tests
GRR
i should learn
its so easy
i remember writing a benchmark api for no reason
that thing is literally maintained by the openjdk team
I don't think you could recommend it more
hmm lets follow the baeldung guide
if you are using a cool build tool (gradle) you also get a super easy plugin to use it
suffer while your default shade plugin version does not even support the latest java version yet 
why do you even need the latest
tho
suffer while your cool build tool takes hours to build
hours ? my daemon starts once π
after that gradle has incremental compilation lol
but w/e
jmh is pretty good
just make sure to properly blackhole your outputs
guys do any of you suggest a good GUI library/api
so they don't get omitted
triumph
literally just first time u fetch the wrapper from their repo
I know but still, I see no advantages in using gradle over maven
Gradle has much shorter build scripts and faster build times which is what I want
I hate xml
(obviously except mini message my beloved)
i am grabbing my pitchfork
Might fuck around and make a MiniMessage competitor
there is minedown from phoenix
Yeah I like that much better
They probably end when you reset or change the color
yea, but that is not always what you might want
It never isn't
I guess you just redefine the color you used before
Yeah
&b π
that thing literally does have your legacy colour codes
ik
Which I also like
because i use it in fact
I prefer for it to be as straightforward and succinct as possible
legacy is sometimes just faster
I never had an issue with <red>
well, but i tab out stuff π
no?
obviously on file that is just larger
I don't like kotlin
same
but why ?
feels weird
hmm but it can do what java can do with less letters kacper
It feels like python-ified java almost
this should be your preferred language no ?
I mean, the only time that works is if you have memorised all the colour codes
Code is designed, but text is just text
which, give, a lot of people have yes
except in java i can just write few letters and press TAB
Code defines behavior, text is just appearance
And with code, you should aim to avoid having hidden or subtle behavior
but objectively as a standard, a format that uses &6This is gold is just worse than <gold>This is gold
Kotlin has a lot of hidden and subtle behavior
i cant write <g (tab)
the first only works because people had to learn those colour codes
&gold&This is gold is possible with minedown too though
Yea
So if you want it to be more clear you can do it that way
But honestly everyone still uses legacy color codes
people just remember legacy
lmao
I did too, but I used legacy codes for configurable messages
I think they should always be an option
Well you need to expand them to something like minedown anyway tho
I wonder
does minedown implement an adventure serialiser
Paper better not drop support for legacy text
It's still by far the simplest way to send messages
And if you have very basic formatting it's the best for that too
I mean preferably everyone moves to proper components
what parser/format you use to build them, idc
legacy should always be fallback
for all I care, pure legacy
It should literally always be an option to do legacy text
meh
click and hover events haunting you tonight
at times i configure for example 2 thousand lines of messages
I never have that many
π» RBG colours π»
sometimes people want me to translate entire server
I use legacy codes
aww minedown does not implement an adventure serialiser
how big is adventure
jar wise ?
yes
it works on spigot like that or i need something else
no you need to ship the spigot platform
tho the platform should be somewhat small
actually, eeeh they might ship gson
lemme double check
they might not
beyond that tho, spigot is not really the coolest dependency provider
like, version wise
ah yea, they do ship gson. Mostly because they ship their adventure component to json module
which is cross platform (and hence includes gson)
300kb is a fair bit
I wish minimize worked better
I tried it out by shading RedLib but only using one method from it
It still shaded 200kb of it in
Realistically it should have been able to cull that down to something like 30kb
For reference the full jar is 400kb
RedMinimize inc
lol
minedown supports adventure natively
'setDisplayName(java.lang.@org.jetbrains.annotations.Nullable String)' is deprecated
?
itemmeta
You're using paper, nothing to worry
.displayName() on paper
You should use adventure components however if you intent to be paper-only
yes
can a double be unisgned in mysql ?
If you intent to support spigot, make sure to USE the DEPRECATED method
do you think paper will remove those deprecated methods at some point?
I think I did something wrong
nah
Deprecated != Deprecated for removal
Obfuscated?
Or perhaps, but I would not bet it
There are no illegal keywords in bytecode
^^
javac will not compile it however
huh i read that it will
Nah it wont
the code I sent is from the IntelliJ decompiler
At least on older JDKs
hm im a bit dumb what's the actual method
Fernflower does not do any attempts at renaming invalid identifiers
Component converted = LegacyComponentSerializer.legacyAmpersand().deserialize(yourText)
If you only have ampersands (like here) no
However if you hard-code those strings I'd not use that method
Instead use Component.text("Green", NamedTextColor.GREEN);
does anyone with kotlin experience know if it understands @org.jetbrains.annotations Contract for smart casting?
Kotlin probably does not understand it as it is meant for debug tools like IDEs and whatnot
but me never having used Kotlin I cannot tell for sure
ah dont have jdk on my path
$JAVA_HOME/bin/javac my beloved
I should really set up a permament alias for javac/jps/jstack/javap/javah/etc. to that command (and similar)
How should I use Player#remove without getting UnsupportedOperationError.
I've tried creating an instance, but that is not working
bump
you cannot remove a player from the game?
it doesnt work like Entity#remove
Custom players
heh
π
what
Amateur.
Well my goal is to despawn a player effectively kicking them from the server without them knowing
the world becomes fully on their client, breaking a LOT of shit hopefully
until they disconnect in a way
hmm im installing mine locally for ij
its a commission all right, its not my idea
mmm yes
is tabnine any good
I'd hijack the netty pipeline instead
looks like i dont have a JAVA_HOME
y
gives me stupid autocorrects when i dont need them
and its a hassle to undo them, then it just gives it to me again
And block everything outside of the ping packets from being recieved by the server
h o w
just cancel all packets sent to the player
right
and set the timeout to a long period
I'd do it at a netty pipeline level
that will fuck up allot of things
not really
you can't remove everything
not what I said xD
no updates
how could i do this?
yeah is that not what u want
no it def is
I was wondering if their serialiser implemented the given adventure interface
just seems ahhh, im bad with NMS
I know minedown can produce adventure components
ah
having updates would be sending the player info of whats happening, on the server. so how would you disconnect them from the sevrer with server updates still happening
im not sure what ur trying to achieve
ask my commissioner.
Add a handler into the netty pipeline of the connection
exactly how though? im new to netty and stuff
google it
How exactly this is done I cannot say because I have 0 knowledge about minecraft internals
Oh, it is possible
o:
herrr
its definitely possible, just not really easy
Especially if you were able to redirect the player to a minestom server it would be easy AF to troll the client
if uyou have a proxy however
Synchronizing the minestom and normal mc world would a bit harder than netty pipeline hijacking though
you can keep players connected to servers even through restarts, and perhaps mess with the client whlist the server is off
im going to ask for more then 5$ ;-;
i've done plugins which keep players online through restarts
mate i would do it for free
im bored as hell
hijacking sounds complexx
It's just calling a method lol
what method o:
player.getConnection().pipeline().add() or somethign like that
like i feel theres a better way to do what she ACTUALLY wants
(note that this is in patented geolykt mappings)
oh shit
what is that?
his mappings
I made the method names up
lol
its not as simple as that
but i wouldn't charge 5$ for effectively removing something that exists
It'll probably be player.getConnection().getChannel()/*might need AW for that*/.pipeline().addLast(new ChannelInboundAdapter() { /* ... */ });
so idk if these is a simplier thing 2 do because my goal is to not 1. register movement on the server, 2. register chat messages, 3. remove all other entities from players view
It is hard to create a desync knowingly without meddling with the connection
getConnection doesn't work, should i be using the NMS spigot?
It certainly is not part of the bukkit API!
what is it using?
Lemme boot up recaf and find what you want
thank youu
i woud never do anything for under 15$ anyways
even if its really simple 10$ minimum
ur wasting ur time on a 5$ comm
Channel c = ((CraftPlayer) player).getHandle().networkManager.m
ahhhh thank you
now time for build tools once again π’
mojang mappings wen
I am using "slightly"-outdated paper builds as a reference there
So some things (especially the .m part) could've changed compared to a fresh spigot install
yeah
I'm going to charge more then 5$ for this thats fo sure
bro 5$ for a nms plugin
brh
is just a scam
yeah
well i didnt expect to use NMS
i've never taken any money for any of my commissions
and i've spent like hours on hours
naΓ―ve
And here I am helping people get rich
you should consider charging
thanks for that :D
hmm yep doesnt work
All pre-J8 key words are basically unconditional
They are keywords everywhere, no matter whether it makes sense to be there
However after that they went for more intelligent keywords, hence you can still call variables record, sealed and whatnot
Object sealed = null; // valid
Object record = null; // valid
Object permits = null; // valid
Object implements = null; // invalid
how would I check if a player's inventory contains more than a given amount of an item?
same. Below that I wouldn't even start. Either it's so simple that I'd do it for free or atleast 25-30β¬
?jd-s
declaration: package: org.bukkit.inventory, interface: Inventory
HMMMMMMMMMMMMMMMMMMMMM I wonder what method I could use
Exceptions for things I really like and can get behind and that I might learn from aswell
Thanks lmao, didnt know that exists
(do note that you have to add one on the int parameter to get more than a certain value)
whats the 1.19.2 maven name π
Remapped?
1.19.2-R0.1-SNAPSHOT
i used build tools for 1.19.2 and this isnt working
Bukkit and spigot have never ever recieved a stable release
At least from my knowledge
My brain is dying today, why cant i check if config.getInt is null to see if it was ever set in the config? lmao
int can't be null
@quiet iceoh no
Makes sense, thanks
this is the worst feeling
You probably want to remap
Try decompiling that class
I assume that it is just not visible
It is visible under paper, but they could have easily patched it
Okay discard that, I'll write up some pseudocode
fuck spigot damn that is the most ironic var. that doesnt even make sense π
AHHHH
That's how the code looks without mappings
how.. do... i... get... mapping π₯Ί
Field fn = null;
for (Field f : EntityPlayer.class.getDeclaredFields()) {
if (f.getType().equals(NetworkManager.class)) {
fn = f;
}
}
NetworkManager x = (NetworkManager) fn.get((((CraftPlayer)player).getHandle());
@fleet comet
Safest code in the world
o
LOL
Don't forget to replace 1.18.2 with 1.19.2 and update specialsource-maven-plugin to 1.2.4. Also the spigot-api dependency is redundant
If it isn't you shouldn't be taking up commissions...
Reflection can be VERY safe if you know what you are doing. There is the meme going around in the recaf discord that the safest part of all LWJGL code is the method to obtain the instance of the sun.misc.Unsafe class through reflection
im horrible with NMS as i said.. never have i ever used NMS for money.. im not entirely sure how but i have coded in java for a few years.. just took a 5 month break- i regret that greatly
Well you could use the unsafe for that
Anyone know why this is incorrect?
well NMS and reflection mostly
But to get the Unsafe you need reflection, so yeah
thats forge
yes
what is the error message?
Or better said what does the terminal think the command is
this code π
Don't worry that was the easiest part
i have no idea what this will do. so i must do it
Now you will have to add an Inbound and an Outbound channel adapter and do packet magic
probably just crash the server
great! done
Or if it is rather intelligent it will just disconnect the player cleanly
ive found the complex way to disc a player
dont mean to interrupt again, but what does index in getInventory.setItem mean? as i said earlier, my brain is dead today and i dont understand the spigot docs lmao
Means that the C:\ part is incorrect
However because windows is not linux my help ends there
THATS EXACTLY WHAT IT DOES!!
alright thanks lol
Try doing something like C:\\
omh i have made something amazing
kk
Actually, you need to escape all your backslashes
0_0
Although then you also have ', so idk
escaping didn't help
I know that "proper" linux grammar (if volumes were a thing) would be C:///Program\ Files/Java/jre1.8.0_331/bin/java.exe
how?
i need to learn NMS and netty π
channel.pipeline().addLast() or channel.pipeline().addFirst
or just use Protocollib or PacketEvents
My help ends there however given that while I have worked with netty in the past, I have never worked with NMS
true
whats the difference?
also how would i create a channelhandler for that?
would canceling most packets work ?
not sure how cmd is specific about this but try double quote instead if single
"
You have spaces in your name so you need to use ""
TIL setting Xmx to 512 reduces paper ram by 2X
sometimes u just gotta force the server to optimize 
How can I cancel the PlayerMoveEvent but allow things like setVelocity?
You can cancel any packet you want with those two
wdym
that's not about paper but about the jvm in general. If you don't specify a limit it will take a percentage of the available ram for both min and max. So very often it will reserve more than it needs
I know
basically just timing
ok
offset?
It's not
bruh i swear im not tripping
It's not
The green colored shadow is easier to see than the red colored shadow on the font. It looks like it's further down but it's the same height.
adm ok
I just got my server under 300mb
lmao my world alone is 1g+
memory usage
oh
under 420 flying around at mac 10 in spectator generating chnks
sometimes even under 400
the JVM will grab as much ram as you allow it to grab
(grossly oversimplified, but that is the case)
1.19.2
The jvms helps little there
Fair
though I did read more about other stuff as well
well
it may be because i have more than one player on
but thats a large difference
Eh, even an office PC with 5 Gb of ram can handle ca 6 players
Inventory createKitGUI = Bukkit.createInventory(null, InventoryType.ANVIL);
ItemStack stack = new ItemStack(Material.PAPER);
createKitGUI.setItem(0, stack);
Why doesn't it add the item in the gui?
create inventory doesn't work well with anvils iirc
And how do I create a gui with the anvil then?
Yeah, bukkit anvils are pain
To the point that something that should work on spigot doesn't work on spigot, but partially works under paper
lore all automatically generates based on quest data now
lest goooo
prolly the most productive ive been for ages
Still, the change seems to come from the refactoring. As before both behaved the same. But right, I'm using the String-names now.
org.bukkit.craftbukkit.1.19.entity.CraftPlayer how i can import this? im trying importing it for sending packet i need to use the build tools and import it with maven or something else entire code:
private static void sendPacket(Player player, Object packet) throws Exception {
Class<?> craftPlayer = Class.forName("org.bukkit.craftbukkit." + serverVersion + ".entity.CraftPlayer");
Object craftPlayerObject = craftPlayer.cast(player);
Method getHandleMethod = craftPlayer.getMethod("getHandle");
Object handle = getHandleMethod.invoke(craftPlayerObject);
Object pc = handle.getClass().getField("playerConnection").get(handle);
Class<?> Packet = Class.forName("net.minecraft.server." + serverVersion + ".Packet");
Method sendPacketMethod = pc.getClass().getMethod("sendPacket", Packet);
sendPacketMethod.invoke(pc, packet);
}
normally trying it doesn't work
If you're on a modern version you're going to need other class and method names
That sendPacket method is obfuscated
Hi! I working an invsee plugin. How can I execute a task, when an event ends?
but works the same way
Heyo. Using the 1.19 API right now. Material.BLAST_FURNACE doesn't exist. What do I use instead?
pls help
You can only call code in an event
You can use the scheduler to run code next tick
Be aware of the issues that might cause though
at runtime, the method is not called sendPacket
very weird but ight thanks
ty π¦
It's usually small spelling changes
For instance "color" in en_us, but "colour" in en_ca or en_uk
hey uh so i just got into dev and i know nothing and i cant setup SDK/JDK becuase when i try running code i get a masive errorr code im using IntelliJ so can someone help?
can someone help me with this?
What are you using
What do you mean with massive error?
its just a long line of red errors
You'd need to supply zones, somehow
Wow, java.text - that is an API I haven't heard about
No a locale is a language or country
For example en_us corresponds to the united states, but there are multiple time zones in there
The locale here is probably used for things such as 0.5 vs 0,5
If it just needs to work on your machine, sure. If it needs to work on other computers - not really
There is setTimezone method
having something like HH:mm:ss z seems to be the workaround for SimpleDateFormat
On simple date format
Timezone
I can't find the spigot/craftbukkit APIs for 1.15 onwards, where can I find them?
Probably, though the question still stands why you are using legacy API
No it hasn't changed
Hi
is there an example to search automatically any CustomBiomeTypes of intalled plugins?
An biome caller to cache the biome provider?
The new J8 java.time API has usually replaced the older J1/J1.1 one you are using
If you mean the texture you can use a resource pack
Player skins won't work on the creeper model
You can use packets to make the creeper look like a player though
but what Olivo said seems more sensible
Alongside others
Yes, although then you would probably have the issue with you having to use LocalDateTime that we had earlier
However it actually looks like specifing a zone in the DateTimeFormatter might help
Yep, if you specify the zoneId you can still use Instants
So
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:MM:SS").withZone(ZoneId.systemDefault());
System.out.println(formatter.format(Instant.now()));
works as intended
Although for some reason it is 42 minutes behind my system clock...
Java be java I guess
More or less
Given that both are a TemporalAcessor
That is because MM is for months, mm would be minutes. SS is idk what, but also not seconds. Seconds are ss
SS are centiseconds
That being said LocalDateTime is like 100x faster than Instant
can any body help?
When it isn't set it infers the Zone ID from the temporal
As such LocalDateTime (which stores the Zone ID) will not crash, but Instant (which does not) will cause it to crash
I think the fact that it does not store the zone id causes the performance loss
I'm trying to set the player's resource pack through BungeeCord. This is my packet: https://paste.md-5.net/recawegiwo.java
When the player logs in, I try to send them the packet. Although, they get kicked with this message:
I'm sending them the packet like this:
event.getPlayer().unsafe().sendPacket(new ResourcePackPacket("CORRECT_URL",
"", true, false));
CORRECT_URL is not actually in the code
Need help! BiomeLoadEvent insteed of ChunkLoadEvent.
how would i get a list of mobs spawned in the evoker's vex thing
or vice versa from creaturesawnevent
Get which evoker summoned the vexes?
Because there's no other natural spawn for vexes besides the evoker iirc
yes
yes
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Vex.html#getBound()
you could get the closest evoker to getBound() in CreatureSpawnEvent
declaration: package: org.bukkit.entity, interface: Vex
Not sure if it updates after spawning. Worth a test
Is there a way for minecraft to load your custom entity instead of the entity it's extending?
I think this means adding an entity type which will break things? maybe?
when extending e.g Blaze with your own class you can summon it
Cancel the creaturespawnevent and spawn your own
righty
I thought just maybe there would be a different way
but ig I'm too used to fabric :]
I mean there might be a hacky way to replace the original blaze with your own. But you will probably struggle doing that and should just stick to cancelling the event and then spawning yours
Yeah, I'm gonna store an ID in the PDC of every custom entity and spawn my own
thanks!
You can just replace the vanilla blaze with your custom one in the entity registry
how can i stop players from adding item to inventory using num keys?
hi does anyone know how to divide an array into six equal parts
(No relation with you this, just asking something when someone ask help without telling his problem)
?ask
?1.8
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
Too old! (Click the link to get the exact time)
Its seems you are using 1.8, arent you?
morice i thought he was talking about 1.8 not trolling
Yeah for adding data to things via spigot use PDC
Plugin Docker Container?
or Persistant Data Container*
My bad
the 10 speed vector is quite slow, and i have seen things go faster in the game. how would i make them go faster?
Just use a Boolean
And flip it before you spawn the replacement
Ignore spawn events while the Boolean is set
So wait EntityRespawnEvent triggers the the EntitySpawnEvent?
That is a wird design
Indeed
He is not also using PDC
Also I believe that null check is redundant
Agree i was going to say it but i was not sure
Please use PDC!!!!!
Dont use name
Yeah
And?
Harcoding doesnt make your code look profesionally
yes, pdc isn't changable with commands
But i dont care meh do what you like more... as it yours code and not mine - hahaha
Expand that answer
i just spent. a whole hour
I have use PDC and changed then via command
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
what?
I mean i really depressed
Who isn't
fr
Read general and tell me something worst than my depress problem ==><==
is that worse?
mayb
Its the worst thing that can happen to someone, imagine being 15y and a 16y girl saying u embarrass me
I dont wanna be father im just a child
And i also didnt want to do it i was drunk and she too
-<
I hope ya can figure something out
I gotta go sleep or I will be as depressed
See you mate
π
PDC is 100% modifiable via command
Also using a Boolean to ignore certain event calls is not hardcoding
Yeah i dont why they said that
Yeah i know how
Click over them
is there an event for when a goat breaks its horn on a wall
And go to settings
I know how to do it but i dont really know how to explain it
Close the class
And re open it
I get bug i mean
?
able to edit if it is only the effect or not
(ignore the fact i took a long time to elaborate that)
??
Not understand you
the LightingStrike does not have a method
im asking to add that method
yeah im confused too
Because thatβs not really possible
strikeLightningEffect never actually spawns the entity
Just sends a packet to players
no hes talking about the LightningStrike interface lol
theres like an isEffect boolean but you cant modify it
probably for a good reason but yeah you'll have to create a new lightning strike
that would make sense
Listen to the Pickup event and cancel it if it's not the player who dropped it self
What the best option for tracking items from a player?
how do i make a goat attack someone? the setTarget method doesn't seem to work
Should I be storing my redis resource instance, or should I be storing the redispool and opening a new resource each time I need to publish a message to a channel
not 100% sure, but I don't think goats 'target' players, they just look in their direction and ram. I think you might have to create a custom entity with NMS and give it a target goal
What means look in their "Ram"?Β‘
I think you should store your RedisPool instance and open a resource when want to use PubSub and open another resource whenyou want to use the RedisCache
I always use it like that
figured so, just don't know how expensive it is to call getResource()
Yeah have you try looking for it on internet
I dont have much experience so i when do know something i just look for it online
Yeah their wiki says to store JedisPool and not Jedis because Jedis isn't thread safe. But it will all be running on the same thread so wasn't sure if storing a Jedis instance would have been okay
In case of using PubSub from redis its recommend to use the Jedis#subscribe() on another thread
Yes, that's what I'm doing
I have been looking your profile may i ask something?
So I thought store 1 Jedis instance in the thread that's subscribed to the channel, and store another for publishing messages
and yes, happy for you to dm
Anyone have experience using fawe API ? I can't seem to get it into maven...
anyone know what is the nbt set function to nms entity
there are like 4 with NBTTagCompound params
Not using remapped π
what remapped version
is there a remapped nms that isnt obfuscated
have you been using this? https://intellectualsites.github.io/fastasyncworldedit-documentation/api/api-usage.html
Yea
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!
^^ what specifically is the issue. Can you share your pom.xml
you're missing a lot of what's the wiki
I also pasted this one but it doesn't work
make sure you follow the examples fully
What do you mean by it doesnt work?
the pom import needs to be in a dependency management block
can you be more specific
No?
cant you just do dependencies?
Yeah
magnament dependencies is what you use for remote deploys
I think
Haven't used maven in a long time, haven't used dependency management but if that's what the wiki does and my pom isn't working, then that's what I'm going to do
I'm just getting a few "cannot resolve", for the com.fastasyncworldedit for example
should be inside
<dependencies>
<dependency>
// group id here
// artifact id here
// version here
// scope here
</dependency>
</dependencies>
Are you importing their repo?
I think their dependency is not on a common repo like maven2/etc
Can I have someone message me? I'd rather not put my code in chat.
Its diff to help in that position
Maybe 1 in 30 help you
π
The only repo they are importing there is papermc
<repositories>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.intellectualsites.bom</groupId>
<artifactId>bom-1.18.x</artifactId>
<version>1.13</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependency>
<groupId>com.fastasyncworldedit</groupId>
<artifactId>FastAsyncWorldEdit-Core</artifactId>
<scope>provided</scope>
</dependency>
Since this is their importing
Look the one you need on that repo
its still obfuscated π³
most people won't help in this way. You should learn there is nothing special about your code or how you are doing and hundreds probably have done it that way already
Still nothing
L Mao good way to get people to not help you
I already have someone helping me.
If itβs still obfuscated then you havenβt done it right
i did every step
oh i did an oopsies and forgot the extra import
https://paste.md-5.net/awoponotov.xml
This is my pom rn with it still not working
But muh code is top secret
I bet you money whatever he Is making is super original
used that already
Never done before
99% chance if you need help with code it's not worth stealing loll
Also shame on whoever is giving DM help
Then why do you not have the bukkit dependency if you are writing a spigot plugin?
i added the import now its not working at all
or the things like NBTTagCompound were renamed
Would that be the problem?
The core is written for very generic voxel applications. Not bukkit.
The person is probably having their eyes blessed by this insanely secretive code β¨οΈ so fine they are stealing it right now all for themselves
let me try that
Damn fawe isn't only minecraft?
Hmmm you're right. It's probably a new type of gamemode. I think they'll call it skywars
GroundWars
Correct
Same as worldedit
Donβt remember the mojmap name for it
voxel isn't specific to minecraft
Still nothing
I know I just thought fawe was minecraft exclusive project
Thats why we has classes like the BukkitAdapter
invalidate caches and restart
U sure bout that
X to doubt
public class PlayerEvents implements Listener {
@EventHandler
public void onPlayerJoin(PlayerJoinEvent e){
if (Gigaconomy.dataHandler.playerHasAccount(e.getPlayer()))
{
Gigaconomy.dataHandler.createAccountForPlayer(e.getPlayer());
e.getPlayer().sendMessage(Languages.getString("welcome.message"));
Bukkit.getLogger().info("Has joined");
}
Bukkit.getLogger().info("Has joined1");
}
@EventHandler
public void onTabComplete(TabCompleteEvent e){
Bukkit.getLogger().info(e.getBuffer());
}
}
getServer().getPluginManager().registerEvents(new BasicEvent(),this);
getServer().getPluginManager().registerEvents(new PlayerEvents(),this);
No code? Can't help everything you have said so far makes me think it's gon work
Ow my eyes
theres no setNBT function or anything like that, any idea what the name is?
nothing
how do you do the code block
?paste
One of those is happening:
- Your plugin did not enable because of an exception
- You forgot to register the Listener
- You forgot the annotation
Otherwise the event is fired
A
B is after a mb
wow
plugin is enabling as the commands work and there is no exception in the console
Which message is being printed?
pardon?
there is no message being logged upon join
Does this work?
Don't put your logger inside the if statement guarentee it's the issue
WHY
{
//BLABLA
}
yep, with nms
Nope, just look through the class
Then the code you have shown us is not the one that is ran on your server
You should open that as a feature request
i just copied the implementation of World#strikeLighting
I will do
im just opening the wiki again to see how to do the request
i checked the plugin file in the directory with jdgui to see if the code was not compiling
it was updated
If choco or that other lad doesnβt PR it Iβll PR it
Well thats not possible so you just made some weird mistake
i cant really see where that has happened
that is the entire onenable block and the entire event class
i have double checked with jdGUI
unless i got some odd version of spigot which i havent tested for then idk
As long as you got it from build tools you should be fine π
then i cant tell the issue