#help-archived
1 messages · Page 126 of 1
im trying to make zombie villagers attack other entities (pigs to test) with NMS but its not doing anything:
entity.goalSelector.a(new PathfinderGoalMeleeAttack(citizen, 1, true));
entity.targetSelector.a(new PathfinderGoalNearestAttackableTarget<>(entity, EntityPig.class, false));
i registered it, it spawns fine, and i can also make it walk to BlockPositions but it wont move towards pigs and/or attack them
I found the solution to the issue in my earlier comment btw. By default, only the TerminalConsole, ServerGuiConsole and File appender are enabled, but the SysOut appender got enabled by log4J2's LoggingApplicationListener when I'd set up my spring application. This caused both the TerminalConsole and SysOut appender to write to the terminal. I fixed it by disabling it again in my own event listener with order = LoggingApplicationListener.DEFAULT_ORDER + 1
@hoary parcel thx for taking the time to help me anyway.
https://www.spigotmc.org/resources/head-database.14280/ anybody know of a 1.15 version of this idea?
I am about to release HeadsInventory for 1.13-1.15
Tomorrow or the day after.
It also supports minecraft-heads, as well as freshcoal and mineskin
I wish head database was free
Mine is free 😄
sweet, i'll grab that as soon as you drop it, it looks like exactly what i need
My issue above was the last hurdle I had to fix before the release. I'm only planning on adding bstats/mcstats and then it is ready.
thats should take like 2 minutes 🙂
Hi. I need help. My server runs Spigot 1.15.2 (Locked) and today for the very first time a message regarding Bad compressed packets. Does anyone know how to fix this issue? I need help please
whats your compression level?
I dont know where to check that
server.properties
Let me check that
@pastel condor @storm sparrow I'll drop an announcement in my discord channel once I've released it. You can find my discord on my spigot page.
okay, cool
There's nothing about compression level
There is only one called network compression threshold
Its set to 256
yeah that should be okay
what are your plugins?
I know I got that error when I used this one packet modifier plugin
or a similar error
I dont have that plugin
I have essentials, citizens, core protect, maxbans, world edit, power ranks, discorrsv, voxelsniper, commandnpc, world guard, tab reborn, player kits, placeholderapi, automessages, simple sit and luckperms
This is the first time I've had this issue and my whole server has it
Sorry, I'm not sure it doesn't seem like you use any packet modifier plugins
You did try restarting right
No, I dont use any packet modifier plugins
Twice
I restarted it twice
Same error
I dont know what to do
does anyone know why flags wont work with world guard ive set a region and when i set any flag it says it was set but it still allows pvp and stuff like that
If you use FAWE and are on 1.15, you may need to restart
does CreatureSpawnEvent not prevent natural spawns? cancelling the event does prevent me from spawning through any other means, but I am able to fly around and find creatures (such as donkeys) spawning naturally.
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
CHUNK_GEN
Deprecated.
no longer called, chunks are generated with entities already existing. Consider using ChunkLoadEvent, ChunkLoadEvent.isNewChunk() and Chunk.getEntities() for similar effect.
so if you're flying into new chunks, its going to spawn them regardless i believe
@vital copper there should be a SpawnCause or Reason.
@hoary hill have you ever had the Badly Compressed packets issue?
xD
:/
Yes, and can be found here:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html
However, natural spawns do not seem to trigger the event at all. I will post a video today or tomorrow if needed.
@EventHandler
private void onDonkeyOrLlamaSpawn(CreatureSpawnEvent e) {
if (e.getEntityType().equals(EntityType.LLAMA) || e.getEntityType().equals(EntityType.DONKEY) || e.getEntityType().equals(EntityType.TRADER_LLAMA)) {
System.out.println(e.getEntityType().toString());
e.setCancelled(true);
}
}
This is my code. I have it print to console when a donkey or llama spawns. But, when I flew around, I found that natural spawning donkeys or llamas did not trigger this event (nothing was printed to console) while if I tried to spawn one through a spawn egg, it would print to console.
Compare you enums with == not .equals
"Io.netty.handler.codec.DecoderException: Badly Compressed Packet - size of X is larger than protocol maximum of Z"
will do.
Have you ever seen that issue? @frigid ember
My guess is something with network-compression-threshold would be my guess although don't take that for certain
in your server.properties
but that's a guess remember.
@frigid ember unfortunately that did not help.
I have it config in 256
(Default)
What's weirs is that some of my players dont have this issue at all
@vital copper debug it do Bukkit.broadcast("test1"); above your e.setcanncelled
Alguien sabe como parchear los bugs para duplicar objetos en server minecraft 1.15.2?
and see if it broadcasts when you do /summon
or try spamming /summon llama and see if consople resonds
I have it print above the setCancelled already?
It does.
That did not work either. I also made sure that I was unable to spawn them in through other ways.
Are you sure it's even being fired?
Their shouldn't be a reason they're not spawning if you've cancelled them.
Anyone here familiar with how to properly manage scoreboards? I seem to have issues when removing scoreboards from all the players and then setting new values to the current scoreboards (it will create new lines with the new values)
Use this
that's the problem; the event is not being fired only when they spawn naturally, but spigot includes "natural" spawning as a SpawnReason.
Alguien sabe como parchear los bugs para duplicar objetos en server minecraft 1.15.2?
@frigid ember yes, but what about the removing of the scoreboard?
My only guess would be listening to the packet remotely
or if it's not a big deal disabling the gameRule doMobSpawning in that world
or just
EntitySpawn / CreatureSpawn remove them from the world no?
entity.remove(); ?
what do you mean?
If cancelling doesn't work delete them as soon as they're found (on spawn delete them)
the event isn't triggered at all, so how can I delete them?
Entity entity = event.getEntity();
EntityType type = event.getEntityType();
if (type == EntityType.X) {
entity.remove();
}
oh I see.
..
That was only triggered when i tried to spawn them manually.
I will try and find an alternative, thank you for your help.
Do you care if no entities spawn naturally?
Does bukkit.yml have a category for llama's?
for 1.15 atleast, not too familiar with that version.
Entities are not generated alongside chunks anymore
What you would have wanted would have been https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html#CHUNK_GEN
That would be the reason associated with chunk generation. See the deprecation notice for an alternative
Ah, thank you very much.
When is the error being fired @woeful gorge
@frigid ember Sorry I was in a meeting. Apparently is when we are near a chunk specifically
1.13+ server version? im guessing
The NATURAL spawn reason is used for
- Wandering traders spawning
- Wandering trader llamas
- Phantoms
what ver was that updated in* ?
The CHUNK_GEN change? Unsure. Let me check the blame
😆
Relatively recently, actually. I think this is 1.14?
April of last year
Yep. 1.14.0
That being said, that was just the deprecation notice. That very well could have been broken long before
1.16 is next. Released any day now
The amount of new things they've added is nuts
I'm pretty sure I've asked before but they've implemented RGB involving ChatColors only right?
Not with legacy chat. Text components
Only that?
i.e. Spigot's text component API will support it
All text in game is text components now. Bukkit is using hackery to support legacy chat still
I was hoping they had support with Maps or ever will because I was trying to implement a system where you could view Live Streams / videos live with tons of ItemMap's and Frames etc but the color sucks
You can barely incorporate a lot of technical colors.
Not sure what reason there is for restricting the colour palette of a map
TextComponents are applied to the Nameable interface as well I'm assuming?
Like naming entities items etc
Spigot may add API for that, can't recall
Bukkit doesn't. Anything text components, it doesn't support. Spigot encompasses a lot of it though
Fair enough
Unless I'm blind, doesn't look like Spigot adds API for that. Figured it did
Could probably write a PR to support it
would that even make sense to do, I'm not too familiar with the deep workings; "apply TC's to the Nameable Interface"?
Spigot creates nested classes to access additional methods
i.e. Player.spigot().sendMessage(TextComponent)
yep
Just a nested Player.Spigot interface
is nesting frowned upon?
I was thinking of if nesting sorry
I was told by some fellows that branching with if's
isn't good practice.
Oh, I mean... if you can avoid it without interrupting the flow of code, it's best to not nest
Sometimes you just have to though
yea
Hey does anyone know anything about missing entities when starting a server?
More information @timber perch
ohhhhh it just worked
the text component api needs something like this https://github.com/SpongePowered/SpongeAPI/blob/stable-7/src/main/java/org/spongepowered/api/text/Text.java#L1024-L1046
uhhhh sorry for that the server randomly fixed itself odd
Yeuck. Object...
There is ComponentSerializer#fromLegacyText() or something iirc
ahhh okay i see why apparently im running luckperms and nucleus together and luckperms got disabled when i installed nucleus
Not quite exactly what you're looking for and it's a little hacky, but it works
is there a way around this?
is 1.16 gonna have good chunk generation cause everyone was tellin me 1.15 has issues
or 1.13*+ has issues
Any reason you have two permission plugins? (Assuming Nucleus is a permissions plugin - I honestly have no idea lol)
Nucleus? the thing Joeleoli made?
Ah got'cha
It's a permissions remake lol
ohhh lol so technically i only need one of them
I think so
Oh, yeah then why the hell are you here? 😅
This is Bukkit. Sponge is a different API
also yes origianlly I had sponge and luckperms on it
Spigot @subtle blade *
lol
😛
cause originally i had sponge thats why im here but i wanted to add nucleus since i wanted the ability to do /spawn in my server
Do you have any info on the back story of what ever happened to the DMCA / of Bukkit
you want essentials then if you've moved to spigot
Oh, there are a number of spawn plugins
I remember when I was introduced into Bukkit I went onto the site but it told me it was down because of a DMCA
jflory made a pretty comprehensive blog on it not long ago. Lemme see if I can find it
ohh forgot to mention this is a moded server
like 5 - 6 years ago.
It's a long story I don't want to have to repeat so I'll link his blog instead lmao
its a pixelmon server hence the reason i cant run essentialsx
thanks lol
cause essentials apparently is for non moded servers
ya thats corrct
🤣
lol
ask in the sponge discord
sorry didnt know there was one
google it 😛 Aikar's the proj lead I believe
but thank you for the help i managed to get the server up again and delete the unneeded files
Of Sponge? Don't think Aikar is involved with them
Unless I'm totally out of the loop
I really don't much pay attention to them
I mean sponge has timingsv2 but that's about the extent of aikar's involvement
neither do I, he's too smart for me
we share some performance optimizations with paper as well
we as in the sponge team
Bukkit was owned by Mojang really?
Yes
is bukkit.org owned by Mojang im guessing?
Honestly don't really know where that stands now. I'd imagine they still technically own the rights to the project but just haven't done anything with it
Or maybe it was based on a contract. We don't know the details
anybody here familiar with bungeecord?
ask the question don't ask to 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.
really basic issue but im having a heck of a time searching and finding any results...i got the bungee setup and the server, ip forwarding turned on, online mode set to false, etc....and im connecting to it fine and things seem to be working. so i type /op in the server console, it shows that im opped, it shows i have the right UUID, yet, when on the server it doesnt seem to recognize me as an OP
lol
you can't op yourself on bungeecord
you're opening your self instancely (per server)
unless you have it syncronized server-to-server
i opped myself on the server instance
are you trying to run server commands?
Bungee ↓
(you have to op yourself on each server)
→ Hub 1
→ Hub 2
unless you have a permissions plugin blocking that.
There are permissions plugins that have Bungeecord integration as well
wait i think i figured it out
Ideally you'd use those to handle your permissions
ah ok cool
(LuckPerms being one of those)
what other perms plugins do people even use nowadays
what was the intent behind that anyways?
LuckPerms is typically the go-to for Spigot servers
why'd spigot implement the permissions.yml anyways?
sorry, I was wondering because I was reviewing the source code of a repo
and I saw a lot of stuff in their I personally have never used
nor have ever seen anyone use
also curious why spigot hasn't just added the vault services onto the api directly
It's a plugin concept
I mean, basically every server uses a permission plugin
Economy and chat management should be handled exclusively by a plugin. The server has no concept of these
The permission integration of vault can be accomplished using permission attachments
I guess I mean why not revitalize bukkit's permission api
with group management and such
Vault just acts as a middleman so you don't need to check for what specific permission plugin a server is using
and have like... 15 different implementations
I mean, sponge does the same, but with a builtin interface
Bukkit API isn't really meant to be implemented by plugins is the issue. There are few cases where it's supported (BukkitRunnable, for instance)
you'd have them use the ServicesManager
Bukkit statically mirrors all methods in the Server interface, Nermin
static
Unless you specifically need a Server instance (i.e. to pass it to something), you can use the Bukkit methods
Nothing wrong with static here. It's a utility class that bridges API and implementation
getServer() is just redundant
yea
eh you could counter that with all the statics being unnecessary if they're accessible through getServer
You could argue that, sure. Especially because Plugin has a getServer() method
Though it's much more convenient to have mirrored methods in a utility class that grants you access to what is effectively a singleton interface
There's never more than one instance of Server (at least accessible from Bukkit)
How can I add multiple ItemStacks to a player's inventory at once without a for loop?
or addItems(), yeah. Can't remember what it's called, but one of 'em takes varargs
does anyone know why i cant use flags in world guard?
I added it in the ItemStack creation
Choco, I was wondering do 108 slot sized inventories exist in 1.9 and above? I know they exist in 1.8 for sure but it's mis-textured and weird
You ready to be bamboozled?
pretty sure that's been patched atleast in 1.12+
good.
does anyone know why i cant use flags in world guard?
don't they have a discord to ask that in
^
i set pvp to deny and it says it was successful but when i test it doesnt work
have you made sure your region is defined correctly etc?
ive looked but i didnt find a discord so i decided to ask in here
They do have a discord.
yeah i did the expand vert and everything
is __global__ overriding your region?
where do i see that
__global__
alguien habla español?
what about using a symbolic link to link the ops files between instances of a server in a bungee network? i just tried it and it seems to work...any potential issues with this im not seeing?
you type \_\_global\_\_
it didnt work
just use a permissions plugin that supports bungee @robust marten
luckperms for example does
that's the proper way
i plan on it eventually, already checked out luckperm, im just messing around tbh, curious if such a thing would work, i have some other data i need to sync up as well, though ill probalby do most of it with mySQL in the end
@frigid ember it didnt work
Debug it out; put more information in.
Do you have any other plugins, is it the right world? are their any errors in console?
i have world border and w/e and some other plugins but it just stopped working today
Trace your steps, what do you think you've done that might've caused it?
ive added the extra flags plugin but thats all really
Have you tried deleting that?
yeah i deleted it
If it doesn't work, keep experimenting; check console etc.
No worries.
I studied a bit the issue.
My server is Spigot 1.15.2 and my players and I are getting this error "Io.netty.handler.codec.DecoderException: Badly Compressed Packet - size of X is larger than protocol maximum of Z". However, apparently is in random chunks that after some mins it fixes, but is very random. Anyone knows what could be causin this? I know it's not the plugins, but I have no idea how to fix this issue
Does minecraft have a coin item? Or a way to create a new item with a custom texture?
Sure. 1.14 added a CustomModelData NBT tag which is just an integer
Resource packs can compare against items with that tag under a model data predicate to give it a custom texture
Ehm
You're running the most recent build of Spigot, correct? And the players receiving this error are not on some non-vanilla client?
Not using any protocol hacks either (ViaVersion or the like)? If so, you're best contacting them instead
They are playing in Original minecraft (vanilla), no mods, no hacks, some have some resource packs on
And yes Im running in the latest spigot
Not using any protocol hacks either (ViaVersion or the like)?
Nop
That error is basically a surefire packet issue
That error is making me go nuts XD
I mean, plugin issue
Something is mangling the networking stack, that error is not viable as it would be caught sooner, basically
The weird thing is that it started today and i havent installed any new plugins today or like idk yesterday
if I had a nickle for everytime I heard that when it turned out to be a plugin issue
Have you done some binary searching with your plugins? (Removing half, testing, etc.)
A pain, yeah, but it's likely the only way you'll pinpoint which plugin it is
Well I was going to
But the hosting im using doesnt allow me do like download the plugins folder (for a backup)
XD
Aternos
You should have FTP access. Most hosts grant you access to that
Likely not from the panel
If you have FTP access, you should be able to clone your entire server directory, basically
Yeah, try and get yourself a local copy. Remove half of your plugins, test. If you don't have the error, swap with the other half. If you have the error, half again and repeat until you have just one left
I have my suspects it could be nuvotifier
It will take a while, sure, but that's the best way to figure out which plugin it may be
That's very, very possible, yes
Maybe I will uninstall it and check
Thinking about it, is the only plugin that sends info outside the server (to the pages to vote)
I will start with that one, if it doesnt work, then I do half and half
Yeah, best to start at least with your best guess
Might save you some work in the long run ;P
Yeah imagine testing all and ir was your best guess the whole time
That would happen too
did you figure out your problem with the compression problem @woeful gorge ?
only plugin I could see causing that problem is tab reborn
Tab reborn has been on the server since the start and it hasnt caused issues. But NuVotifier is new and it was linked to websites just today, so maybe the issue is there
Like we linked server with websites and the error started happening
interesting that plugin would cause clients to have problems though
Do you use Bungee?
No I do not
Well it does, but at same time doesn't because the packet the plugin uses is independent of that of what clients get
Yeah, still trying wont hurt us right?
I can go and kill you XD
only thing I can figure is that your NIC doesn't do compression properly or the OS
No if its not that, i have to do half and half until i found the one
and if none of the plugins solve it
my suggestion would be to disable compression entirely
There's another plugin
I have citizens is an NPC plugin, idk if they could cause it
What would happen if I disable compression? Lag?
Those who don't have a high bandwidth can see network lag on their client
but generally everyone has enough bandwidth these days for MC since MC packets are generally not that much to begin with
So disabling compression wouldnt be an issue?
in most cases no
you can make a comment above network threshold of what the default value is
and then set it to 0
setting it to 0 means no compression at all
Oh I though 0 means all compressed and -1 meant disabled
ehhhh disabling compression probably isn't gonna help
the error you are getting is in the compression. Protocol expects the size to be one thing but the actual size differs causing problems
Read before talking XD
So disabling compression would help with the error
Because is tiring to ask peoplento tp you away from the chunk
it would make it go away yes, because the protocol would always have the correct size since no compression is happening
in fact, if your players have bandwidth above 1megabit they would probably see better performance
since their CPU's are not having to decompress or their NIC's depending where the decompression is happening
Most play on laptops so Im not sure how would it work for them tbh
Well the disabling compression doesnt sound bad at all
decompression is small potatoes compared to the rest of the game for performance
compression only comes in handy for certain cases. Enabling means you are using more cpu power or making your nic work harder so you are not using as much bandwidth. But if your server has the bandwidth to handle it then you can disable it. As for clients, if they have decent bandwidth but not decent hardware they can actually experience more lag network wise with compression then if it was just simply not compressed at all.
Well yes compressing compares to the rest is a small piece
for those that have both decent hardware and bandwidth for their client will not notice a difference lol
I think most of my players lag because their shitty cpu (normal laptops)
And not because of bandwith
Width*
Then disabling the compression could actually help them
it won't be a huge leap but still helps
I will consider that as first choice then
Thank you very much!
I have learned a bit with this
network compression came about because we didn't have the luxury of bandwidth
When everyone had DSL and what not XD
sure bandwidth increased but still wasn't all that great
True
but with network compression its a balancing act
how much compression vs the amount of performance it takes for the server and client
to decompress
lol you say this as if the majority of the US doesnt have terrible internet
Well if we are strictly talking about the client in how much bandwidth is necessary. It really doesn't take much. I have a dsl box that has only 40megabits. I have tested at a friends house that has at most 1.5 megabits. And the client does just fine in most cases unless you are bombarding the client with a ton of packets for no reason.
that's good, and if the majority of your playerbase does actually have good internet, then you'll be fine
I mean my server is survival, not even a lobby or anything like that and if they have okay internet they would be fine
(most packets*)
I think disabling compression would benefit us
Try turning down the ratio before disabling completely
more then likely it would benefit you and the clients in the long run. Compression just delays the inevitable in most cases and that is bandwidth limitations for the server 😛
To what? Its set to 256
don't go below 64
packets are padded to 64bytes if they are less then that
since 64bytes is the minimum
If 64 doesn't help, then you can just disable
Disabling compression didnt do anything, well the error message changed
Hahah
New error message
"Internal Exception: io.netty.handler.codec.EncoderException:java.lang.IllegalArgumentException: unable to fit 2548239 into 3"
Any clues?
Huh... well you definitely can't fit 2548239 into 3, so I think Minecraft is right there
well it isn't hard to tell tho, what do you send to the client in such a large amount?
I dont know. Is like we have some corrupted chunks and when you are there, you get kicked
Could be a couple of different things? Team name for scoreboard too long or you are joining a cracked server and your username is too long.
Or yes chunk corruption. I think there is more information you can find in the server logs.
random question but, my server has a 1MB/second upload speed what should I set my compression level to?
Uhh you should find a better server
That sounds like a residential network connection
uh yeah
I have no idea what to do any longer
?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.
How does one get the location of blocks that have a pressure plate above them?
I currently iterate over a set location looking for the type of material, block.getBlockData().getMaterial() == material
Where 'material' is the pressure plate
what you tryna do @frigid ember
how do i make snowballs do damage
it automatically does damage
wasn't that a bukkit bug that was patched
how do i get a player from a scoreboard tag
Hello ! I juste wanna know: when I send a plugin message from a spigot plugin, the other spigot plugins get it, too, or just the BungeeCord?
how do i convert string to player
the Bukkit class has a method to get a Player from a username
@woeful gorge do you use scoreboards?
I found the solution to the issue in my earlier comment btw. By default, only the TerminalConsole, ServerGuiConsole and File appender are enabled, but the SysOut appender got enabled by log4J2's LoggingApplicationListener when I'd set up my spring application. This caused both the TerminalConsole and SysOut appender to write to the terminal. I fixed it by disabling it again in my own event listener with
order = LoggingApplicationListener.DEFAULT_ORDER + 1
@hoary parcel thx for taking the time to help me anyway.
@vocal breach ah I see. I don't think paper has that appender, since paper refactors all of that nicely. Glad you got it working even on spigot tho
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerItemHeldEvent.html is this event fired when a player changes there held item slot in there hotbar, or does it fire when the item itself changes?
Hotbar slot
is there a way to check when the item itself changes
as in the one held
Do I just have to use a runnable?
Probably one of the InventoryEvents
Is this even possible?
import org.bukkit.World;
import org.bukkit.generator.ChunkGenerator;
import java.util.Random;
public class VoidGenerator extends ChunkGenerator {
@Override
public ChunkData generateChunkData(World world, Random random, int x, int z, BiomeGrid biome) {
if (x > -1 && z > 5 && z < 15) {
// NORMAL CHUNK BUT THROWS AN EXCEPTION
return super.generateChunkData(world, random, x, z, biome);
}
// VOID CHUNK
return createChunkData(world);
}
}```
It throws an exception if it should generate a normal chunk
what's the exception
in the spigot chunk generator class
it's not abstract so your IDE won't auto over ride it
so you'll have to do it yourself
Okay thanks
hang on
I just looked over your code
@high minnow return super.generateChunkData(world, random, x, z, biome);
your calling the super method
that just causes and exception
because the super method needs to be over rided
you're already overiding generateChunkData
I want to try this: https://imgur.com/a/dmIcotq
For the green area, I need the normal ChunkData but I don't know how to get it
ah
I see
I'd say extend the default chunk generator
and call the super method on that
instead of extending the base ChungGenerator
I'm unsure where the default chunk generator is (It's probably in craft bukkit so you may have to do some NMS)
Although I'm not that experienced when it comes to world generation so other people may be of more help
Thanks for your support. Sadly, with version 1.13+, my old nms code don't works anymore because they removed plenty of classes. So now I want to try it with bukkit
Maybe somebody else has an idea or solution (please tag me)
Hey how would I loop through all the config files in a folder, and check if they contain a certain x,y,z position?
^^ been stuck on this for a few days now
Why keep it in separate files?
because everytime a certain block is placed, i need the location in the config file, so when it is broken it can check if it is that block type with that location, then add the metadata back
I would just do it like this
Have "placedBlock:" and then an id subsection with the location
hey
when handling a PlayerMoveEvent, what is the output of player.getLocation() ? is it equals to event.getFrom() or event.getTo() ?
@calm cloak how would I do this without using UUID's though - may be a basic question, but how can I create something that counts up for a name, e.g if it has not already been done Block1 and if that has been done create a name Block2
and keeps going up because there could be thousands of these blocks being placed
@paper basin probably event.getFrom
Their location hasn’t been set yet because the event can be cancelled
@frigid ember Set<String> example = plugin.getConfig().getConfigurationSection("playerUUIDS").getKeys(false); example.size();
just save it as an id, which would be the amount of existing blocks in the config
thanks!
does anyone know any actual good plugin for mob merging? so that spawners wont completely lag out the server...
last time i used lagassist (on aternos tho, it was free there) but the mobs would just dupe when i killed them
@high minnow you pretty much want this https://github.com/PaperMC/Paper/pull/3252
@high minnow you pretty much want this https://github.com/PaperMC/Paper/pull/3252
@hoary parcel If I understand it right, its not implemented yet in paper?
Nope, but you could look at the impl and use reflection I guess
I just brought it up to the team again, not sure we can get it in before 1.16
This would be a nice feature
Oh 10 minutes is up thank goodness
I am new to Spigot and have no idea to change npc skins from skins off the internet
I am only new to the program to please go easy on me 😅
Custom NPC skins are something that many server admins have asked for ever since Citizens was first released. In recent Minecraft versions it has become possible to control an NPC's skin via the new player packet system. By default an NPC will have the default Steve or Alex sk...
😮
Hey guys is there any developers or soemthing like that, im looking for a modpack maker 🙂 thanks for help
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
@fleet crane Thank you
can someone explain this to me?
MajsterGabrys, please note that in order to be able to post new threads in this section you must have an account with at least 20 posts and at least 1 week of age. Upon reaching these amounts you will automatically be promoted within a few hours.
seems self explanatory
i mean where can i post, im new to spigot
you have to contribute helpful content before hiring developers
Can you download MC skins from sites like planetminecraft as urls?
so i have to help others to have the access to post
yeah , same for posting premium resources
hey im new to coding and commands i want to download the gravy plug in https://www.spigotmc.org/resources/gravy.45288/ but nothing is showing up i cant use any of the basic commands im using minehut btw
I think u should work that out with the dev?
I would like to switch my project to a maven build, because I learned that automatic builds are possible on github and the dependencies are much easier to handle with both BungeeCord and Spigot, but I hesitate to try it. Does anybody have a good tutorial or might want to help me per DM?
@woeful gorge do you use scoreboards?
@keen compass I believe not since I have no clue what they are
Does anyone know how to check & see if a block contains / is a pressure plate?
I have two locations, and I want to iterate through all blocks between these two locations to see if any are a pressure plate
Then I want to store it’s location
Location#getBlock#getType i guess
Hi! I have a question. I want to add a Minecraft: Dungeons-like gamemode on my minecraft spigot bungeecord server. Does someone know like some plugins that are good for my idea? I’m searching for an automatic world resetter and some more plugins to make it work.
I forgot to mention that I’m also searching for a plugin that spawns certain mobs on a certain place when the player is on a certain location.
@frigid ember im a n00b but have you tried Block.getType()?
You should serialize the location if you want to store it in a file
[15:21:42 ERROR]: Block at 1,10,1 is BED_BLOCK but has net.minecraft.server.v1_12_R1.TileEntityNote@7e438c29. Bukkit will attempt to fix this, but there may be additional damage that we cannot recover.
Does this cause any harm? I am just doing setBlock using bukkit api, seems like bukkit is screaming this when doing a lot of setBlocks on the same location
version doesnt matter btw, its also on later versions
happens when you setBlock on a tile entity, seems that causes issues
or is there a "proper" way to remove a tile entity without this error?
Can't set block on the same tick, basically
(multiple calls on the same location, that is)
yeh
It's harmless, just a tad annoying is all
any way to bypass this?
other than filtering logs, lol
mh nvm, ill just look if theres a way to cleanup it properly
Aside from doing it the next ticks, yeah not really
Tile entities on the server are a tad picky
After you change it, you have to give the server a tick to process that it was actually removed
sorry for asking but, im getting this weird error:
Error whilst connecting to {servername}, you must be op to join directly. use the server selector otherwise
all console really shows is me connecting and disconnecting to the server lol
oh and its on bungee btw
i can connect to my other servers. besides, im opped
oh i might've forgotten to enable bungeecord in the config of the backend
does it work now?
it does not
are ur other servers on offline mode??
they are
Is this development help too?
Absolutely, yeah
its still not working oof
i've never had this error before btw
rip there is literally no documentation on it
you can get kicked for that without using one though. however you can disable/increase the max-pps value in the spigot.yml config
oh sorry
its in bungeecord.yml lol but you probs dont use bungee anyway
anyway, my error is still not resolved
this is the error i get when trying to join the server:
[07:15:25 INFO]: com.mojang.authlib.GameProfile@4ee4be92[id=2a8ec619-0926-33d5-a169-6c104857c8b4,name=Ellipvi,properties={bungeeguard-token=[com.mojang.authlib.properties.Property@630536f]},legacy=false] (/********:40899) lost connection: You must be op to join directly. Use the arena selector otherwise.
Hello is it possible to report ToS violation here on Discord to someone?
what tos violation, spigots or discord tos
spigots
but it's better to explain on Discord.... not in one box on spigot resource page
so is it possible to make a broadcast message to the world when someone buy things on buycraft?
I think so
any way to prevent having to login on every bungeecord server with authme?
Use a proper BungeeCord setup?
You definetively did something wrong if you have to login on every server
If you don’t run a server allowing illegal versions of the game to join you don’t have to 🙂
Use a proper BungeeCord setup?
well... im indirectly asking for "the proper bungeecord setup" but ok
very helpful
Yeah we tend to give a lot of help to people who encourage piracy.
listen i know you're trying to be "noble" or whatever but encouraging piracy and having an offline-mode server are still 2 different things
Running an offline mode server signals to people “hey I don’t need to buy this game, here’s a server that will let me play without supporting the original devs”
Thereby encouraging piracy
do you know what encouraging means?
also im not even hosting a cracked server smh
i have a different reason for authme
Then you have no need for anthme
i do
What’s your reason for using authme
the staff plugin im using has authme as its dependency for some reason
Can you install it but disable,like all of the features in the config? I don’t know what the config looks like... or just use a different staff plugin
i've never used authme before so i'll look into that
instead of using multiple bungees you could use multiple HAProxies to point to a single bungee
would solve your problem of having to log into multiple bungees and you will get better load balancing instead of using multiple bungees as well
No.....
Usually you use one haproxy per physical node pointed at a handful of bungee instances
But beyond knowing the network topology thats as specific as I can get.
Haproxy IS a load balancer. One instance of haproxy can support thousands of connections. Using only one bungeecord instance eliminates all load balancing and fault tolerance on your proxy.
There’s potential they’re using authme as 2FA for admins as well. Which isn’t a horrible idea in anarchy servers.
True, but most people who use authme are running cracked servers (perfectly reasonable assumption to make) and I don’t support that whatsoever.
Don’t you have to make your backed all offline mode and your proxy online?
Just not the session token.
And if you’re custom you can also pass even more data through if you want
The session token is never sent to the server
Nor is it sent to a proxy
Jt is only ever sent to mojang’s auth servers to generate a one time token
Can you bungee a vanilla server to a spigot server?
You can use a vanilla server as a backend but you won’t get uuid or ip data.
That’s fine. The idea is just to have the ability to send people from the main server to the snapshot by typing /snapshot
The server running spigot (or a fork of spigot) will be able to get this information though, so long as ip forwarding is enabled.
Hmmm. I’m not really sure if it would work. You may need to disable ip forwarding on the entire network.
I don’t know if bungee has a wya to make some servers not use the ip forwarding protocol extension
Eh that’s a no go for moderation reasons.
You can always try it out and see
See if you can connect to a vanilla server with ip forwarding enabled
I’ll see later.
I’ve never tried it but I would guess you can’t
The other issue is I can’t moderate the vanilla server.
So I might have to keep /snapshot a secrete if I implement something like that.
Or you could just... permission..l
Yeah that too.
I could use my portal plugin to gate it.
It’s got both bungee support and perms built in.
Hey, does anyone have any ideas of a plugin which could be used to show how many items a player has collected?
E.g. I create 5 custom items - a plugin which lets them store them in a "deck/showcase" (per player) and then when it's completed reward them?
Sounds like you would need something custom
Yeah, I'm surprised though. Would've expected this type of thing to be made/publicly available, surely a lot of RPG/city servers would want this
You just said “custom” yourself
No like by custom items I mean just random items
Like a piece of Dirt named Tim
Could be collectable
That's not to do with the plugin 😛, just a way for players to show off items they've collected and be rewarded for it tl;dr
This seems to be what I'm looking for if anyone else is interested - https://www.spigotmc.org/threads/plugin-that-adds-collectibles.314132/
signing in with a program to check for buyers for my plugin is allowed, right?
pls ping me if you reply
signing in with a program to check for buyers for my plugin is allowed, right?
pls ping me if you reply
@dim cape premium plugins must work without an internet connection
yes
not like that
like i have a thing running that signs into my account and checks if user x has bought the plugin
What do you mean not like that? There is no way you do that without an internet connection.
not in the plugin
its a seperate thing
that i run on my vps
that logs into my spigot account
and scrapes the page looking to see if a certain user is in the buyer list
Not sure if that's allowed. What use would that be if not inside a plugin, anyway?
to see if a user has bought the plugin
i want to make a discord bot that can verify that they bought the plugin
Oh, I am pretty sure that it is allowed.
There are apis for that, btw.
official spigot apis?
Not official, but functional
i would rather make my own, thanks though 🙂
https://github.com/Maximvdw/SpigotSite-API
Just gonna leave it here in case you decide to use it
yep
😉
strangely enough, nothing is working on my bungeecord server. i cant talk and neither can i do commands. absolutely no error messages. not ingame and not in console
im so confused
what plugins do you have?
also, are you able to do commands in the console? (to make sure the server isnt just frozen)
yeah everything works just fine
except ofcourse, the rest
constant 20 tps the last hours on all of my servers too
okay, i have a question, i'm not sure if it would be better for me to ask on the forums, if so just tell me and ill go make a thread.
what data are plugins allowed to collect about a server and its users.
specifically are plugins allowed to collect the ip of players on the server for anti-piracy reasons? (resolving disputes with paypal)
what if those ip's have the first byte removed? (ie: xxx.256.256.256)
if a plugin does do this what, if any, obligation to tell their users do they have?
(sorry i just had a rather unnerving conversation with a plugin dev)
@pliant dust IP's are static. How does IP collection help you?
probably gave yourself too many perms
@coarse folio depends on provider. Generally properly hosted servers have static ips, but users generally don't
hi guys i would have a problem with actionbars in 1.15 i created a method that works in 1.7 and 1.12 but in 1.15 it doesn't work
The method depends on NMS?
yes
also 1.9 bukkit api and up should have an actionbar method
^
Why doesnt BossBar bossbar = Bukkit.createBossbar not work
yes but the metod sendActionBarPost112 work in 1.13 but in 1.15 dont' work
what do you mean
what bukkit version are you using
1.8
Update
is that why?
yes
1.15.2 only version tbh
Alright
yes 1.15.2 is the best
Okay, ty
@coarse folio it dosnt help me, im not a plugin dev
i just had a conversation with a plugin dev who was thinking of adding it to his plugin, apparently somthing about "Protection against PayPal cases. I could easily prove someone bought my plugin"
It doesn’t prove anything.
like... i get wanting to protect your plugin against piracy...
but... that seems like going to far...
ISPs have different rotation policies.
is he logging ips?
not atm
i was wondering if there was a rule against it
cause that thought worries me
Some shift IPs once every system restart, some shift theirs daily regardless of what they do. He’s going to get nothing out of it.
okay, great, he think's he will, i dont really have any idea what the thought behind it is
Let me give you an example before that though.
the thought of logging player IPs just concerns me
Any server with IP bans and alt checking logs player IPs
i give up
Turn it back on then dispute. I’ve now got a new IP.
ima go make a forum thread
So there’s no “proof” I purchased the plugin.
uh if he's logging external ips turning off your router isnt a thing
however ip protection is the most dumbest thing i've ever heard
Depends on your ISP
Toggling your router on and off can get your ISP to give you a new IP address
If you have a dynamically allocated address
If I shut my router off long enough my isp gives me a new public address.
VPN
wdym vpn xd
Just turn on a VPN and boom. New IP.
i know but thats not what we were talking about xD
anyhow, if you're lucky you have an isp that assigns you a new ip if u turn off ur router for long enough
My point is IP adresses as a form of DRM doesn’t make sense.
but its very unlikely
IPs don't expose any personal info
In the US all ISPs are dynamically allocated unless requested to be otherwise.
uh....
you must be in confusion. restarting your router assigns you a new public ip regardless of the type
i think the idea is, someone doesn't know that their ip is being logged
so they dont think to go to the effort
you must be in confusion. restarting your router assigns you a new public ip regardless of the type
@umbral shoal not always
My VPN has Adblock built in.
@umbral shoal not always
@sturdy oar no i mean it doesnt give you a new external ip but a public one
i just want to know if there is a spigot rule agasint plugins logging player ip's and sending that data back to the plugin dev
Some ISPs don't allow more than X new IPv4s per day\week
so restarting the router could make no changes
Can someone please give me a hand? I'm looking at the spigot javadocs, I want to add enchanted books as rewards to spigot plugins like crate reloaded and bloodmoon. I can't seem to get it working
This is the item I added but it doesn't work:
ENCHANTED_BOOK ENCHANTMENTS:MENDING
If I just add ENCHANTED_BOOK that works but it has no enchantments
i just want to know if there is a spigot rule agasint plugins logging player ip's and sending that data back to the plugin dev
@pliant dust gdpr wont allow
I get a new public IP every time I restart my laptop.
My point is there’s edge cases that do.
there is no such thing as unique ip
as in, ips dont change that easily here, they're solid
oh
had same ip for 8~ years
There’s a reason though that elsewhere game devs have started banning device IDs.
IPv6 isn’t even static
which we're yet to move to cough
IPV6's can be statically assigned. But generally if they are you are given a prefix
My cellular provider uses IPv6
But you can be given a static ipv6 without a prefix as well
I should say being assigned a prefix
I wish OVH would give out more IPV6 subnets but, unfortunately they don't offer that yet lol
I have a /64, would really prefer to have a /32 XD
Handing out a /32 to everybody would totally defeat the point of IPV6
I highly doubt you have a need for 1.8446744E19 addresses
I doubt you have a need for 1.8446744E19 TCP connections
They give everyone an IPv6 though. At least the Canadian OVH does. @keen compass
what E stands for, it always confuses me
The point of IPv6 is to not need NAT
EEEEEE
E = *10^
it's the scientific notation
like 191919?
I can hear the ree.
1*10E6 = 1 * 1_000_000
*10^(whatever else)
aeb = a*10^b
1 * 10E6 = 1 * 10 * 1_000_000
1E10*E
No?
Right
my bad i missed '0'
My college math professor hated it when I did that on exams.
I'll correct what i said before
I always write it out on an exam
1*10E6 = 1.0E7
I didn’t like the man.
I only shorthand it on a computer
And he marked it correct regardless of how much he disliked it.
is it used outside of computers tho?
I've seen a few journal papers where they write e, but I much prefer to write it out as a power of 10 myself
i mean it only seems useful on computers since it's ugly anyway
All it really is is a different representation for scientific notation. If you understand what it means, it's not all that bad
1 * 10E6 = 1 * 10 * 1_000_000
@gleaming helm this aint true btw, its about degrees of precision
1e6 = 1 * 10^6 = 1 000 000
fight fight fight
Ignoring significant digit precision
Not sure why you're bugging out on that lol
ree
how old are you kevin? 😮
Somewhere between 20 and 30
Lowercase e means something different
closer to 30 or to 20?
e is euler's number
its E but e size
The number such that ln(e) = 1
Yap
I mean, in maths, you've got all sorts of different meanings for different letters of the alphabet depending on context
^
Across the board
Not true
I can assure you it's not
List one other use of e
vector e
😐
But not the only one
you mean the greek 3?
wut
no the other one
sigma is the sum thingy
--
/_
Yeah that's sigma
epsilon
sure but too lazy to search for it
Σ
Σ
∏
^ that one's fun
xd
probstat nightmares
I know I left that key Σwhere
I usually just go to the wiki for alpha to find these. I've never really needed them that much before the pandemic
Now that I needed to assess students' labworks electronically, I needed a place to copy-paste the symbols from. And wikipedia is a great place for that 🙂
Yes
Most of the time, yes
i haven't done those stuff in school 🤷♂️
You will eventually
You don't know that, really
we had them in last 2 yrs of hs
You'll probably get your first tastes of sequences in pre-calculus. Once you hit calculus BC (if you're doing AP) or a calculus 2 class in college, then you'll go back to sequence and series
us education system 😂
School systems are very different accross the world. What people are and are not taught in highschool (or equivilant) varies greatly
Yeah if you're not US then I have no idea
Hell, even in the US there's really no standards.
(I'm not from the US, just so you know)
Next year we should start doing analytic geom. , logarithms, esponentials
im still young 🤷♂️
esponentials -- is that like a Spanish exponent?
Don't worry, I'm sure everyone who read that, understood what you meant given the context
"Exponential functions" was what i meant
I once had a Spanish coworker, and they really struggled with words starting with 's' and always prefixed it with 'e' - was really fun 🙂
Obviously not in Barcelona?
Hi, i want to add on my server the /rankup command. What plugin i need for this? I m using luck perms.
In luckperms, you set up tracks and then just /lp user <name> promote <track>
I installed BuildTools, but I can't find the spigot-1.15.2.jar file to import into intellij (first time coding java)
Can anybody help me locate it? https://gyazo.com/92cd3e6edcfe5d15eaca8798b78d80e4
why... would you import the server jar?
You'd need to use Maven\Gradle and use spigot repository to implement the API
do I need to pull it from here?https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/
Sure. Though if you're using Maven or Gradle, you can grab them from the repository automatically
?maven
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
If you want to depend on server internals, the server is installed to your local maven repository by BuildTools already. API is available on the public repository

