#help-archived
1 messages ยท Page 192 of 1
just convert the plugins to plugouts
I got sunburned today while sitting @ home wtf
why are u so persistent
then you can plug them into aternos
and keep the data
@plain olive write to console:
stop ; copy SERVER.JAR ; download
Why would we
lets dm him the minehut discord
yes @plain olive
use /replacenearbyservergeneratortypeminehutwithservergeneratortypeaternos
What im tryna do is make an rpg server but i want to redo the vanilla enchantments, but i cant find any plugin that allows you to do that in 1.16, if there isnt then its fine but if there is any please let me know.
yeah we'll tell you
np
oh frick
I already bought that
he actually accepted an answer
Doesnt let you edit vanilla enchantments
Pog guys
i hooe he doesnt comes back
Or atleast change them
Nooo the peace
@plain olive CTRL+S and save it on your hard drive
Sharpness only adds like 1.25 extra damage per level, im tryna make sharpness do like 10% more damage per level if u get what i mean
why do you even want to host a server
Cus mobs on my server have like 50k hp
POG
whats the point of thay
The vanilla enchants dont cut it
see you in decades @plain olive
Minehut provides unlimited free server hosting for the Minecraft community!
#minecraft #minehut #freeminecraftserver
Create your server: https://minehut.com/
Join the Minehut Discord: https://discordapp.com/invite/wDQeKCA
Follow Minehut on Twitter: https://twitter.com/Minehu...
Oh alright
What i tried to do first was remake the vanilla enchants with a custom enchants plugin
Yeah
But got stopped when it came down to replicating luck of the sea or depth strider
custom enchantments
i think i made a way around that
i just disabled the sharpness vanilla enchantment
and made a custom one
forgot which plugins i used tho
Yeah remaking sharpness and stuff is dead easy
The problem is remaking luck of the sea or depth strider
Remaking enchantments
Depths strider maybe give speed based on enchantment level?
Edit: while in water
Remaking them with custom enchant plugins i mean
Cus all custom enchant plugins i find are for pvp only basically
I mean, remaking depths strider ive never heard before
Yeah isk
Idk*
I wanna remake all of them
I just gave that as an example but tbh depth strider is not really needed
what do you want to edit then?
U see i want all the enchantment books to have a custom lore like a description of what it does and stuff, when u apply the enchantment it shows a different lore and also the ability to edit enchants like sharpness and stuff
oh a persistent lore
Cus my server is an mmo, with mobs that have like 10k hp sharpness 5 aint gonna cut it
But this is only for vanilla enchantments
Custom enchants i can do myself with a plugin
Why not just create a Sharpness 6, 7, 8, etc. then?
Cus i want the cap to still be 5
Instead of sharpness 1 giving 1.25 extra damage, i want it to give 10% more damage
You could give sharpness 2 instead of 1 and just change the lore?
Yeah but he wants a persistent lore
Any of you played hypixel skyblock?
Its pretty dope how hypixel did that
yeah i do
I want something like their enchant system
yes, they have those rarity lore in every item
persistent lore?
You need to explore outside of the plugin only then
They have custom ids and stuff its weird
I dont know how to code lmao ๐
I can do persistant lores for normal items like rotten flesh
Ive done it already
i dont know a plugin that adds persistent lore
When u kill a zombie it drops rotten flesh that says COMMON in its lore
is skript capable of that?
There could be a api for persistent lores
Nah its a plugin
Skript sucks for long term studf
what is persistent lore?
Stuff*
@frigid ember Its basically a lore that is already added when you get an item without editing it
lets say you get a block from gm 1, theres already a lore with it
like "common block"
something like that
how does that work
Theres a plugin that does it already
Idk either
do they like listen to when u get the item and then replace it?
I tried remaking a aotd in skript, it took like 7h, and maybe 2h in a spigot plugin lol
what type of lore are they adding anyway
for every item in mc?
Ye
Yeah
Theres a plugin that does it already and it takes like 2 seconds to do
the hell
what
But u gotta remake every item
Can you link it here? Seems useful
@clever hornet good luck with that
I spend my entire day working on my server anyway so its fine
i can help you setup 50 items if you want but i need to know how tf does it work
Probably yaml/json
is it paid?
1 is paid yh
dont send if its paid
Oh ite
yaml ain't markup language
thats not allowed
Why is paid not allowed lol
leaking paid plugins is not allowed
yeah
because itll destroy the purpose of selling it
Yeah link the 2 plugins i mean send the link to the spigot page
Yh sorry if i explained it bad lol
Thats the first one
Thats the second one
hm, mmoitems looks promising
Its really good
Definitely worth it
They sell an mmocore too
Quests and all that
yeah i cant use mmoitems lol
20 euros each
Oh god
MIreplacer is free addon tho
requires mmoitems lol
That lets you replace any vanilla item with an mmoitem
its been a while since ive heard mmo
same
And replace it with the vanilla one
oh thats cool
U can also disable all vanilla recipes
That needs to look for a lot of events
i need to also work around with actionbar
Im not using every item on my server anyway
you could probably automate it with like node
Have you ever mess with actionbar?
Nope
Mmocore already does premade actionbar tho for hp and stuff
you should add it if its a mmo server
Health and defence on the action bar lmao
if you know what hypixel hp defense mana actionbar is then thats wat im talking about lol
I need to collect my minions brb
mmocore
Mmocore also adds skills like hypixel and stuff
idk why but i hate using the small built in features lol
U could also remake fairy souls if u wanted to lmao
Thats a lot work too
Eh idk i find it fun
Nice
Nice
I make texture packs aswell but havnt done any cus im doing my server
Can you send a template of what this replacer of vanilla item looks like?
I cant im not on my pc and its 1 am
I can make a more green grass blocks with texture packs yes..
And wym by template?
2am here lmao
Like the config?
That's specific
so if i want a hypixel texture pack then its only for hypixel
I helped make a hypixel skyblock pack i think the discord server for it has like 1k members idk
Enhanced Hypixel pack
have some damn good designs
Just installed a spigot server on a raspberry pi and was wondering how to open the console when the server is booted up?
I helped make an extension for enhanced skyblock textures yh
Uhh, did you just double click on it?
Am i allowed to post youtube links here? I remade the revenant horror from skyblock and i want you guys to see
Yh thats me lol
you made extensions, i forgot about that
yeah its all working. i have it set to launch minecraft server when my pi reboots. but not sure how to open the console
Ive already seen the rev vid
Oh lol
its pretty cool ngl
Thanks lmao
im trying my best not to get caught into making a replica of hypixel
i get so inspired that i make everything in my server look the same as theirs
I have the same problem
I got caught started remaking most of the basic minions
The inspiration for my server is hypixel skyblock and minecraft dungeons
I got them moving around
Interesting
Mmo Factions?
Yep
W h a t
and i havent sleep
I think i wont have a all nighter today
ive been doing some pencil arts ideas for texture pack im planning
rpg stuff? ๐ค
The way it works is there is 2 worlds, the mmo world and the factions world. To have the ability to build a factions base you need to grind levels in the mmoworld
Thats the concept
Yep
What event
this guy just pops up and goes "event"
getState() https://i.imgur.com/qF5DdPs.png
Lol
I even remade the slayer quests from hypixel but i called them contracts instead
So for the reaper its the reaper contract
Im planning to make one of those too
Repear mask kek
but they have their own places
It takes a long time tho but im having fun with it
in the localhost
and you collect 7 heads from each mobs and you put them on an altar
its basically just an enderdragon summoning
Can i post youtube links here?
ye
is thag a mythicmob?
I think it hurts a bit too much
You have a few thousand times the java int limit of defense
And it took you to half hp
you have a good rev replica
Ive changed it alot since that video tho
im trying to remake cosmicpvp
Bruh thats what i tried doing first lol
lets go to general
damn how u get those symbols in the actionbar
Ite
Is there any official api for actionbar?
I have a "bukkit" folder in my datapacks folder on my server, and I don't remember putting it there. Anyone know where it might come from?
i think its player.spigot().sendMessage() and then u can choose actionbar
i think bukkit generates that isophoenix
i have it too
I have this code...
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event) {
Block block = event.getClickedBlock();
if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){
if(Tag.TRAPDOORS.isTagged(block.getType()) && event.getPlayer().isSneaking()){
event.setUseInteractedBlock(Event.Result.DENY);
}else if(...){
...
}
}
}
I want to check if player is trying to click on a trapdoor.
How to cancel such click correctly? I assume players can click on blocks even when they're shifting by sending fake packets. Can they?
I'm not
Also I don't know if isSneaking would return true if player was on a slab so he won't be able to not sneak
this
wait I'm stupid
does it?
why am I checking isSneaking
it's useless
if player was sneaking it would place a block I assume
not sure if it counts as interaction, let me try
hmm I cannot place blocks on top of that trapdoor...
nvm
the client can spoof anything in a packet
you should not be taking that into account
if clients want to spoof some value, that's on them to ruin their own experience
how am I supposed to cancel trapdoors from opening?
but people to be able to build on them
the problem is that I do not want anyone to open trapdoors at all
otherwise..
because I don't want people to abuse that it's impossible to built on those trapdoors
or make some weird bugs
I am just searching for the right implementation
I just don't think that's the correct way
but then people aren't able to built on it
if that's so, then bukkit/spigot is very stupid for not implementing an event for door/trapdoor opening/closing
oh found the solution
.setOpen(false)
My trapdoors will always be closed
that's for sure
weird, the event is fired before the closing/opening event
isOpen() is true when I close it
@frigid ember That's because the event fires before the action takes place
otherwise cancelling events wouldn't work as intended
well yes
I am trying to figure out how to cancel that opening action
Let's zoom out a little
Why do you want to stop people interacting with trap doors?
Do you want to keep them locked in a particular state?
Is it always the same state
Yes
You always want them closed I presume?
And why are you looking to do this
automods got ya lol
because of the special "blocks" I make which are remodeled from trapdoors to some kind of logic gates
they have the most similar hitboxes to redstone repeater/comparator
and they store rotations
and there's 7 trapdoor types in total
Whats the best Factions plugin you guys would recommend?
very cool @frigid ember I recommend listening to the event and if you want a failsafe in all situations.
Going to guess the blue wire is remodeled string?
If it's a trapdoor interact, do a Bukkit.getScheduler() to run 0ticks later
@subtle blade rails.
@frigid ember Your other option is to cancel all interacts, and if they're sneaking place a block on the associated adjacent block
There's a very handy method for this Block#getRelative(BlockFace)
May not be called getRelative
but it's close enough
(it is)
Ok... so how the heck do I change an NPC's gravity- I've tried using what Citizens does but it doesnt seem to be working
@frigid ember One of those methods should work for you. If it's a rotational block you may have to add some extra logic to make sure it places facing the right direction
But even without that it's good enough in 99% of scenarios
Hope this helps!
is there a method to break a block as if it was actually mined? (like it makes noise and particles)
or should i just spawn in particles and play sound
that doesnt make noise and block break particles
o
yea
yeah you'll have to do the particles and sounds
if (!recipient.getServer().equals(sender.getServer())) {
This is always true
getServer() doesn't seem to return the same instance if they are on 2 seperate servers
Also you check for the same instance with ==
Choco, the inventory click event is dumb
at no point will a plugin running on two separate servers be able to make a comparison where that is not true
reeeeeeeeeeeeal dumb
That's something worth noting lol
@frigid ember https://duckduckgo.com/?q=worldedit+discord&t=hk&ia=web
Sorry, I didn't realise Spigot had a getServer method
Many things do
Still, is this intended behaviour for Bungee? @subtle blade
but i cant get it to select certain blocks
No matter what server the two players are on, that statement if (!recipient.getServer().equals(sender.getServer())) {
Do you want to select them by hand or programmatically
Is always true
@subtle blade, I believe this plugin has bot reviews https://www.spigotmc.org/resources/joinmanager.81735/
What makes you believe that?
Could be his friends.
Us developers have no friends
it's sketchy
Or he made new accounts.
Or he made new accounts.
๐
Bot reviews, new accounts, close enough
my plugin which has been on spigot for half a year, has 3 reviews. It's so unlikely that a day old plugin would have 2 5 star reviews.
and it's the authors first plugin
They both were on 6 and 16 mins ago viewing resources and engaged in conversations... could still be his friends.
im running a server on a vps rn and its suffering from a verry low tps with no players on it
What plugins do you have installed?
You can also check htop in your terminal.
And send us a timings report with "/timings" ingame
how do i get out of screen white not quitting it again?
authme fails to connect to servers, xauth doesnt load and auth gives an error when you register
what am i doing wrong here?
@frigid ember Did you make sure that the mysql database is running and can be accessed by the plugin
@ocean root You can quit a screen any time with ctrl+C
If did start it with -d it can run without a session (detached)
well i start it through java args
@frigid ember There is probably a config option that lets you use flatfiles.
Other than that you should google how to set up a mysql database. Not that hard but too much to explain here.
Smells like offline mode
@ocean root Did you start your server with the screen application?
java -Xms3084M -Xmx3084M -XX:+UseConcMarkSweepGC -jar spigot-1.16.1.jar nogui
thats what i use
Xms3084M -Xmx3084M what is this part for
memory allocation
Thats a shellscript on a vps right?
ya
Beta 1.8
oh, error says 1.16.1 lol. well at least you've got that going for ya
?
Ok if you just run this in the terminal then your session is linked to the mc server.
You should probably stop it and check if you have screen installed.
Just type in "screen"
PS i also tried running a server on a PI4 with 8gb. I got a cooler for it and overclocked it a bit @2.1Ghz
It doesnt run that bad to be honest.
@ocean root Ok then i think i dont understand the problem with "closing the screen"
Just ctrl+C.
While you are at it you can "/timings report" ingame and send the result.
Then check htop while the server is running
or ctrl+a then d to detach from the screen
l
it says its copied to clipboard
ctrl+a -> d as fierceeo said
?
instead of ctrl c
Im not sure about timings v1... has been a while. Did you need to start it before reporting? Let me check again.
Yeah
Maybe you need to
/timings on
Wait 2 mins
/timings paste
so its using more then teh 2 vcores we have tf?
do zombified piglins have a non-standard item pickup system? because it looks like they're bypassing my entitypickupitemevent which works for every other living entity I've seen so far
its only showing 120% cpu
That hopper ticking though
theres alot of hoppers
Almost 3000 hoppers/ tick
And another 1.7k tile entities
were all mostly in the same aera
My storage system for my plugin saves everything to a folder called 'medievalfactions'. I just recently added a config.yml and it is getting saved to 'MedievalFactions' by default which is now a separate folder that gets created. How can I save the config to a specific folder?
You should probably tune the hoppers down in your spigot.yml
how do i do that
transfer to what and rate to what
also nvm my previous question (I think) turns out I still only have unverified reports of that happening
@rotund orbit You should always default to your plugins folder that gets created using JavaPlugin#getDataFolder()
I gotchya. Were I to do that now, wouldn't people's saves be broken since my plugin looks for the 'medievalfactions' folder right now?
I guess I could check if the 'medievalfactions' folder exists and to look in that instead
I'll figure something out, thank you ๐
Ok... so how the heck do I change an NPC's gravity- I've tried using what Citizens does but it doesnt seem to be working Please tag or PM me with ur ideas
bruh all my packages are erroring and intellij says they no longer exist? Error:(24,23) java: package org.json.simple does not exist
but like...
@grim halo what should i set the transfer and check to
Do I have to have to worldedit for schematics or were they made by worldedit?
op urself lol
No / in console
@frigid ember From your console...
You cant op yourself if you are not op...
Or anyone could just op themselves
No / in console
recipient.getServer().equals(sender.getServer())
Anyone got any idea why this is always false in a Bungee Plugin?
works now
Even if clients are on same server
tyty
dont use bungee sorry mate
Did you try ==
No, but I don't understand why that would yield a different result @lone fog
Surely == is more strict than equals
server tps is fdoing way better
As equals can actually detect if too different instances in memory are fundamentally the same
Or atleast if the class has implemented .equals()
These should be the same instance in memory though
Maybe
Server is the server connection, which is unique for each player given the nature of a connection
@lone fog I agree, which is why == should be more strict
Ohhhh, thanks @chrome lark
the actual server info is stored on there, which is what you'd wanna compare
Much appreciated
Makes sense
@chrome lark serverinfo is shared among different instances of server right?
yes
thanks
Ok... so how the heck do I change an NPC's gravity- I've tried using what Citizens does but it doesnt seem to be working Please tag or PM me with ur ideas
So I didn't know about JavaPlugin.getDataFolder() and I saved all of my plugin information under an equivalent but lowercase String as my folder name. I worry that changing the location I save to now would ruin the save files of people who updated their plugins. Is there a way to save the config.yml to a specified folder?
@sudden elk For starters, what are the NPCs. Are they Citizens NPCs? Your own? How do they work? Need more info
@rotund orbit Add some legacy code to auto copy old files to the new folder, and delete the old one
You can check if the old folder already exists using some Java File io stuff
My own... @wheat mirage
Whether you leave it there forever or only a few subversions is up to you
It should not impact performance at all
As it'll only be on startup
Have you figured out why the citizens code isn't working for you @sudden elk Could you expand on what you've tried
Again, more info needed
How have you implemented the NPCs?
Iโve tried npc.getBukkitEntity().setNoGravity(true/false)
As well as what citizens use which is a getHandle() method for โgetHandle(npc.getBukkitEntity()).setNoGravity(true false)
And it's still falling?
What's the NPC instance
A HumanEntity?
How have you implemented the NPCs?
Last time I'm gonna ask
A code snippet would probably help
Is that without citizens? fancy
Yes
I'm not sure noGravity works on players
Also just to be clear my issue is they donโt have gravity by default and I want to be able to enable gravity
@wheat mirage ur thoughts?
any1 wanna help me with this error i got in my server console?
console error
got that with my own pl
Ok... whatโs the path to ur main class
And send ur plugin.yml
@sudden elk Do npc.getBukkitEntity().setGravity
Gravity calculations are done clientside, the server tends to ignore it for players from what I can remember
Iโve tried that
Take a look at where gravity is being calculated
It's in some on tick methods
An easy search to find the spot is look for SLOW_FALLING potion effect handling
You may want a decompiled version of spigot and/or mc for this
Iโve already tried using that
Sure, but now you need more information
Huh?
Take a look at some on ticks to find out why gravity is still being calculated with the flag set
More importantly, find out why it's being calculated at all server side for an EntityPlayer
Mate... what? Iโve tried using that method and it doesnโt work
I'm not saying use that method
I'm saying look for more information
Sorry I'm not handing you the fix on a silver platter
"Mate... what?"
Fix it yourself
I asked for help, itโs not like I havenโt tried looking into it but I didnโt find a solution. Now Iโm here asking for someone to at least give me some sort of a start.
And if you know the fix then can you at least give me a start on it
I gave you that, and instead of carefully reading it you choose to be sarcastic.
Sorry, not interested
anyone here super familiar with mythicmobs and think they may be able to troubleshoot something for me ?
hehehehe
im a retired mm staff
join the discord
also
can someone take a look at this: https://pastebin.com/2AuNSDf6
no idea
join the discord
@rapid lance oh yeah i forgot there's a mm discord
yee
So I was hoping to set the damages of certain dyes to a certain amount. For example, I wanted to set pink dye to deal +6 attack damage
Is that possible? Is there an easy way to achieve this?
@frigid ember Attributes. Believe ItemMeta has an API for it now
declaration: package: org.bukkit.inventory.meta, interface: ItemMeta
Boom, there you go
Worst case, handle your extra dmg in dmg listener
@rapid lance hey since you're former staff do you mind if i just pm you a question directly, just in case you have the answer to my issue ?
@rapid lance It's having an issue registering commands, message the dev
@wheat mirage is there a way to โturn offโ the weapon swing cool down
Kind of. You can just set the attackspeed attribute to a high value
is it possible to increase the strength of an explosion without increasing its range? or do you have to cheat by removing blocks manually
I think there is just one value that determines the explosion range and "strenght". Power.
So would probably have to do it in a hacky way.
ok thats what i thought thanks though
isn't that one just drop rate? or am i misremembering
Anyone know what the databse part of mysql is?
What? Which database part?
What is the problem
@silver basin do you know what the database portion od mysql is?
Mysql is a database I think your asking about a config
Yes
mysql is a database... every portion of it
so again what problem are you having
One second
My current settings
Can someone explain database for me please?
And if I'm doing something wrong here :/
so my first question have you setup a database
You have type twice
thats the name of the database you setup...
mysql can hold multiple databases;
more specifically its the name of the schema
How do I find the name :/
In the console?
yes
The server console?
replace the username and password
Ok
I dont have access to the actual dedicated server console :/
It will have the name there then
well on that page what does it say for the name
One sec
it will probably be 'minecraft'
name
really
Name.39
jesus who is the host
Wierd
Yeah
does the page give u an IP for the database
I assume you put that in the config
Yeah
Another thing: my server keeps sending me this
[Server] WARN [dynmap] Marker API has been requested, but is not enabled. Uncomment or add 'markers' component to configuration.txt.
22.07 01:02:32 [Server] INFO Dynmap Integration: Could not retrieve the MarkerAPI.
It just spams it
so probably do what it says
yes
I dont understand
you can edit out usernames and password
I would fix the sql stuff reboot and see if it goes away
@wind dock paste the logs but probably go an ask in Dynmap support
Ok
Hello! I've created my own generator but it contain biome like in some regions the dirt (color) isn't the same, I don't want it, I want it appear like normal dirt or biome, how to do?
Ohh, but what about BiomeGrid.setBiome(int var1, int var2, int var3, Biome var4); what var1, var2 and var3 mean? is it x, y and z?
Probably
Ok, thank you both!
for some reason this isn't working for me.
this.getCommand("police").setAliases(etc...)
my code is
https://github.com/ramdon-person/SimplePolice/blob/master/SimplePolice/src/com/voidcitymc/plugins/SimplePolice/SPPlugin.java#L109
Hello I'm trying to create a new recipe and I'm going through the SpigotMC wiki page and I got confused when creating the recipe.
recipe.shape(" E ", " E ", " S ");
What are these letter supposed to represent? Are they patterns? Why are there multiple?
Each string is a line in the crafting table
The letters are keys that are used in recipe.setIngredient
If each string is a line, how do I know which of the three blocks of the line I'm referencing? @lone fog
Each string should have 3 characters
So like this?
recipe.shape("EEE", "EEE", "EEE");
Yes
And do I use Material.AIR for empty spots?
You can just use a character and then never setIngredient for it
Thank you ๐
When i verify where is the message
How would I set one of the ingredients to be one of my custom items?
Yes
Its deprecated because its draft api. So it might change a bit in the future.
Sounds good ๐ So I just do recipe.setIngredient(character, ExactChoice)?
Itโs only draft because itโs only implemented for shapedRecipes
Is there any way to make a custom item's material register differently, so plugins that affect items won't affect my custom items?
For instance, I have a food spoilage plugin that assigns timestamps to crafted ingredients and food. My "Salt" item has a timestamp now because its material is sugar.
Or would I have to add support for my recipe plugin to my food spoilage plugin?
I dont understand the "register differently"
An itemstack has a field called type that represents the Material of the itemstack.
And other plugins as well as the server/player will see the material as it is
There is one thing you could do:
All your items are sticks for example. You add data in its PersistentDataContainer.
Then you register a packet adapter like this:
[Server] itemPacket to Player -> [Adapter] intercept packet & check if it has right data in PersistentDataContainer ->
[Adapter] edit material with StructureModifier -> [Adapter] Send changed item to Player -> [Player] sees item as Sugar even when its a stick on the server
how do i put information into a .dat file?
I want to put information about the player inside it, example, kills and deaths, then i want to also check how many kills and deaths the payer has
@sage summit Why do you need to write into a dat file? Cant you just use something that is easy to maintain like a .json .yml or even a .bin file?
i was told to use a .dat file instead of the .yml i was using
.dat is just a very broad declaration. There is no easy way to write into it.
However i believe if you use the PersistentDataContainer of a player it might get written in the player.dat file (dont quote me on that)
ok
If you want to maintain data you should stick to .json .yml
Who told you to use .dat files?
Do you need to parse the data when the player is offline or do you need it just to be persistent?
Thanks @grim halo. I guess I meant register as in events like CraftItemEvent.
a friend who also makes plugins, they are better than me, i think they said it was just for another file because i was using the default config file
@rotund orbit There is no easy way. Only the one i told you above ^^
Ah ok. The default config should only be used of configuration. If you want to save data you should create a new folder and probably just write a file per player.
But .yml and .json are absolutely fine there. I have never seen anyone tinkering with the player.dat
im using hashmap btw
idk lol
Ah caps is a nono
wrong server
allright so i need modded help, i know its not officially supported or anything but i would like your opinion on the matter. so im running spigot 1.12.2 for my lobby with viarewaind so that people can connect with 1.16.2 . this works fine with vanilla clients. but i want to add a modded server. the ftb pack runs 1.12.2, same as the lobby. when i attempt to connect with the mod pack, i get the error "Invalid payload REGISTER!". i have googled the issue, but im not sure anything had poetically good answers.
Forge versions change drastically with different major versions. I dont think there is any way to join a 1.12 forge server with a 1.16 forge client.
no, sorry, the forge client is 1.12.2 , along with the FTB pack
i changed to "vanilla lobby " for this reason
so the lobby server and modpack are both on 1.12.2
Not sure if you can just join a vanilla server with a forge client...
Because the forge clients sends a lot of packages the vanilla server could see as malicious
wait so what would the best way to store data for each player thats around 50 or less lines long?
Do you want to parse the data when the player is offline?
no, its just going to do stuff when the player is online
If its not too much you can just throw it into the PersistentDataContainer of the Player
Or you have a folder and for each player you create a <UUID>.yml
So every player has its own file.
Persistent Data Containers indeed do write into the dat file in the playerdata folder
Good to know
ok
it like wants to work. i can get into the server for like 5 seconds, i can even see pigs moving
can anybosy explain howto read results from spark?
my server is lagging hard but i dont quite understand whats causing it
What do you mean by spark?
Do you mean the spark framework? Didnt know anyone even uses this anymore
Ah you mean apache spark?
on the 19th i asked about it and someone suggested using the spark plugin my internet went out so i couldnt test it till now
The spark plugin...
Cant you just use the timings?
When it lags
/timings on
wait some mins to collect data
/timings post
or for v2 just /timings report
such a thing is built in?
geez
the last server i ever ran didnt have any problems so im still new to figuring out whats wrong
thanks thats so much easier to understand
okay so, i figured it out but i need help changing something, i have spent about an hour trying to grep this location with no luck, wayyy to many results. here is what i have to go off of, im getting this issue because im trying to load too many "channels" specifically, more than 128. The thing i need to change is in the I believe it is in the PlayerConnection class. and i have a hint on where it may be located "I downloaded and ran BuiltTools.jar, then went into the spigot folder, then org.bukkit.craftbukkit.1_12_R1.CraftPlayer.java. I edit that file, and there is a line in there with the limit. Change that line, then instead of running BuildTools again, go to the spigot folder and run mvn build/mvn install." - not me someone online. now i cant find what line or where he changed that from 128 to 512 (it doesn't have to be 512 just some larger number ) and im not sure where that class is
any help is really appreciated
There is a PlayerConnection class in net.minecraft.server.v1_16_R1.PlayerConnection
i greped for that, and got nothing. where would i go about looking for that
can anyone help me? My IntelliJ is building another project somehow when I build the artifacts for another
i have been looking for this file for so long, my eyes are blurry
like I have a fork of something called helper, and my plugin called VulcanCore
when I check the outputted jar, it contains none of my src, and a plugin.yml with helper
maybe its not even compiling at all?
okay so, dose anyone know how to find PlayerConnection class in net.minecraft.server.v1_16_R1.PlayerConnection
usually that would give a warning or success message
@golden valley pretty sure you do ((CraftPlayer) player).getHandle()
what, in where, how, what is this wizzardry you speak
player is an instance of the bukkit Player class
oh
((CraftPlayer) player).getHandle().connection
I think
someone pls help
so
potioneffect;duration;amplifier
I tried JUMP;5;5
for Jump V and 5 secs duration
but the result isnt correct
What's the best way to handle entity issues on 1.16? Don't entities just kind of stay in unloaded chunks in 1.16, causing bad performance. Should I just remove entities on a chunkunload event or something?
If the chunk gets unloaded then every entity in it is getting unloaded as well. They wont exist on the life server anymore.
Entities actually get unloaded first before a chunk does
If the chunk gets unloaded then every entity in it is getting unloaded as well. They wont exist on the life server anymore.
If you have any entity plugins like for stacking or such... may want to check if those unload the entities.
entities don't stay loaded if the server chooses to get rid of them
What happens if you keep a hard reference to an entity. Only bad things i can imagine.
what you end up having actually is a plugin with a memory leak because it retains references that are no longer valid
entities don't stay loaded if the server chooses to get rid of them
Some plugins will just reload the entities. Some plugins stop the chunks from unloading.
what you end up having actually is a plugin with a memory leak because it retains references that are no longer valid
Some plugins do this also but remove the hard reference when the entity is respawned. Mostly in "Boss" plugins.
So why do entities cause so much more problems in 1.16 vs 1.8?
And what's the best approach here? I know how to handle lag on 1.8 quite well, but the jump to 1.16 is a lot different, and I'd like to know what I should change
or add, because I know 1.16's performance isn't that good
Really?
Never had a problem with it
I'll be getting about 30-50 players, you think I'm probably good to just do what I usually do for lag?
I have a powerful computer, that's not an issue
then you can hold even 100 or more
TELL ME ABOUT IT
Yes it is fixed..
I think raiders where a much bigger problem than villagers.
Guys are any of you interested in working on a minecraft (Server) project? This is a really well done project, I have no problems economically but I would prefer to have a hand. I explain better in private.
Is it possible to make an NPC shoot an arrow (with the bow animation)
@tacit trellis Yes
How can I do it?
why would it be dangerousS?
well the dangerous way is just blindly doing it and not caring what happens after that ๐
Anyone know a good plugin for handling redstone on 1.16? Pandawire isn't updated
I mean like, to help with redstone lag
I think if you just use the eigencraft redstone algorithm you should be pretty fine...
Oh woops... might be
But it is paper, not spigot
Did you test Pandawire?
Not updated
ok but did you test it? If it only uses api functionality it has a good chance of just working in 1.16
I did
You mean the package or the website?
but sometimes it does and sometimes it doesnt
the website
im getting a DNS error half of times
Im not. Also no idea what you want there. Digging for ancient artifacts?
is there some guide for writing plugins in kotlin with examples?
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
@grim halo you can still upload plugins there
thanks
Hi everyone! I am fairly new to the minecraft server stuff but i feel i have a decent idea of how it all works. I setup a bungeecord server and the only 3 servers that i want linked up are the lobby, the parkour and the survival. I have got the lobby server setup and it is set as the fallback server, but when i start any of the other servers, for example, parkour, even when bungeecord=true in the spigot file and all of the other settings are setup correctly, the 'serverconnector' that i see in the console, only connects the lobby server and not the parkour server. Is there some other setting i need to set?
are the ports correct?
yeah
okay
Hey could someone help me with PlayerDeathListener. Its not getting imported
are those servers running
yea
Hey could someone help me with PlayerDeathListener. Its not getting imported
@shut copper whats wrong
@sick mica do you mean that u are not able to connect to the server?
other servers
yeah
whats the message u get
when i do ./server, it only shows lobby
that means, you havent added servers to the list in the config.yml
of bungee cord
1 sec lemme get a screenshot
okay
can i dm the screenshot because i cant upload it here?
oh do i need to verify
please verify
you do not have correct indentation
can you send the contents of the file, ill correct it for you
lol
lol
server_connect_timeout: 5000
remote_ping_cache: -1
forge_support: false
player_limit: -1
permissions:
default:
- bungeecord.command.server
- bungeecord.command.list
admin:
- bungeecord.command.alert
- bungeecord.command.end
- bungeecord.command.ip
- bungeecord.command.reload
timeout: 30000
log_commands: false
network_compression_threshold: 256
online_mode: false
servers:
lobby:
motd: '&1Just another BungeeCord - Forced Host'
address: localhost:25566
restricted: false
survival:
motd: '&1Just another BungeeCord - Forced Host'
address: 0.0.0.0:25568
restricted: false
parkour:
motd: '&1Just another BungeeCord - Forced Host'
address: 0.0.0.0:25567
restricted: false
listeners:
- query_port: 25577
motd: '&1The REEL Network'
tab_list: GLOBAL_PING
query_enabled: false
proxy_protocol: false
forced_hosts:
pvp.md-5.net: pvp
ping_passthrough: false
priorities:
- lobby
bind_local_address: true
host: 0.0.0.0:25565
max_players: 1
tab_size: 60
force_default_server: false
ip_forward: true
remote_ping_timeout: 5000
prevent_proxy_connections: false
disabled_commands:
- disabledcommandhere
connection_throttle: 4000
stats: dd64b270-1b2f-42af-8c79-065cdb1b0bb9
connection_throttle_limit: 3
groups:
md_5:
- admin
log_pings: true
copy paste that.
you need to have all servers under the servers: section
@sick mica
i thought that all servers but the one you initially connect to should be offline mode
all other sub servers need to be in offline mode for sure, but if you want it to be online more, enable the online-mode in the bunge cofig
no, not the main bungee
xD
ok lemme paste 1 sec
also, make sure to turn connection-throttle to -1 in each of server's bukkit.yml
ok
yeah i did that
good
dont know what it does but my friend told me to lol
i will have a look
ok
they take quite a bit to load because of all of the multiverse worlds
yes
it works
tysm your a lifesaver
now to import all of the worlds from the non-bungee server
lol
they take quite a bit to load because of all of the multiverse worlds
@sick mica is it a bedwars/minigame server?
which has multiple worlds?
it is primarilly based on parkour
ah ok
thanks again for the help ๐
no problem <3
anyone know how to make the shootfireball skill in mythicmobs not damage the environment ?
Its better to ask in the proper server
yeah, i did, just decided to pose the question here too
uh, how to run code like 10ms later?
10ms?