#help-archived
1 messages ยท Page 134 of 1
I had no idea thats how it worked
lol
I guess I should've thought of that
@subtle blade Does that mean it travels 100 blocks?
is there a way to get amazon AWS but without compiling it into your jar ๐ฅบ
I don't think the metric is 1:1 for blocks, Legend
how do I change this
I don't know the exact metric. Though honestly, more often than not, 1 is perfectly fine for distance
Aws stands for Amazon web services, so amazon aws doesnt make sense
It's like saying Google gcp
Wait
You said jdk
Why the fuck would you include a jdk in your plugin.
You want the sdk, not the jdk
Lol
Sdk = software development kit = some lib
Jdk = java development kit = java runtime + compiler and shit
The aws jdk is just a fork of openjdk
just
whatever this is
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.768</version>
<scope>provided</scope>
</dependency>``` lol
I mean doesn
I highly doubt that the aws sdk is 180mb
't newer version of java support including a small jre
No
That's not what multi release jars are Jan
Dafuq Amazon
Well, maven shade has a minimize option, tried that?
Else you can look into pro guard
Or just fuck their sdk and use rest to access their API
could i just
make a seperate plugin perhaps
with that stuff in it
and make that the dependency as provided
Sure
ok might do that then lol
You can also make a lib folder and shit
How do i change the spigot 1.8 in server selector
--classpath
mini could you link me to smt or tell me what to google
on how to do that lol
@hoary parcel how would one use rest
I don't know how the aws API works
hm ok
But I would be surprised if the java thing is more than a wrapper for their public http API
i mean i only need S3 from it
if there was a way to shrink it down to s3 only thatd be fine
i would expect an aws jdk api is expected to be set to provided not compile, and used on the aws jdk
if not, then they dun goofed
What version of factions is for 1.12?
hey
is there anyway to get rid of the arrows on your name
like it says <jason123987654>
@frigid ember MyCommand
Pretty sure you can just use customtext with Essentials + something like papi
Is there an event to check if a player is using an elytra? I want to extend the class and override the canceling event to make it do nothing so I can have a effect where you're always using an elytra and can't stop
Sorry thanks
@timid valley yea i just got around it by making a dud plugin with the stuff in it
i dont feel like jumping through hoops to getting it smaller lol
set scope to provided
no way in hell they are expecting people to shade a 100mb lib
....if its provided how is it gonna find the stuffs
maybe i dont understand how that works then
Hello, is there somebody who knows about networking? I have huge IO write usage. It's about 30% per netty thread for Native.writeAddress
I have 250 players, 20 tps
sounds less like networking and more about native writing
i mean epoll
well, thats ideally what all netty is going to be doing
and 250 players only using 30% sounds good
whats the actual issue?
it's 250 players, thats going to be a lot of data
you could increase netty threads to increase the amount of pipelines
assuming this is 1.8.8
yep
i think it had a netty thread config
in spigot.yml
because you surely wouldnt be in here asking about netty threads and 250 players on 1.15 lol
I have server behind proxy, so I thought it should use less cpu
proxy doesnt reduce cpu
Proxy is just the gateway
unless you turn off compression
no, it doesnt sound like a problem really. you got a lot of players, it has a lot of work to do.
the method mentioned is it writing the data to a buffer
Is there a way to disable the outdated version of Spigot warning?
It's starting to annoy me a lot
just update
Google certainly can
yes
or ....
Yes ?
give me the plugin name plz ;']
he might be interested in your parkour pluginz
@undone narwhal do u have a parkour plugin ?
I'm making one yes
Not yet
Why ?
@bold anchor thx bro :}
Not alwaus true choco makes nice unpaid plugins
choco makes nice unpaid plugins
Thanks
hello to all
i need help
all the sudden my server keeps crashing
can any one help
?....
Crash logs?
its to big
Don't really know
its crazy right
I mean ask someone more experience, Choco u know?
Hm?
So you get no error it just exits out of console?
Startup script './start.sh' does not exist! Stopping server.
what are you running the server on?
Ah I see you got a Threading error
but look at the bottom of the log where the err isright before the plugins get diable
probably a plugin thats causing it
It happened right after an envoy, but that may be a coincidence
i check i dont see not prob with the plugin i had my server up for 2 months with out any probs
bentobox?
no thats wat i am saying it just started'
I'm seeing errors for
com.xxmicloxx.NoteBlockAPI and world.bentobox.bentobox.database
best guess is to disable noteblocks api for now
see if it changes your outcome
BentoBox looks like a library for skyblock and various other plugins
you havent updated anything?
i update spigot
no i updtae allmy plugins as well
its probably just a bug in one of the plugins
try and narrow it down to one plugin then send a bug report
^
Lot of no API version warnings
ok i went bak to the older version and no crash so far
d
I have a plugin dev question:
[20:21:25 WARN]: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.RuntimeException: Unable to access address of buffer
at io.netty.channel.epoll.Native.read(Native Method) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
at java.base/java.lang.Thread.run(Thread.java:832) [?:?]
What does that mean?
How do I do something like this https://gyazo.com/98ce4bb4e65b68774ed21a50f544a0f4
I would try Viabackwards plugin
@frigid ember what's the context? Can we see a code snippet?
Heres my listener class:
class WinepvpListeners : Listener {
@EventHandler
fun onPlayerJoin(e: PlayerJoinEvent){
if (WinepvpTime.playerTimes[e.player] != null){
setPlayerTime(e.player, WinepvpTime.playerTimes[e.player]!!)
return
}
var timeFromConfig = Time.DAY
val stringTime = WinepvpTime.plugin?.config?.getString("values.${e.player.uniqueId}")
if (stringTime == null){
WinepvpTime.plugin!!.config.set("values.${e.player.uniqueId}", Time.DAY)
return
}
var time = Time.valueOf(stringTime)
WinepvpTime.playerTimes[e.player] = timeFromConfig
setPlayerTime(e.player, timeFromConfig)
}
}
I don't really understand
maybe I should try updating spigot?
thats not java?
It's kotlin
kotlin
nooooooo plz use java
which is just java, but more modern
java > kotlin
I disagree
It's up to preference
pretty much
lol no, kotlin > java
Does the error give you a specific line?
So, what's the issue yeah?
No
it just spams that
I've never experinced anything like it before
I need to use 1.8, so I can't really update
huh
it appears to be a problem w/ the server itself
let me try something
ohhh
it's because I'm using java 14
lol
I mean most minecraft servers are stuck on J8 anyways
How do I do this This https://gyazo.com/98ce4bb4e65b68774ed21a50f544a0f4 instead of this https://gyazo.com/d549fb916cc7136d74c840c8f105972a what plugin should I use?
Probably viaversion
Yeah
So i have a genuine question, How can i start spigot plugin development?
I've downloaded this:
I'd start off with some youtube tuts
There are many tutorials on yt?
That's where i started
We have some wiki pages to get your started
^
May i please get a link?
Download the minecraft dev plugin
I've already done that. ^
@whole night Do you mean the "MC" instead of "spigot"
Then learn some basic java
because thats most likely viaversion
@marsh hawk Yes and the 1.8-1.15
(most notably the guides at the bottom of that wiki)
People will very much get annoyed if they have to answer 400+ questions about basic java, so please learn some of that first.
yep again, try via version i think that changes the message otherwise i dont know of any plugins
WAit jesus
I'm upset at Waterfall's icon
Yes
what you don't like eclipse? lol
It's a ij plugin
I considered spending time to write one for Eclipse, though I have to admit that their API is absolute garbage and extremely difficult to understand
most likely x64
You choose which api, maven or gradle and it'll autogenerate a basic project
This is 2020 lol
@brisk fog eclipse is just old and ugly. I'm stuck on it but have been contemplating IntelliJ for like a whole year lol
I really wanna get into plugin development. ๐
I mean not a lot of people like eclipse after getting used to intellij, Choco is a special case
Learn basic java before going into plugins, makes your life alot more easier
I also learned Java while learning Bukkit plugins lol
not sure where to ask this. i have a (paper) spigot server and i keep getting kicked after a few minutes of afking saying something like "you've been idle for too long", and i've gone through every plugin to see if it's there (especially essentials) and the spigot.yml, bukkit.yml and paper.yml files?
I set up my own templates years ago for eclipse. I find myself going back to it.
That's where you should have stopped ;P
go to paper's discord?
Yessir
it's a vps
Well, choco people who learn java while learning bukkit asks the most annoying questions without googling first.
(afaik it's a vanilla option though)
It's literally the worst thing that has ever happened
It's a command. /setidletimeout
Spigot forums is just full of people asking the same question again and again
Yep
Vanilla servers give you a /setidletimeout command. Set it to... 0 I think?
Might be -1
Try 0 then
ye. There ya go. No timeout kick now
well thank you ๐ฎ when did they add that into vanilla?
1.7.4
wow
*.2
Though for the future, if you're running Paper, you should be asking in Paper's server ๐
Well a lot of issues are carried over xd
You'd be surprised
But yeah ask over there.
i searched "idle" in every plugin's config, as well as paper.yml/spigot.yml/bukkit.yml
Even down to their listeners - they use ASM to generate event listeners
also this is completely unrelated, but i've heard there's shop plugins that can just read/use the essentials worth.yml thing. i can't seem to find them though?
That's out of my scope of knowledge. I'm not terribly familiar with a lot of plugins as I haven't run a server since 1.8
oh same
Someone else may
i'm coming back to it lol
does shopguiplus not do that?
idk? i'll look
I have no idea either, never really used any of those plugins
I mean it's easy to read yml files
No idea how it works tho
No
artifact id is a package name
groupid shouldn't be your email
good?
that's fine
๐ญ
?
what do u need help with
Not using 1.15 haha
choose a version if its not there youll have to change it manually
well i have a 1.8 server but sure i can do for 1.15
sorry if i'm asking a lot of questions, is there anything i need to do here or keep as is?
That is to fill out the plugin.yml
Description would be the description of the plugin
authors u can put yourname without spaces
website if u have
one
Log Prefix if u want some fancy prefix on getLogger
Load Before if u got someplugin that depends on yours or similar
load At can be left nless needed
depend and soft depend at your choice too
@tiny dagger late reply but, thank you!!
Is it possible to prevent block breaking client side like the debug stick?
not sure no
only the sword can prevent it
in creative
@subtle blade i took out a plugin called jpanel and so far so good
Add a server.jar to your external library list
That's on the spigot blank plugin tutorial
for intellijidea
how do i do that?
Project Structure (ctrl+alt+shift+s) > Modules > Your Module > Dependencies; hit the + button next to the scope and navigate to your spigot jar.
But wouldn't it be easier to just use Maven?
ยฏ_(ใ)_/ยฏ
Just be sure to change the scope to provided or you'll most likely end up building spigot into your plugin jar.
As in like the spigot.jar? I would.
and do i tick export
Should be fine to leave export not ticked.
kk, ty
Assuming you are running either a spigot server or some sort of clone of spigot you shouldn't encounter any issues.
i'm running craftbukkit, is that a problem?
If you plan on using spigot as a library yes?
whatever
is there a way for other staff can see /vanished people in essentials
ok, ty
@twilit orchid essentials.vanish.see
but im opped
fun
i still cant see em @hollow hedge
depends on your vanish, contact mod author if issues occur
Depending if the users you're trying to see has essentials.vanish.effect. It adds a potion effect to the user, can't remember if it's a default permission or not.
how do I give my server more ram
cool
Make sure to not use ALL your memory, it could be disastrous.
Does anyone know why this:
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
@Override
public void onEnable(){
}
@Override
public void onDisable(){
}
}
is throwing up this error:
Class main is public, should be declared in a file named 'Main.java'
Sounds like your main problem.
How can I limit the mob spawn size in a chunk for my server?
I think spigot.yml (or if you're using paper, then paper.yml) has an option to limit the max entities spawning in a specific chunk @neat orbit
<plugin> has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0
how do i fix this?
what java version did you use to compile your plugin?
and what version are you running you server with?
make sure it's the latest
is there any way to check?
java --version I think
one dash did it
?
theres java 13
huh
well how do i get java 13?
anyways can you use java 8 to compile your plugin?
i didn't even know i was using a different version to compile it in the first place
how do i change that?
how are you compiling it?
"build artifacts"
ij
ty
should i download the java 8 jdk?
yeah
lol
i just wanna see that sweet green text with /plugins
lol
still learning
trying to make a plugin that rewards you after a certain amount of playtime
all the ones i found were outdated
want any tips? (or spoonfed code?)
okay, cool
yup np ๐
mg
@pastel condor ty!
like half the plugins are my one line plugins that send players to other servers in my network
I'm too lazy to merge them into one plugin
im hurting from that
what the fuck lol
Is anybody good with VotingPlugin? I am having difficulties with the config.
also I lost the source code, so I have to decompile my plugins
My bullshit detector is firing
I use voting plugin SofiLopi, so if you have any questions feel free to ask
Okay, do you by any chance also use CrazyCrates?
Nope, sorry
Well my problem with VotingPlugin is that my players can vote, but they don't receive rewards.
whats your vote sites file?
wdym?
The first 2 links that VotingPlugin offers work fine with the reward votekey.
Oh the website is topminecraftservers.org
for example this is what I do VoteSites: TopG: Enabled: true ServiceSite: TopG.org VoteURL: https://topg.org/Minecraft/in-590923 VoteDelay: 24 Item: Material: GRASS Amount: 1 Rewards: Commands: - experience add %player% 5 levels - eco give %player% 500 Messages: Player: '&aThanks for voting on TopG!'
how do I give my server more ram
change the -Xmx and -Xms startup flag
Wow how did you just do that
actually my file is a lot bigger
Problem is I don't understand what is wrong with mine ๐
For example
It looks like this:
topminecraftservers_org:
Enabled: true
ServiceSite: topminecraftservers.org
VoteURL:
VoteDelay: 24
Item:
Material: GRASS
Amount: 1
Rewards:
Commands:
Console:
- cc give p Common 1 %player%
Messages:
Player: '&aThanks for voting on %ServiceSite%!'
java -Xmx 4G -Xms 4G -jar spigot.jar
4g
@minor mountain
jesus
(I removed the VOTE url. But I have it normally)
That's for 4 gigs
kk
Change to how much memory you have
I only have 16 gb ram
what is cc?
NO
Crazy Crates.
maybe I should make it 1gb
I see
if you have 16 gigs of memory then run your server at 10 or more
Unless you're running this on your PC
Really?
In which case, stop expecting to run a server on your PC
yes
Nice.
Commands:
- experience add %player% 5 levels
- eco give %player% 500
Messages:
Player: '&aThanks for voting on TopG!'```
k
Ty. I hope it works.
his system default is probably higher than 1 gig already
yeah
With 16 gigs of ram I'd expect the system default to be either 2 gigs or 4 gigs
It's probably not borked. The TNT and cannoning mechanics you're used to are actually not vanilla, the servers you play on modify those mechanics so they work the way you think they work.
But in vanilla, that's not how they work, and they have never worked that way, on any server version.
huh
"I think spigot.yml (or if you're using paper, then paper.yml) has an option to limit the max entities spawning in a specific chunk" is this max-entity-collisions ?
In one of the config files there's a spawn limits section
collisions has nothing to do with it
I think spawn limits might be in bukkit.yml
But I could be wrong
Alright.
well I do have the same plugin as the server im use to, and the cannons work "almost" the same
its just I know that the lowest arc is supposed to be one flat line on that server but on mine it arcs a bit down
Because the server you're playing on either modifies horizontal velocity or gravity for tnt entities
Unless you're on some super tiny server all of these changes are made in custom and private spigot forks
You'll have no luck modifying it
aw
Import CommandSender and Command
ty, i just had commandexecutor imported
is there a way to import everything from bukkit?
you can always turn on auto import in your settings > Editor | General | Auto Import
so it imports the things you need
ty
org.bukkit.* ?
Is it possible to allow entities to phase with nms?
Is there a plugin that lets me type, for instance, /survival to go to the survival world, /skywars to go to skywars, etc? Please @ me.
@frigid ember probably gonna need that custom made or find one that has console execute commands, and allows you to create them in the config
ok thanks
Is there an easy way to list all plugins in plugin.yml? I need my plugin to load before all others, and I need to list all names of each plugin in the loadbefore:[]
Also, I need it to update automatically, without me manually entering the names
Is that possible?
?xy
Asking about your attempted solution rather than your actual problem
and look into load: startup
guys i cant use my plugin on my second server why ?
game says only the ip "my ip adress"
cuz some plugins dum and like antipiracy i guess
We bought an add-on from someone. but we can only use specific ip
well talk to them
Does anyone know any rewards plugins for 1.15.2 where i can change someone's luckperms role after like a day of playtime?
Yes
Probably because one day someone used that to distribute ilegal things
I guess
They donโt except certain categories
Does anyone know a good tablist plugin I can also use to sort ranks
how to make comand tabcompletion
@mossy vault implement TabCompleter
I know that but example when I do "/e" then I tab it fill with "help" or "reload"
How to install waterfall/bungee cord after downloading it? Where do I place the file in the FTP.
Please, if you know tag me.
@neat orbit make a folder to put it in (it generates some files so you don't want that in the root directory) then put the proxy jar in the new folder
then to start it, (assuming you have Java installed and are on a Linux-based environment), use java -Xmx512M -jar <proxy-name>.jar
You usually don't need more than 512mb of RAM allocated to proxies, and you don't need to start the JVM with any extra flags as Java is smart enough to optimize itself
hey i have a question there an example of custom npc inventory?
are there any plugin devs that will accept 100 usd + per plugin
sure
so do you want to do it?
how do i get if a tnt has been spawned
Entity spawnevent
Anyone have a plugin/code that will change the server's player limit depending on how many users?
For example:
If 30 users are on the server, player limit is 31
If 100 users, limit 101 etc
I'm sure you'd find one if you searched for it, and it doesn't sound too hard to make anyways
Don't really know what to search for tbh ๐
"Dynamic player slots Minecraft" on google?
lol
If you want it to just be one more than the current playercount, I think ServerListPlus does that.
whats the name of a tnt entity
PrimedTnt
doesnt appear
Hmm, Google it maybe?
if i set the tnt spawn event to cancelled and it is summoned from a block being set
will the block be set
?
Uhh I don't quite follow
Does anyone know how to use protocollib? I installed it and can't join my server any longer.
How can I check what version?
Hello with auto-log plugins such as "FastLogin" or "JPremium", are mojang going to block request sent from my server If I have like 300 connections in 1-2 minutes? If so, how to avoid that?
I am also using FastLogin, and I'm trying to set it up.
Have a look at the resource page and download the correct version for your server version.
@limber summit I don't believe so.
I don't think Mojang rate-limits for session verification
Uh, I'm having a bug I don't know what to do. I have a special ItemStack that is a chestplate, and I don't want the player to equips it. So I listen the InventoryClickEvent, if the player clicks an armor slot with the item, I cancel it. The problem is that sometimes, the item is still put in the armor slot, event though the event has been cancelled
Update: Installed what I am pretty sure is the right version of ProtocolLib and now it says Disconnected.
Does someone had had this issue before ?
I printed some logs, the event is cancelled, but the item is still put
@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?
@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?
@zenith bluff I tried to disconnected and reconnected, I still had the armor equipped, so I guess it is registered on the server as equipped
Update: Installed what I am pretty sure is the right version of ProtocolLib and now it says Disconnected.
Very odd, are you sure it's protocollib? If it is, do you have any plugins incompatible with it?
@zenith bluff I tried to disconnected and reconnected, I still had the armor equipped, so I guess it is registered on the server as equipped
hmm
I can't join my server, nor anybody else.
It is protocollib and I made sure to download the latest version, 4.5.
Latest dev build from the build server? Or just the most recent stable release? Try both
Do I have to install some source code maybe?
I'll try.
On the resource website it also shows to zip files. I don't know if they are mandatory though.
They have a Jenkins build server with it pre-compiled. It's on the spigot page
I don't recall any zip files being required
Oh that's just the source code from when the release was made
You only need the jar
Than what can be the problem. I am sure it is ProtocolLib because it even has a color coded message when joining.
Sorry. I'm kinda bad at this; where can I find dev jars? Is it recommended versions?
1 sec I'll just get you a direct download link
Thank you. Heavily appreciated.
Thank you. I truly hope it works.
Are you using mainstream spigot jars (paper, spigot, taco etc.) or a custom one?
@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?
@zenith bluff I just tested by observing myself with an other account, and I see the amor equipped. It is not a client glitch :/
Paper.
Should be working then. Very odd
Agreed.
I am not alone though, I think. Someone left a negative review on Spigot mentioning my exact issue.
Right. The only other option after the dev build is to go back a release or two from the most recent one on GH
Never heard of it
btw what Java is your server running on?
like what jdk/jre version?
How can I check that?
It's 1.15.2 if that's what you mean.
I must sound like a noob. I am a noob.
Nah that's the game version.
For now I'll just assume it's JDK8 but you may wanna look into that because using the wrong version can break things
I hope it'll work now. I won't sleep until I find a solution, I guess.
STILL invalid version.
I don't understand, must be a problem with my server but how? Before ProtocolLib was installed I could join without any issues.
Did you install any other plugins while installing protocollib?
No.
I guess... try going back a few builds?
I tried the one you sent me.
Do you use a managed host or a VPS/dedi?
yeah, what type of host? Managed (sparkedhost, pebble, apexmc, etc.), Vps/dedi (ovh, soyoustart etc.) or self-hosting?
Btw try this one https://github.com/dmulloy2/ProtocolLib/releases/tag/4.5.0
Shockbyte.
After a few tests, I noticed that the armor is always equipped the first time I try
I'm really confused :/
Okay now this is very weird, other players can join with ProtocolLib but I can not.
right, I'm not familiar with their panel so I wouldn't be able to find out ur Java version, but try the release I just sent
that is weird
protocolLib?
you mean protocolSupport
I don't think ProtocolLib influences the server.
in any way
it's just a library after all
if you are 100% sure ProtocolLib is causing issues you could try making a GitHub issue to dmulloy02
I am trying to turn on redstone using AnaloguePowerable which I get from BlockState, then I call BlockState#update(false, true), it works, however if I place a block near the redstone (or attach more redstone to it) it causes the redstone to update and turn off.
If I call BlockState#update(false, false) the redstone is turned on, and discards any updates, meaning that it doesn't power any blocks (or attached redstone), which is not what I want.
Any ideas on how to keep the redstone turned on and power surrounding blocks or attached redstone?
Please ping me ( @fossil shoal ) if you answer.
I am. I will, but I was hoping someone here could give a more fast answer.
I do use ProtocolLib for developing, and I've never experienced any issue of that kind
so I can't really tell
I'ma head off to sleep now, but feel free to DM or ping me for any queries
What event is it when a block of water breaks a head?
anyone know how to make a player lay down using packets(protocollib)?
I'm quickly making a VienMiner, how would I call a method to break a block as if a player broke it or to call an event?
Would BreakNaturally work or would it not call an event?
?premium
useBed.getIntegers()
.write(0, player.getEntityId())
.write(1, player.getLocation().getBlockX())
.write(2, player.getLocation().getBlockY())
.write(3, player.getLocation().getBlockZ());``` Why this error while i trying to send packets using protocol lib anyone help me please
I am using protocol lib so i need to go to github and see the class right?
Or open the protocol wiki
okey thanks
the protocol wiki doesnt help you here choco, it can confuse
you need to know the field types
not the network types
those can be different
Hello, I have a problem with a plugin that I have reported. How long does it take for my report to be processed?
MiniDigger,decompile packet class right?
yes
When they have time @lucid compass
Okay, but how long does that usually take?
i dont understand what packet class you are talking about
Hmm https://wiki.vg/Protocol#Entity_Action, nvm that's leaving a bed using the gui
whatever packet you want
How could I make a plugin break a block calling the BlockBreakEvent event?
I would like to make a quick Vein Miner
I think you cant break blocks using blockbreakevent its an player event
Oh ok
You can most certainly call it by yourself
Is there a general event then for all blocks broken no matter what the cause?
I tried that
Most anticheats will shit you in the face tho
It didn't seem to work
Explain
Here
What did you try, why did it not work?
you can use packets and packet listner tho
You only need to break it if the event isn't cancelled
When I tried just calling it I got a null and StackOverflow error
Without breaking before calling ^
@frigid ember you want corpse?
val event = BlockBreakEvent(block, player)
event.callEvent()
if (event.isCancelled().not())
block.breakNaturally(player.equipment.mainHand)
whats that
@frigid ember a dead player laying on ground.
Thanks Jan, that seems to work though only if the block is above
Would calling the event return the for loop and stop it?
No, calling the event will not discontinue the for loop
and send it to a player
@frigid ember That's how I do it logically. https://gist.github.com/yannicklamprecht/d60e385127e45b17fb54fbca65de190d
Which version do you use?
1.15.2
Then find it out yourself
meta = new ClientboundSetEntityDataPacket();
+ meta.id = entityId;
+ meta.packedItems = new ArrayList<>();
+ meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(6, EntityDataSerializers.POSE), Pose.SLEEPING));
+ meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(13,
+ EntityDataSerializers.OPTIONAL_BLOCK_POS),
+ Optional.of(new BlockPos(location.getBlockX(), location.getY(), location.getBlockZ())))
+ );
That's what I do for sleeping. Keep in mind that the blockpos needs to be populated with a bed.
PacketPlayOutEntityMetadata! I'm using MojangMappings myself for private stuff. So names can differ.
which class is PacketPlayOutEntityMetadata
Look into NMS yourself I'm not your daddy.
i never worked or NMS
Then it's time to digg into it yourself.
Does anyone know why this loop will only run once instead of for each lcoation: https://hastebin.com/alakoqoneh.cs
did you try print a message to see how much time this loop works?
No
try it then
Also now for some reason I
'm gettting a massive Overflow
Says six and looks like for each iteration it causes an error
Here is the main part:
Could not pass event BlockBreakEvent to ElytraGliding v1.0.0
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:312) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:528) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
at com.flaming.VeinMiner.onBrealasd(VeinMiner.java:42) ~[?:?
Line 42 is: plugin.getServer().getPluginManager().callEvent(blockBreakEvent);
Plugin is initialized
meta = new ClientboundSetEntityDataPacket();
+ meta.id = entityId;
+ meta.packedItems = new ArrayList<>();
+ meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(6, EntityDataSerializers.POSE), Pose.SLEEPING));
+ meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(13,
+ EntityDataSerializers.OPTIONAL_BLOCK_POS),
+ Optional.of(new BlockPos(location.getBlockX(), location.getY(), location.getBlockZ())))
+ );
@brisk void PacketPlayOutEntityMetadata meta = new PacketPlayOutEntityMetadata(); this class right?
Jup
I think my problem is here Block toBreak = Objects.requireNonNull(Bukkit.getServer().getWorld(block.getWorld().getName())).getBlockAt(blockLocation);
I think it is making the block null it seems like even though it shouldn't be
Why are you doing all that
Bukkit.getServer().getWorld(block.getWorld().getName())) -> block.getWorld()
Idk what the obfuscated field is named. ๐คท
fields
That's not a field
Ok I';m not getting any errors now though it cwon't chain and only go 1 block
Nevermind I saw
looking for some (hopefully) quick help
i'm having some pretty serious issues understanding how to add/set values/strings to a YAML file
can anyone point me in the right direction?
I'm always getting an error saying I'm passing something null to the event when I'm passing it even though I shouldn;t be
looking for some (hopefully) quick help
i'm having some pretty serious issues understanding how to add/set values/strings to a YAML file
can anyone point me in the right direction?
@fickle inlet
?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.
right, well, i've followed this tutorial:
https://bukkit.org/threads/bukkits-yaml-configuration-tutorial.42770/
and i have set up two .yml files. i'm now unsure on how to actually get and set values.
since the link that one points to is dead (link pointed to how to do get set)
what are these default values? how do they play into adding values to the file?
What event is it when a block of water breaks a head?
That is a player event
No Fendi
Looks through here Hwiggy https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/package-summary.html
oh I probably misunderstood his question
BlockPhysicsEvent or BlockFromToEvent :thonk:
i mean they should also fricking rename that event
BlockBreakByPlayer would be the correct one...
or something
PlayerBreakBlockEvent
Are you stupid viper?
Whats the best decompiler?
Luyten is good
although i prefer to use RECAF
because has multiple decompilers support and lets you edit assembler code
Why rename events when you can just have people read the java docs?
How do you export a jar as zip in RECAF? @sturdy oar
i don't?
Can you do that?
no idea
Hmmm
i just use it do edit assembler code
ah
Lmao
I'm looking for EULA compliant solutions that would sell well enough for our server to break even
We already got ultracosmetics and we can sell access to /nick /firework etc but that won't cut it
Libsdisguises works well Iโve heard
Doesn't support 1.8.8
Id go newer but nobody wants to
Thx for the suggestion though
oh no plugin doesnt support 1.8 oh well better update
Not a single person wants newer sadly enough
And most things still support 1.8.8 actually
wรจฤฏลฤ, when my server was 1.8, many wanted an update
Probably ask Citizens
no without the citizens api
... you're on your own if you use NMS
there's no documentation for it
you either look at someone else's repository, or just look at server's code
ok
and btw
a 30 seconds search
could've lead you to CraftPlayer#sendMessage
which, will just create a PacketPlayOutChat packet from given arguments and send it
ok thx
@fickle inlet https://bukkit.gamepedia.com/Configuration_API_Reference
How to set the attack speed/damage on an ItemStack/ItemMeta?
Set the attributes
How do I initialize a multimap?
Is there a way to get a RESTful api into a plugin?
As in create one? Or call upon an existing one?
@frigid ember if you want to create one, use sparkjava.
If you want to use one, use the HttpClient.
I want to create one
Use sparkjava, then.
Is there a way to get how much delay is left on a scheduled task?
Yeah
If I save it, how should I go about updating it to reflect how much time is left?
@subtle blade what does String name represent in the AttributeModifierโ constructor? https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.html
The name
A unique identifier. Honestly, I don't know what vanilla uses it for
like generic.attackDamage
It's entirely unrelated to what attribute is being used.
Wonder if maybe they use it as a reference in the /attribute command in 1.16
But why? I already have to specify it as an Attribute
So what if I use a different attribute?
I would honestly name it something like yourplugin:generic_attack_damage or something along those lines
Namespaced key format
No, looks like the UUID is used as the reference in the /attribute command. Yeah. Name seems entirely unused to me
I am really confused. How can i use a API of a plugin?
Hey I am having trouble with my server with spigot. When people who dont have OP they glitch in blocks like chests, beds, chiseled etc blocks that arent full. They get kicked for flying etc. Also they have trouble with swimming etc. What do I need to do to fix this problem?
Simply adding it as a library ended in a error.
Error:(4,26) java: package me.Cmaaxx.PlayTime does not exist
Okay, now how can I specify the slot (in the NBT -> Slot:"mainhand"). Because its applied in all the slots now
Is it okay to use UUID.randomUUID() in UUID for the attribute @subtle blade ?
There's a constructor that doesn't accept a UUID and it will randomly generate one for you
Just don't provide one
Also, there's an EquipmentSlot parameter
Ah, then yea, randomUUID() is fine
There should be a constructor that lets you pass a slot and not a UUID though
Will probably PR one after 1.16
๐
Are events able to be called from onDisable()?
well I call an event and then unloaded the listeners but the listener isn't sending the debug code...
Why are you calling an event there tho
To tell the api to save data
afaik, the event bus is shut down by that point
There should be no handlers to listen for it
So, yes, you can call it... though I don't think anything is going to be able to listen to it
Thanks