#help-archived

1 messages · Page 186 of 1

pastel nacelle
#

if you need this level of spoonfeeding to run a server you shouldn't run a server

hallow surge
#

he's right ya know

#

everybody thinks they are just qualified enough to run a server

cursive umbra
#

@hallow surge @pastel nacelle i just want fun with my friends like chill

#

if i delete world with all perms i set up go away

hallow surge
#

yes permanently

craggy jolt
#

if you just want to chill with friends why go through the trouble to set up permissions?

hallow surge
#

idk why you would need plugins

#

at all

craggy jolt
#

probably to just make their life easier

quick arch
#

a Permission plugin is understandable if they want something like GriefPrevention but other than that, there's really no use for it for a server with friends

sage summit
#

Im trying to find a plugin that lets you have multiple prefixes instead of just one but I cant find one that does it

pastel nacelle
#

tell me if you find one

sage summit
#

k

quartz sandal
#

Hello. Does anyone know how to use permissions.yml?

I just got into a huge argument with the devs at Luck Perms because all I want to do is disable three commands on a certain plugin, not learn and maintain a huge, complex plugin just to do the same thing.

pastel nacelle
#

using a permissions plugin is the usual and the recommended way of doing it

lone fog
#

permissions.yml is more for grouping permissions together

quartz sandal
#

But I learned that apparently md_5 doesn't even suggest permissions.yml

lone fog
#

Just use luckperms, it's not that hard

quartz sandal
#

But it is that hard

pastel nacelle
#

certainly not

lone fog
#

lp group groupname permission set permnode false

pastel nacelle
#

depending on how the commands of this "certain plugin" are registered

#

it will be 1-3 commands

#

in total, to do what you want

quartz sandal
#

In order for me to explain why it is hard, I'd have to make a huge list and explain my experience in IT and software engineering

lone fog
#

...

pastel nacelle
#

oh well

#

i guess you just need to remove the whole plugin then

quartz sandal
#

My point is that luck perms, like all these other plugins, have extra commands that I don't want to use and I don't want anyone on my server besides those who have access to the VPS to manage the configs

pastel nacelle
#

uh, why?

quartz sandal
#

Because that's how this server will work

pastel nacelle
#

uh huh

quartz sandal
#

I guess I should sleep on it

lone fog
#

Then don't use the commands

quartz sandal
#

I just started at "I want to disable x commands", but now I have to learn a whole new plugin's specific syntax and usage just to do that

#

Lol

lone fog
#

You need to learn one syntax

pastel nacelle
#

or... ask someone how 2 disable them, get the 1-3 commands required to do so, execute them, and forget about it

quartz sandal
#

Except my concern is Other OP's accidentally tabbing and hitting enter, fucking up configs

pastel nacelle
#

don't have incompetent operators

quartz sandal
#

Configs shouldn't be editable from the console

lone fog
#

it's pretty hard to tab 5 arugments

pastel nacelle
#

besides...

#

with luckperms

#

you can forbid operators from having permissions to use luckperms

lone fog
#

Which you should

quartz sandal
#

Is everyone in the minecraft community just so fucking incompetent that they don't understand that humans make mistakes?

lone fog
#

Because /op is dangerous

quartz sandal
#

Alright

pastel nacelle
#

didn't i just tell you that you can do what you want

quartz sandal
#

Yes

pastel nacelle
#

good

lone fog
#

I'm sure they do, but doing /lp group default permission set bukkit.command.op true is not an easy mistake to make

quartz sandal
#

I'm just fucking tired and exhausted because I am sitting here sitting through piles of websites and documents and now have to learn how LP works

lone fog
#

or... ask someone how 2 disable them, get the 1-3 commands required to do so, execute them, and forget about it

quartz sandal
#

And yeah, I get that's I can just install it, run a few commands, and then turn it off

#

My issue is beyond that

lone fog
#

You can't turn it off

quartz sandal
#

Sorry "leave it and forget it"

uneven sandal
#

Step 1. In your server console do: lp group default permission set <permission> false
Step 2. Check the yaml file for how it formats it
Step 3. Copy the format for all the permissions you want to add.

& Set commands-allow-op: false - this will stop ALL players including those with op using any luckperms command without the permissions to use the command. Inc

Done.

quartz sandal
#

Hold on. I'll be at my PC in a sec. I'll explain my grievances.

lone fog
#

I mean not to be rude, but if a permission plugin is that much of an issue maybe hosting a server isn't for you

pastel nacelle
#

myeah, knowing how to manage permissions is kind of a cornerstone of running a minecraft server

#

the luckperms syntax especially boils down to adding and removing permission nodes from either groups or specific players

#

if you can't handle that you probably can't handle commands.yml either

sage summit
#

Im trying to find a plugin that lets you have multiple prefixes instead of just one but I cant find one that does it

fervent vale
#

LP does that.

uneven sandal
#

@pastel nacelle They want to use the permissions.yml since LP is apparently so complex and complicated but according to them it is broken and has 0 documentation. (Just spent 2 hours with them in LP discord.)

pastel nacelle
#

maybe they should read between the lines then

lone fog
#

I mean it does have documentation

#

First bit I found was Warning: Permissions.yml is NOT a replacement Permission awarding/checking system and any permissions should continue to be handled by a plugin.

uneven sandal
sage summit
#

thanks

#

guess i should stop using permissions ex lol

uneven sandal
#

Yep haha

sage summit
#

thanks

pastel nacelle
#

does this let players change their prefixes based on preference?

uneven sandal
#

Nope. You'd need another plugin to handle letting them. Otherwise you'd need to give them permissions to change only their own prefix

pastel nacelle
#

mm, i c

uneven sandal
#

Which is possible with LP 😛

pastel nacelle
#

i ask because i recently wrote a papi/perm node based title plugin that lets people stack change and select titles based on preference

#

was worried that i had done pointless work

uneven sandal
#

Argument Based Permissions will let you say that the player will only be able to change their own prefix, an not the prefix of another group or player

fathom coral
#

Is there a plugin that replaces trees like in hypixel skyblock?

opal adder
#

I'm making my own custom items on my server, and I'm trying to figure out how to make them look different via a custom texture pack. I've figured out how to do this with json 3D models, however I don't really want to use json 3D models and would rather do simple textures like png files. Is this even possible? I can't find anything online that shows this.

opal adder
#

Thanks man!

#

@lone fog I'm confused though, that link actually doesn't explain how to add a 2D texture with my own custom items, it only shows how to do it with 3D which is something I don't want to do.

#

Unless I'm missing something

lone fog
#

There probably like 500 other tutorials

#

It's not really something spigot related though, The minecraft commands discord may be more relevant

opal adder
#

I've looked everywhere, they all only explain it in 3D. I know how to do basic texture packs with png files, but not adding it to my own custom items.

pastel nacelle
#

they use the same mechanism

opal adder
#

Could you maybe give an example? I only need to figure this out once and then I'm golden

pastel nacelle
#

i don't really know how to do it myself

#

i've delegated it to someone else on my server

#

never bothered to figure out that mess

opal adder
#

Do you maybe have a pack example I could see by any chance? Or could even direct me to that person who does it for you?

pastel nacelle
#

for an example pack you can probably search for "slimefun resourcepack"

opal adder
#

That pack is too large to really get anything out of it, I don't know enough about this to search through that successfully. Could you maybe direct me to that person that is doing it for you?

pastel nacelle
#

he is kind of dead for finals or something for the time being

#

i doubt he would appreciate random pings from a random guy

frigid ember
#

so i have this

if(state instanceof Container){
                Bukkit.broadcastMessage("C: " + state.getBlock().getType());
                Container ih = (Container) state;
                Inventory i = ih.getInventory();
                if(i.getContents().length > 0) {
                    for(ItemStack is : i.getContents()) {
                        if(is == null)
                            continue;
                        Bukkit.broadcastMessage(is.getType().toString());
                    }
                }
                i.clear();
                ih.update(true, false);
            }```
but the inventory is not clearing (i'm on 1.15)
opal adder
#

I really just need 1 thing answered, like if he's really good at it, it would take him a minute to help me. I understand what you're saying, but I can't find anything anywhere that is explaining this properly.

#

You could just loop through the contents in the menu like you're doing and check to see if the item is not null, and then set that item to air

frigid ember
#

yeah i figured that could be a way to do it just weird that the clear don't work

opal adder
#

clear could just be clearing a hash map or something and not actually the contents. I don't actually know what the API is doing there, but sometimes with spigotAPI .clear() doesn't do what you want it to do

fleet crane
#

remove the .update or use getSnapshotInventory

#

getInventory isnt part of the snapshot

quartz sandal
#

Lol, sorry if I seem retarded to you guys or something.

This is my first minecraft server so I'm new to it, but it seems crazy that instead of being able to use a built in file, I have to learn a plugin.

My grievance isn't with LP being easy. It's easy to understand how to setup commands.

My grievance is two fold:

  • It's stupid that the creator of spigot has a permissions.yml, but doesn't recommend anyone use it and the wiki article for it is small and doesn't explain well

  • Sure, LP is easy to use, but if I'm installing a plugin, I want to know the full extent of what it does,l and how it works.

My point is that it is ridiculous that I, personally to fit my own requirements, need to learn a whole complex plugin just to disable a few commands from anther plugin.

opal adder
#

Then don't make a server? I mean if you're new to servers, it's a lot of work, maybe pay someone? xD

#

md_5 the legend, it's real. I thought you were a myth, only there to solve my problems when I google spigot coding help

quartz sandal
#

And I get it: You all say "just do x", but you're coming from the perspective of experience. I'm a noob to this coming from the software engineering/it side of things.

pastel nacelle
#

luckperms is simply a proxy to managing permissions, you would go through the same grievances when using permissions.yml

#

i fear the problem here is that you are struggling with the permission node system and how that works

#

which is not luckperms' fault

#

it is a built in feature and a system used all across the bukkit ecosystem

quartz sandal
#

I have no problem understanding plugin.command or plugin.command.child

My problem is that there's a standard for how permissions work, but there's no defacto, simple way to just change commands in a single file without a plugin (which is what permissions.yml) alluded to

pastel nacelle
#

changing commands is done in commands.yml

#

permissions are handled in permissions.yml

quartz sandal
#

sorry: disabling commands

pastel nacelle
#

there is no such thing

#

you would have to use a plugin to unregister it from the command map of the server

#

the best you can do is forbid your users from using it

#

which is done with permissions

ancient tide
#

is spigot supposed to reset the end?

opal adder
#

I mean you could make a plugin that does this? I have that in my essentialpatches plugin which is on spigot right now, super easy to use

ancient tide
#

because it seems like when i installed spigot my end just reset

lone fog
#

Spigot moves the nether and end folders

quartz sandal
#

I just don't know what to say

lone fog
#

But should handle vanilla ones automatically on the most recent version

mint sky
#

@quartz sandal you do not need to learn a permissions plugin solely for that purpose. A permissions plugin is absolutely essential to any server and must be comprehensively set up. It's not optional, because if you don't do it you're in for a whoooole lot of pain. This isn't just a thing that some people do if they want a complex powerful system to set permissions up, it's something everyone does. While LP is complex and powerful, it really doesn't have to be, and deciding to learn the basics of it will be the most useful thing you do.
The permissions.yml is barebones and that's why plugins were created to grant more control. While you may believe that it's ridiculous, it's truly something that every single server must do in order to have control. 99% of your other grievances are solvable using LP very simply and easily, but you refuse to read people telling you how to do it because you're frustrated. If you ignore this message too, fine, but I'm telling you this in the hopes that you understand how vital a permissions plugin is and that yes, unlike most other optional plugins that expand functionality on a server, you do pretty much need to learn a perms plugin and use it

lone fog
#

Think it was bugged in early 1.16 versions

pastel nacelle
#

permissions.yml is the minimum viable implementation of a permissions management system

#

which is why nobody uses it

quartz sandal
#

You're right that I'm frustrated

pastel nacelle
#

it is simply there so that the server doesn't blow up all by itself

ancient tide
#

where does it move it to

opal adder
#

I mean if all you're wanting to do is block commands, you could just have a config list of commands, and then use the precommandprocessevent to cancel if it equals that? Or if you don't know how to make a plugin, find one that does that, or you negate the permissions. Which is honestly probably what most people do.

pastel nacelle
#

that is besides the point codepunisher

opal adder
#

Maybe I'm confused by what he wants then

pastel nacelle
#

we all are

lone fog
#

Also you should unregister them rather than use the event for performance

mint sky
#

he wants permissions.yml to be better

pastel nacelle
#

this discussion does not operate by common sense

quartz sandal
#

I was under the impression of "set permissions in yml" and that's it. But then I learn I need to learn LP in order to just prevent users from using certain commands. It's frustrating after reading tons of docs.

For example, I would love the logging of CoreProtect, but I don't want the rollback commands to be ever used.

mint sky
#

bad news; it isnt

lone fog
#

Then block them with LuckPerms

pastel nacelle
#

well, yeah, uh

lone fog
#

Or just don’t use them

pastel nacelle
#

if you want permissions.yml to be better

#

pr's welcome

mint sky
#

@quartz sandal that's fine, just don't give anyone permission to use the rollback command. Again this is something you must use a perms plugin for

lone fog
#

And tell other ops not to use them

pastel nacelle
#

but, until then, use one of the powerful tools provided to you

quartz sandal
#

And yeah, I can block them with LP, but I'm not just gonna install a plugin without learning as much as I can about it first

opal adder
#

There are many ways to deny a user from typing a command. The most common way is via a permission plugin to negate that permission. I would just not use the permissions.yml file because it is not near the power of luckperms, you can't even compare it

uneven sandal
#

For example, I would love the logging of CoreProtect, but I don't want the rollback commands to be ever used.
@quartz sandal

Then simply don't give anyone permission to use the commands.

ancient tide
#

where does it move the end file to

pastel nacelle
#

world_the_end

quartz sandal
#

You guys aren't understanding me

sage summit
#

just switched from pex to luck perms and its so much better lol

opal adder
#

Permissions = allow players to type commands or not

quartz sandal
#

I said rhis:

And yeah, I can block them with LP, but I'm not just gonna install a plugin without learning as much as I can about it first

pastel nacelle
#

you saying you don't want to learn a permissions manager is akin to you saying you don't want to learn to use the terminal but also insisting on using a raspberry pi

ancient tide
#

alright i think i figured out why the end got reset

quartz sandal
#

I'm just frustrated because I now have to spend time learning LP. I am not just going to install something to a public server without understanding mostly how it works

keen compass
#

permission plugins are equivalent to needing moderation bots or scripts. They are a must have and unfortunately both share the common that there isn't an exact standard in how to implement either of those things 😛

quartz sandal
#

I never said I don't want to learn

ancient tide
#

i cant even find the end file

quartz sandal
#

I'm just frustrated

mint sky
#

@quartz sandal the folks in LP are desperately trying to help you learn about LP but your frustrations with something out of their control are not helping anyone to help you. There are tons of docs for LP as well, and the support people of LP do help if you ask nicely, so it's not like you're SOL

pastel nacelle
#

we can see that

grim bramble
#

You looked trough the CoreProtect source code too?

keen compass
#

what is standardized is how permissions work though

quartz sandal
#

Shhhhh

keen compass
#

so regardless which plugin you look at t he format for the permissions is the same

pastel nacelle
#

would you be angry if the desktop computer you bought can't be used properly because it didn't come with a monitor?

opal adder
#

If you're going to learn a permissions plugin, learn LuckPerms. You could be frustrated by it all you want, but that isn't going to help you figure it out. It's a lot to learn, but I'm sure you can figure it out!

quartz sandal
#

At the core:

  • I understand what's normal
  • I WILL learn LP
  • I understand permissions.yml is garbage.
  • I am not going to install a plugin unless I know the ins and outs of it

As I said, I'll sleep on it. That's all. Simple as that.

keen compass
#

at the core of any permissions plugin the concept is the same. To handle giving players and/or groups permissions to use or restrict things.

#

if you want something more easier and simple you could use GroupManager lol

#

although many here will say don't use it though 😉

quartz sandal
#

You guys are just regurgitating the same garbage and not listening to what I'm saying.

opal adder
#

Well DarkSword, usually I install a plugin on my local server, and then figure it out that way, much easier to learn it if I can play with it

ancient tide
#

what file is the world_the_end in

lone fog
#

Seems like a lot of effort to learn every plugin in so much detail

opal adder
#

Woh woh woh

keen compass
#

most of what is confusing about LP isn't the permissions

lone fog
#

But hey I guess it’s up to you

keen compass
#

but rather the commands to use in game

#

and some other nifty features

lone fog
#

world_the_end is in your server root folder

quartz sandal
#

Well DarkSword, usually I install a plugin on my local server, and then figure it out that way, much easier to learn it if I can play with it

That's what I do too.

I'm just saying: It's frustrating having the impression that it's as simple as permissions.yml, but in reality it's a plugin.

grim bramble
#

On a totally sidenote: We have been discussing this since 2.75 hours. You could've read trough atleast half of the LP wiki in this time

pastel nacelle
#

to be fair

quartz sandal
#

I know

#

I'm tired

pastel nacelle
#

that assumption was silly

quartz sandal
#

I'm frustrated

lone fog
#

Permissions.yml is only meant for bundling permissions as far as I know

quartz sandal
#

I get how this works now

#

Just stop talking about it everyone

lone fog
#

I didn’t know it could actually assign them to players

ancient tide
#

its like not there

uneven sandal
#

@quartz sandal

Look, all plugins require some level of learning or configuring for them to work the way that you're wanting them to. If you are simply wanting to not allow people to use some commands. Then I have provided you with a simple 3 step guide on how to achieve this.

I understand that you're simply just wanting to use the permissions.yml that spigot provides. But the reason that it does not work is because when you install a permissions plugin like Luckperms. That plugin takes control of handling all the permissions the server uses because that's just how minecraft servers are run.

Yes, luckperms does have a level of complexity to it, but that is because Luckperms is built for small servers with a couple people to large multi server networks with thousands of players. You simply can just ignore 90% of the features if you're not wanting to use them and it will not impact your server in any way.

The permissions.yml was created a long time ago before permission plugins became a big thing. Now the developers of Spigot don't care to much about the file as a very small scale of people use it, whereas the magiority of people who use Spigot use a permissions plugin because it allows them to have total control over the permissions on their server and it allows for them to take maximum advantage of plugin permission system.

ancient tide
#

i found it

quartz sandal
#

Okay cool. Got that

uneven sandal
#

Plugins are not designed with the permissions.yml in mind. They are designed with permission plugins in mind as that is what 99% of the Minecraft Server Community use.

quartz sandal
#

Ok

#

I'll learn it tomorrow when my brain isn't melted

mint sky
#

👍

quartz sandal
#

Like I'm fine with LP and I'll use it. I'm sorry if I wasn't being clear earlier and I'm sorry for being rude.

It's just frustrating that I spent hours trying to get permissions.yml to work with the very small documentation it has, only to know it's handled by plugins.

And it's not that it is a plugin that's the issue, it's just that, coming from software engineering and IT, I want to understand the entirety or the majority of the plugin before I implement into my public server.

So it's not LP, it's the hours that I added to my schedule to analyze and document how LP will play a role in my server with the other operators.

I hope that makes sense.

#

Just frustrating is all, but I guess what IT job isn't.

keen compass
#

permissions.yml is pretty outdated. It served a purpose long time ago, but it was limited in what it provided even for permissions lol, however what was added instead was an API to hook into permissions for plugins since many people wanted to extend that functionality in their own way

uneven sandal
#

@quartz sandal From one IT person to another. If it's simple and easy from the get go. You've done it wrong

keen compass
#

I would say of the plugins that have existed for permissions, various permission plugin authors can do better then what the server could ever provide

quartz sandal
#

Thanks for the help everyone. And sorry Omega for stirring up a ruckus in your server.

opal adder
#

Seriously though, is there anyone that knows how to make a custom item have a 2D texture on it? I already have the custom item made, I just need the 2D texture on it, not 3D.

keen compass
#

would need to have something that specifies to replace its texture

#

need to follow the texture format that the server uses, which is a png file that has certain areas marked for the different sides of an object

sage summit
#

Using luck perms
How do i make it so it displays a players game rank then mod/owner if they are a mod/owner
Example
[A] Owner JustDoom: message
Or
[B] JustDoom: message
I just cant figure it out
and then how would i change only one of the ranks
Example [A] to [B] without changing the owner/mod?

lapis saffron
#

That what you're looking for?

opal adder
#

Is there any kind of example for it Frostalf?

digital badge
#

Anyone know if there's an event to check if a door pops off because the block below it is no longer there? Specifically if the block below is pushed by a piston, since that's not an instance of the BlockBreakEvent

lone fog
#

There are piston events

digital badge
#

That's not what I'm asking though

lone fog
#

I’m not sure there is an event for that

digital badge
#

Rip

opal adder
#

You'd have to use that though, and then use BlockFace.UP to check if there's a door there, I'd assume

digital badge
#

yeah I suppose that might work. I might as well at least try it

lone fog
#

Block drop items event might work

opal adder
#

There's not an event for that specifically, but there's usually always a way to do what you want

lone fog
#

And block physics event is probably triggered by that’s probably not a good idea

digital badge
#

I believe the drop item event is only triggered if it was from a block break event which is only triggered if a player breaks the block

opal adder
#

Anyone of you know how to get the title of an Inventory on 1.16? It's different than 1.8, which is what I was working on previously. I can't do event.getView() because I'm not using click event method, I'm only have the inventory object

digital badge
#

ooh yeah gimme a sec I had to make that change too

sage summit
digital badge
#

scratch that the only instances I used it in was in click events, sorry 😦

opal adder
#

Dangit

#

is it even possible?

tough cedar
#

Can anyone assist / run me through?

opal adder
#

I made this check completely based around that being possible, if I can't get the name of an inventory from the object of it, I'm gonna cry

digital badge
#

I looked quickly but couldn't find anything

lone fog
#

Doesn’t look like you can

#

Used to be a deprecated method though

opal adder
#

So I really can't?

opal adder
#

Life saver! Though, not sure why that was removed, that only made my life harder xD

tough cedar
lone fog
#

Is buildtools in the same folder

tough cedar
#

So i gotta navigate to the file git hash is installed and put buildtools there?
Sorry im stupid

lone fog
#

Just open the command prompt from the folder buildtools is in

opal adder
#

Wait TileEntityChest isn't a thing anymore on 1.16?

lone fog
#

I can’t imagine it would be removed?

opal adder
#

It was

lone fog
#

I doubt it

#

Maybe renamed, NMS tends to do that a lot :p

opal adder
#

Oh I'm big dumb

#

I just needed to cast it to chest, which is all I'm doing, and there's LITERALLY a chest.getCustomName and chest.setCustomName. Ugh, that's so annoying, I can't believe I didn't know that

tough cedar
#

I"m big dumb, I don't know how to do this.

#

Smart: 100%
Look up a tutorial on yt

digital badge
#

@opal adder Your idea to use the piston events and check doors above worked. Thanks man.

opal adder
#

Awesome!

#

Anyone know why org.apache.commons.codec.binary.Hex doesn't seem to work on my 1.16 plugin? I have no idea why that would matter, but for some reason it does, this is really weird.

quartz trench
#

What are you trying to do with it and what's not working

#

@opal adder

opal adder
#

Well, I'm using it for my privated chest system, so rather than storing player data, I found that I can just put the players name as the chest's custom name, and to the right of this, I put the players UUID, but I hide it using the hex thing. Now this works fantastic on 1.8, but for some reason on 1.16 it doesn't work anymore, I'm not sure why. That import isn't a thing, it's like attached to bukkit now, and when I use the new import, the method I'm using doesn't work anymore. There's no red or anything, it just isn't working. I'm not sure what changed tbh.

quartz trench
#

what do you mean hide it with the hex thing? why not store the player uuid who owns the chest in it's persistent data container instead

opal adder
#

Well because of reboots, I did this as an easier route to avoid storing data in a file. I can show you the methods if you want

#

If you want me to PM them to you I can, they're kind of large to put in discord

#

well in a public chat

lone fog
#

Use persistent data

#

Works on tile entities too

quartz trench
static yacht
#

Ahh how do i re-verify my name on here

quartz trench
#

I wish I knew lol

zenith palm
tough cedar
#

I got it sorted =)

zenith palm
#

Ahh how do i re-verify my name on here
@static yacht Manually, done for you now 😉

tough cedar
#

I skipped the step to move it to its own folder 🤦

zenith palm
#

oh well it will work anyway

#

just will make lots of other folders haha

static yacht
#

@static yacht Manually, done for you now 😉
@zenith palm Much Appreciated!

raw light
static yacht
#

im guessing something to do with chat?

tough cedar
#

Is anyone here experiencing issues with nether portals not generating/teleporting you to where the portal is?
Coming from Nether -> Overworld

Version: git-Spigot-0509002-6b95d59 (MC: 1.16.1) (Implementing API Version 1.16.1-R0.1-SNAPSHOT)

grim halo
#

@tough cedar Do you have plugins that manage teleports or worlds? Did you port your world from an older version?

tough cedar
#

Turns out, WorldEdit messes with it.
Ghost Portal was created 24 blocks from the Spawn Portal.

grim halo
#

You are trying to load forge mods from the plugin folder.

#

Spigot doesnt support mods.

#

only plugins

mellow elm
#

so, is there any alternative hosts i can use for using mods and plugins?

grim halo
#

No idea whats up to date in the area but you can try spongeforge

mellow elm
#

ill check it, thanks

keen compass
#

forge mods generally require a lot more resources to use

#

mainly due to how they are loaded in vs how plugins are loaded

grim halo
#

Also ther is the hussle of distributing the same version of every mod to anybody who wants to play.

keen compass
#

forge mods replace class files at runtime where as plugins don't, they override typically which isn't the same thing lol.

#

and yeah, client typically needs to have the same mods as the server does

#

plugins don't require the client to have anything

#

however since forge mods work in this way, they tend to introduce a lot of memory leaks

marsh hawk
#

I know i can have different item textures based on the amount of nbt tags my item has but is it possible to have it based on whether is has a specific nbt tag?

grim halo
#

There is on nbt tag that is exclusively used for textures.

mellow elm
#

i did lookup spongeforge but they say it can only run mods and not plugins

#

does anyone know any hosts that allows to run mods and plugins?

vernal spruce
#

Most likely no

grim halo
#

if you want 1.7.10 you can use cauldron. But Sponge should run mods and plugins

vernal spruce
#

Still why would you even want that

#

There is literally a mod for anything you could want

mellow elm
#

it might be a problem

#

it does allow plugins but it dosent allow bukkit plugins

vernal spruce
#

Theyr the same..

grim halo
#

@marsh hawk Btw the nbt tag is custom model data

#

Isnt the Sponge api different from spigots?

vernal spruce
#

Sadly that feature is locked to 1.14?

#

Doesnt matter mods should not be together with plugins

#

There is a mod for anything a plugin gives

grim halo
#

Im not too sure about that...

vernal spruce
#

Its that point in time where the list is huge

marsh hawk
#

yeah reading up on it rn, thanks @grim halo

torn pilot
grim halo
#

Yes thats a common 1.16 bug. But i think it was fixed. Try updating

torn pilot
#

Updating toooo?

#

I'm on the latest version of Spigot

#

I tried the --forceupdate thing but uh

#

forceupgrade is not a recognixed option

grim halo
#

When did you build the jar?

torn pilot
#

Today

#

Like

#

10 mins ago

grim halo
#

Also i think forceUpgrade is case sensitive. Try it this way.

torn pilot
#

Ah that has worked. Will just have to see if it fixed MapLike..

#

Nope

grim halo
#

Do you need your current nether?

torn pilot
#

I just deleted all 3 worlds

#

And still getting the error

grim halo
#

What is this? Do you have the latest dev build of ProtocolLib?

#

The default isnt 1.16 ready yet

torn pilot
#

Huh?

#

I have ProtocolLib 4.6.0 for 1.16

grim halo
#

Whats your Item2Chat version?

torn pilot
#

4.4.5

sage summit
grim halo
#

No idea. It looks like a problem with either protocollib or Item2chat. I supect its latter.

#

If you really made sure to update both to the lates version.

torn pilot
#

I've updated both

#

more concerned about the thing with the thing MapLike but guess I'll wait for updates

sage summit
#

i asked but they said check the wiki page(i have) and i dont know which one does what i need and said what do you mean

grim halo
#

Nope.

vernal spruce
#

@grim halo also there is 1 specific annotation there

#

Wich is missing

#

There ia no call to @EventHandler anywhere

grim halo
#

True.

bronze acorn
#

o.o

#

been wondering this for a few days, would anyone know the best way of storing friend requests? currently i'm using redis but i'm pretty sure it isn't going to be good enough. this is my current way of storing friend requests https://hastebin.com/gibuhetasi.js and i believe adding onto a list makes that array stay even longer. i don't know how i would store these requests. should i store in mongo (im using this over sql) an array and just remove the player uuid after x amount of seconds?

silver girder
#

So, I got a question, I have added the permissions nodes for me and the admins to use the Bungeecord Command /send

So, when typing the /send I get a message saying "You do not have the permission to execute this command" yet, my name is in the admin group in the bungeecord config.

undone narwhal
#

I would use Mongo to save this request, if you have a per player document, just add a list with all the pending requests

#

Then you can easily manage it

#

And also save the sent friend requests then the player can cancel it etc

#

DeadIntermediate do you use another perms plugin? Did you restart your proxy?

bronze acorn
#

thank you rolyn

oblique hornet
#

how to fix

internal exeption: io.netty.handler.condex.decoderexeption: java.until.zip.dataformatexception: incorrect hader check

internal exception: io.netty.handler.condec.decoderexeption: badly compressed packet - size of 115 us below server threshold of 256

kicks me every 1 sec to 10mins

frigid ember
#

what's a good mysql-based economy plugin?

bronze acorn
void jackal
#

Anyone have any ideas on how to reduce lag on my server I'm running 1.16.1 spigot, i5 4440 24gb ram with mineos I've also got fiber internet, but players still experience lag, before I used an i5 2400 with minimal lag, any ideas?

undone narwhal
#

@oblique hornet In server properties, what is the packet compression ?

oblique hornet
#

network-compression-threshold=256

undone narwhal
#

Logichack,

  1. How many players?
  2. Startup options?
  3. Gamemode?
#

Austeja, any plugins ? Version?

frigid ember
#

@bronze acorn well first i need an economy system

oblique hornet
#
  1. only me
  2. java -Xmx5G -Xms4G -server -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+UseLargePagesInMetaspace -jar spigot-1.16.1.jar nogui
  3. survival
#

Austeja, any plugins ? Version?
@undone narwhal authme, chatco, customhelp message, infobook, join message, kiss-tpa, luckperms-bukkit, nocheatplus, oldschoolkill, protocollib, randomspawn, realping, rules, serverlistplus, skinsrestorer

#

version 1.16.1

frigid ember
#

Anyone know what does event.wait(long timeout)

undone narwhal
#

That pauses the event thread

sturdy oar
#

Isn't that object#wait

undone narwhal
#

So the main thread of the server

#

@oblique hornet if you have the latest spigot, it's then due to one of your plugins

frigid ember
#

So when I type event.wait(60) it pauses for 3 seconds?

sturdy oar
#

No

oblique hornet
#

ok i will check

sturdy oar
#

I'm pretty sure those are 60 ms

#

Let me check

#

Yeah

undone narwhal
#

It pauses the thread for 0.06 seconds

#

All the server

sturdy oar
#

The wait method is from Object

undone narwhal
#

This isbreally bad

#

If you don't know what it does ^^

sturdy oar
#

It's kinda similar to Thread.sleep

#

although there was a difference

silver girder
#

I use luckperms.

#

It's on the proxy and servers.

frigid ember
#

Hello i'm looking for a health bar plugin to display the players health above their head. I have tried many but none work. The plugin version has to be 1.8.8. thanks

sturdy oar
bronze acorn
#

@frigid ember vault + essentials

frigid ember
#

No it doesn't work

bronze acorn
#

any errors?

sturdy oar
#

Very weird... it always worked for my server and so many people use it

#

I actually have my own, but that was decent

void jackal
#

Logichack,

  1. How many players? Lags are seen at 3 players
  2. Startup options? All I've ever done was xmx24gb since mineos doesn't really support other options
  3. Gamemode? Swaps per world from survival to adventure
#

@undone narwhal

bronze acorn
#

monitor your tps usage

#

not usage

#

but monitor it

sturdy oar
#

are you using Multiverse?

bronze acorn
#

on a server i worked on before, we had good tps but the server would crash at a certain amount of players due to an old cpu

#

i believe it was an old cpu?

sturdy oar
#

to me, it just seems like an hardware issue tbh

bronze acorn
#

it was something with old hardware

#

soyoustart does that

#

smh

sturdy oar
#

like if your server lags at 3 players either you have a plugin made by a braindead developer, or your hardware is straight out from the trash bin

bronze acorn
#

dev prolly put a for loop that never ends 😂

void jackal
#

I have quite a few plugins but the server was on an old i5 2400 now it's an i5 4440

sturdy oar
#

I don't think the i5 4440 is that bad if you have it dedicated

#

like i was hosting a server from my cellphone and played with 5 people without lag

void jackal
#

That's what I thought

#

The old CPU ran just fine too

sturdy oar
#

try and make a timings

void jackal
#

The lags seem to happen when the log posts "server can't keep up" from what I've found that's related to CPU usage

sturdy oar
#

try and make a timings
@sturdy oar ^^^

#

timings show which process is lagging the server

void jackal
#

Is there somewhere I can figure out how to set one up

sturdy oar
#

many recommend the 'Spark' plugin

void jackal
#

Ah ok I'll check it out thx

sturdy oar
#

it should technically work for 1.16 not sure tho

void jackal
#

Other than that does spigot use multiple cores well? I've found conflicting info about it

sturdy oar
#

pretty much not tbh

void jackal
#

Lol well guess I've gotta get a xeon

#

No way to force it to? Through startups?

sturdy oar
#

i mean you can use Aikar flags

#
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -jar spigot.jar nogui```
void jackal
#

I don't even know what I'm even looking at tbh

#

Some I know

#

I'll try it out if I can figure out where it all goes in mine os

sturdy oar
#

what's MineOS

rose crystal
#

whats the best method to pregenerate chunks on 1.16?

#

worldborder?

craggy lynx
#

How can i send a message to all players off a specific world

sturdy oar
#

filter the stream

#
Bukkit.getOnlinePlayers().stream().filter(p -> p.getWorld().equals(...)).forEach(p -> p.sendMessage());
craggy lynx
#

Thanks

ocean prism
#

Hello ! I would like to know how it would be possible for me to get the drops from a wheat style plantation etc, since yesterday I'm on it 🙁

frigid ember
sturdy oar
#

I'm not entirely sure if you can do that

#

without plugins as least

frigid ember
#

Maybe not, but if it is possible it would be better than using a plugin considering I'm modifying BungeeCord to suit my network needs anyway

craggy lynx
#

How can i prevent player from breaking blocks in a specific area

sturdy oar
#

you cancel the break event smh?

craggy lynx
#

Oh, thanks

sturdy oar
#

Event#setCancelled(true)

gusty comet
#

@frigid ember

    @EventHandler
    public void onProxyPing(ProxyPingEvent e) {
        ServerPing ping = e.getResponse();
        /**
         * 47 is the Protocol Version from 1.8 to 1.8.9
         * https://wiki.vg/Protocol_version_numbers
         */
        ping.setVersion(new Protocol("BeeCord 1.8", 47));
        e.setResponse(ping);
    }
raw light
#

updating a world map from 1.12. something is blocking me placing in areas on the map. im OP and have all perms. im not sure if this is a plugin or spigot jar or what.

I dont even get the place block animation just nothing

gusty comet
#

Wrong keybind? 😄

grim halo
#

Are you outside the world border?

raw light
#

no world border and no keybind

#

its weird, its almost like a chunk issue. could the world jump from 1.12 to 1.16 have anything to do with it

grim halo
#

If you dont even get the place animation then your client thinks he cant even place a block here.

#

Yes

gusty comet
#

gamemode 2?

raw light
#

im in creative

frigid ember
#

@frigid ember

    @EventHandler
    public void onProxyPing(ProxyPingEvent e) {
        ServerPing ping = e.getResponse();
        /**
         * 47 is the Protocol Version from 1.8 to 1.8.9
         * https://wiki.vg/Protocol_version_numbers
         */
        ping.setVersion(new Protocol("BeeCord 1.8", 47));
        e.setResponse(ping);
    }

@gusty comet Hi, which "file" is this under?

gusty comet
#

what do you mean with file?

frigid ember
#

I've only just got into coding, can I PM you about it?

gusty comet
#

sure

lunar falcon
#

Hey guys, I'm experiencing a bug with mv core, creating a world then restarting the server. The seed of the world changes after restarting, do you know what's happening ?

#

mv core is the only plugin on the server

sage summit
#

where can i find the vault permissions?

#

dm me the link, i gtg to bed

craggy jolt
#

there are no permissions for vault only permissions for the plugin that implements the vault api

sage summit
#

wait so its all from essentials?

#

ok

craggy jolt
#

yes

#

if you use essentials for your economy plugin

craggy lynx
#

Can i name a variable like a player name so something like that:

String player.getName = "..."
#

?

grim halo
#

getName gets a name. setName would set the name

#

Also what you wrote is not even a statement.

craggy lynx
#

I want a new string with the name of an player

grim halo
#

String name = player.getName() ?

craggy lynx
#

No the string's name should be the players name

grim halo
#

The String name is the players name. It is initialized with tha value that is currently the players name.

craggy lynx
#

No not the value of the string the name of the string, like if the player name ist steve the string should be called steve not the value

grim halo
#

Variable names are defined at compile time. You cant change a variable name on runtime. (Not without some serious tinkering)
Also it makes absolutely no sense to name a variable after the name of a player.

craggy lynx
#

No it shoul be a new string

new String <Name Of player> = "..."
grim halo
#

And the variable should be named after the players name?

craggy lynx
#

Yes

grim halo
#

That is not possible nor does it make sense. Why do you want to do that?

craggy lynx
#

Or after an other string i want something like that

for(i =1; i < 10 ; i++) {
     String <value of i>) = "..." 
}
slate bough
#

i'm not sure if this question is in the right place, here we go ;D So i have added "double shulker shells" from vanilla tweaks to my 1.16.1 survival server... Here's the problem: im getting alot of errors when the server restarts, it says something around the lines that it cant find a recipe for shulkers.. does someone have a good alternative or a idea to fix this? or is this error not so important...

grim halo
#

@craggy lynx You want to name the Strings "1" "2" "3" etc?

craggy lynx
#

Yeah, i want to make new string to save temporally values

#

Because its an unknown sum if values this is the easiest was in my sight

slate bough
#

Yeah, i want to make new string to save temporally values
@craggy lynx wouldn't it make mor sens to use integers or chars?

craggy lynx
#

I want to save strings, now numbers

slate bough
#

@craggy lynx wouldn't it make mor sens to use integers or chars?
@slate bough because strings aren't very efficient...

grim halo
#

Chaosdave i think you need to learn the basics of Java.

craggy lynx
#

My idea:
-A player enters a command
-I want save a string
-i want to use this string somewhere else

  • because i dont now how many people are using this command I won't something like unique string names which i can find with the players name
slate bough
#

maybe put the players name in the string name then?

grim halo
#

Then use a HashMap

#

They are made for exactly this purpose

craggy lynx
#

Sorry, i have no idea of hashmaps, but thanks for the idea i will look in the internet if i can find a tutorial or something like that, thanks

slate bough
#

i'm not sure if this question is in the right place, here we go ;D So i have added "double shulker shells" from vanilla tweaks to my 1.16.1 survival server... Here's the problem: im getting alot of errors when the server restarts, it says something around the lines that it cant find a recipe for shulkers.. does someone have a good alternative or a idea to fix this? or is this error not so important...
@slate bough im sorry, but has someone an idea on this?

grim halo
#

Does it emerge every restart?

slate bough
#

yes it does, i also have multi player sleep and wandering trader (for micro blocks etc.) installed, they dont spit out messages...

#

i saw a reddit post, where someone had the exact same errors, but in another minecraft version... that post is not fixed...

grim halo
#

Then i have no idea. The error occurs if there are recipes that nobody has registered so the server just throws them away.

slate bough
#

ok then, the server does work fine, it probably isnt that big of a deal then... Thanks for your time!

dusky sigil
#

I want to spawn a mob and i found this Bukkit.getWorld().spawnCreature(SpawnBoss, EntityType.ZOMBIE); (SpawnBoss is a location i already set) the problem is with getworld().

#

The method getWorld(String) in the type Bukkit is not applicable for the arguments () Main.java /Boss/src/me/ronsiv/Boss line 47 Java Problem

#

okay, i enter something like world as the argument and i get thi

#

this

#

world cannot be resolved to a variable Main.java /Boss/src/me/ronsiv/Boss line 47 Java Problem

frigid ember
#

you need to get the player's world

dusky sigil
#

oKAy i MakE a wORld VariBLe whiCH hAS the PlayER woRLD

grim halo
#

If "SpawnBoss" is a location you can just call SpawnBoss.getWorld() to get the world...

dusky sigil
#

The method getWorld() in the type Location is not applicable for the arguments (World) Main.java /Boss/src/me/ronsiv/Boss line 47 Java Problem

#

i did SpawnBoss.getWorld()

#

oh wait nevermind

grim halo
#

Without arguments

dusky sigil
#

now i get this error

#

with spawncreature

#

The method spawnCreature(Location, EntityType) is undefined for the type World Main.java /Boss/src/me/ronsiv/Boss line 47 Java Problem

grim halo
#

spawnCreature is not a method of world... spawnEntity is

dusky sigil
#

...

#

that solves it

#

thanks

frigid ember
#

How do you add an event listener in a command ? I actually created a class with an eventlistener but I don't know how and where to put it on the class that deals with all the commands

grim halo
#

So do you want to create a command or do you want to have a listener that listens to every command that gets executed by a player?

frigid ember
#

i think he wants a listener in his command class

dusky sigil
#

like

#

a implements listener?

frigid ember
#

that's what i would guess... just implement listener and make a method for the event

#

For exemple, if a player is doing a /cmd, he has to right click an entity to do something with it

#

Ok so that's all I should do ?

#

to accomplish that i don't see why you would need a listener in your command class

grim halo
#

You can have a Set<UUID> in your command/listener class.
on cmd -> add player id to set
on click -> remove player id from set and do something

#

You could also just add a Scoreboard tag to the player. This way you dont have to cram the listener and command class into one jfile

dusky sigil
#

problem with scoreboards

#

minecraft premissions are WAY too general

#

to change someones scoreboard is to also give them a way to make objectives and change his scores

#

oh also i did this to spawn a zombie

#

SpawnBoss.getWorld().spawnEntity(SpawnBoss, EntityType.ZOMBIE);

#

weirdly isnt working

#

no error or anything

frigid ember
#

might want to debug it to see if that code is even run

dusky sigil
#

aight

frigid ember
#

I don't actually know how would a scoreboard help me... I'm basically a noob in java so I'm still learning tons of stuff :/ To be more accurate, I want players to type /addEntity and then right click the entity to add it to a faction (with FactionsUUID). So refering to what you said, I should use the onClick method ?

grim halo
#

Also check if the location is right

untold pond
#

i am a grandmother trying to set up my grandchildren world spawn thay want a cool looking one and i have mo clue what i am doing can somone help me set it up

dusky sigil
#

if you just begun this is a bit complicated

frigid ember
#

Oh sorry, the scoreboard thing wasn't for me

grim halo
#

player.getScoreboardTags().add("SOME_TAG");
The player has an internal Set<String> where you can just tag him

dusky sigil
#

@untold pond were coders, not builders :D

untold pond
#

ok where do i go to get help to set up

dusky sigil
#

I have no idea

untold pond
#

i have sparked

frigid ember
#

you can find some spawns on certain websites

#

like planet minecraft

dusky sigil
#

so i debugged it

#

well

#

doesnt run

#
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (label.equalsIgnoreCase("setbossspawn")) {
            Player p = (Player) sender;
            getConfig().set("loc.world", p.getLocation().getWorld().getName());
            getConfig().set("loc.x", p.getLocation().getX());
            getConfig().set("loc.y", p.getLocation().getY());
            getConfig().set("loc.z", p.getLocation().getZ());
            saveConfig();
            p.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "THE DUNGEON MASTER WILL SPAWN HERE.");
       if (label.equalsIgnoreCase("startboss")) {
           World w = Bukkit.getServer().getWorld(getConfig().getString("loc.world"));
           double x = getConfig().getDouble("loc.x");
           double y = getConfig().getDouble("loc.y");
           double z = getConfig().getDouble("loc.z");
           SpawnBoss = new Location(w,x,y,z);
           SpawnBoss.getWorld().spawnEntity(SpawnBoss, EntityType.ZOMBIE);
           p.sendMessage("Works");
   
       }
            return true;
        }

        return false;
    }```
#

setbossspawn DOES run

frigid ember
#

so nothing in startboss runs at all?

dusky sigil
#

nope

frigid ember
#

stupid question but did you register it?

dusky sigil
#

yea

grim halo
#

You have your second if inside your first if

dusky sigil
#

bruh

#

why

#

and now im warned

#

perfect day

grim halo
#

I copy pasted it into my IDE and it whas like:
Are you STÜHPID? This wont ever be true

dusky sigil
#

now im doing this

#
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (label.equalsIgnoreCase("setbossspawn")) {
            Player p = (Player) sender;
            getConfig().set("loc.world", p.getLocation().getWorld().getName());
            getConfig().set("loc.x", p.getLocation().getX());
            getConfig().set("loc.y", p.getLocation().getY());
            getConfig().set("loc.z", p.getLocation().getZ());
            saveConfig();
            p.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "THE DUNGEON MASTER WILL SPAWN HERE.");
       if (label.equalsIgnoreCase("startboss")) {
           World w = Bukkit.getServer().getWorld(getConfig().getString("loc.world"));
           double x = getConfig().getDouble("loc.x");
           double y = getConfig().getDouble("loc.y");
           double z = getConfig().getDouble("loc.z");
           SpawnBoss = new Location(w,x,y,z);
           SpawnBoss.getWorld().spawnEntity(SpawnBoss, EntityType.ZOMBIE);
           p.sendMessage("Works");
       }
   
       }
            return true;

    }```
#

wait

#

i didnt fix anything

frigid ember
#

you didnt fix it lol

dusky sigil
#

okay

#

am i insane

grim halo
#

The second if statement is still inside the first...

stuck quartz
#

is there a max amount of lores per item?

frigid ember
#

afaik no

stuck quartz
#

mk

frigid ember
#

but if you have too many lines you won't be able to see them all in your inventory

stuck quartz
#

ikr, thanks

grim halo
#
  private void setBossSpawn(Player player) {
    this.getConfig().set("loc.world", player.getLocation().getWorld().getName());
    this.getConfig().set("loc.x", player.getLocation().getX());
    this.getConfig().set("loc.y", player.getLocation().getY());
    this.getConfig().set("loc.z", player.getLocation().getZ());
    this.saveConfig();
    player.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "THE DUNGEON MASTER WILL SPAWN HERE.");
  }

  private void startBoss(Player player) {
    final World w = Bukkit.getServer().getWorld(this.getConfig().getString("loc.world"));
    final double x = this.getConfig().getDouble("loc.x");
    final double y = this.getConfig().getDouble("loc.y");
    final double z = this.getConfig().getDouble("loc.z");
    SpawnBoss = new Location(w, x, y, z);
    SpawnBoss.getWorld().spawnEntity(SpawnBoss, EntityType.ZOMBIE);
    player.sendMessage("Works");
  }

  public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
    final Player p = (Player) sender;
    if (label.equalsIgnoreCase("setbossspawn")) {
      this.setBossSpawn(p);
    } else if (label.equalsIgnoreCase("startboss")) {
      this.startBoss(p);
    }
    return true;
  }

Thats more maintainable @dusky sigil

raven hound
#

My server is just crashing out of nowhere for no reason

frigid ember
#

logs?

stuck quartz
#

whats the best way to prevent chunk ban? ("banning" the player because a chunk he loaded has too many packets being sent, causing the player to be kicked every time he joins)

raven hound
#

it does not show a reason but here

#

?paste

worldly heathBOT
raven hound
craggy jolt
grim halo
#

What os are you on?

craggy jolt
#

Windows 10

grim halo
#

Do you use a batch file to start the BuildTools?

quick bolt
#

can I not edit the external download url for a version?

craggy jolt
#

I didnt use a batchfile, I did it with the command java -jar BuildTools.jar --rev 1.16.1

frigid ember
#

@raven hound how much ram does your server have

raven hound
#

2gb

#

i think

grim halo
#

Lol Then you cant run that many plugins. esp not skript

raven hound
#

should i remove skript

grim halo
#

Or it is a close call at least

frigid ember
#

yeah might want to see if you can upgrade to 3+ or remove some plugins

raven hound
#

alright then

grim halo
#

Hugo did you use git bash or something similar?

stuck quartz
#

what is Skript

craggy jolt
frigid ember
#

skript is like making plugins in yaml

grim halo
#

Maybe try starting it from a batchfile... this somehow looks like an encoding error

frigid ember
#

its more for designing prototypes

#

or small tasks

craggy jolt
#

ok I will come back to you after I tried

karmic sable
#

How can I set an arrow trail with particles?

world.spawnParticle(Particle.DRAGON_BREATH, vector.getX(), vector.getY(), vector.getZ(), 50, 2D, 2D, 2D);```This doesn't seem to be working. vector is the velocity of the arrow.
grim halo
#

We need more context

#

Ah

karmic sable
#

;)

grim halo
#

Fly to 0 / 0 / 0 and make some space there. You will see a lot of particles there

red kernel
#

Hey! How would I create a custom Crafting GUI that can craft all recipes? Please ping me when you answer me, thank you very much :D

grim halo
#

The velocity is a small vector with the origin of 0,0,0 pointing to something like 1.1, 0.1, 0.33

craggy jolt
#

7smile7, same thing happens if I start from a batch file

karmic sable
#

hahahaha

#

¯_(ツ)_/¯

grim halo
#

No idea then \r is the carriage return char. If that doesnt get recognized there is some encoding problem.

karmic sable
#

so do I add the player location to the x y and z?

#

or like, the arrow event location

grim halo
#

You want the particle to spawn at the arrow location.

karmic sable
#

Thanks I'll figure it out with that :)

#

Fnny to see the sparks at 0 0 0 tho ;)

grim halo
#

spawn at arrow -> next tick again -> next tick again.
Then you got a trail

karmic sable
#

yeah figured I'd need a bukktirunnable

grim halo
#

@craggy jolt Try deleting everything and run it again. If the error persists i can show you how you can modify the file with notepad++

craggy jolt
#

I deleted everything both times

grim halo
#

@karmic sable There is also another way where you extend the Arrow class and override the tick or move method to add a trail.

chrome lark
#

your git settings are causing issues, hugo

karmic sable
#

Seems more complicated than a schedulesyncrepeatingtask (which checks for arrow not being dead),, no?

craggy jolt
#

how do I change them?

chrome lark
#

Basically, your having issues with the line endings, you'll wanna look at the auto crlf setting, i think it was

grim halo
#

@karmic sable Both ways have its downside.

public class CustomArrow extends EntityArrow {

  protected CustomArrow(final EntityTypes<? extends EntityArrow> entitytypes,
      final World world) {
    super(entitytypes, world);
  }

  @Override
  public void tick() {
    if (!this.isOnGround()) {
      // Spawn particle
    }
    super.tick();
  }

  @Override
  protected ItemStack getItemStack() {
    return CraftItemStack.asNMSCopy(new org.bukkit.inventory.ItemStack(Material.ARROW));
  }

}

This took me like 1min

cobalt smelt
#

Hello. I have a question, i cant break or build anywhere in any of m y worlds, would you know what plugin this is?

karmic sable
#

Yeah I'm not that experienced yet I'm afraid, but thanks a lot!

raven hound
#

@cobalt smelt Do you have essentials?

grim halo
#

There could be several plugins that could prevent you from building. Most popular one is worldguard

raven hound
#

Essentialsprotect is one too

karmic sable
#

Would checking for isDead() be enough as the "isonground" ?

grim halo
karmic sable
#

Alright yeah makes sense

cobalt smelt
#

@raven hound Yes, but before you ask, ive already deleted AntiBuild

raven hound
#

what about essentialsprotect

grim halo
#

You can make a runnable class that has a Set<Arrow> and runs every tick.
There you can just add and remove arrows that should have trails.

stuck quartz
#

is there a way to add a custom spawner to /give?

grim halo
#

Ah wait thats for setting a block... But i think the data should work for give as well

cobalt smelt
#

@raven hound Yes

stuck quartz
#

is there a way for me to modify /give or something?
i didn't want to have to copy a 256 chars long /give command

id want to make something like
/give spawner:boss_1
is that possible?

raven hound
#

do /pl and show me the plugins

cobalt smelt
#

ok

karmic sable
#

Thanks again for the help mister smiles, I have to go now I'll dig deeper into it tomorrow :)

craggy jolt
#

now I no longer get the error when trying to Build Spigot but I get a message that I should run 2 git commands, which i did and it still wont work

  git config --global user.name "Your Name"```
https://paste.md-5.net/akaguneboq.cs can someone help me there?
crimson sandal
#

Or is it because the methods have no parameters 😛

raven hound
#

I put it on 3gb but still just stops

yeah might want to see if you can upgrade to 3+ or remove some plugins

#

oops sorry for ping

grim halo
#

3gb should be enought for a lot of plugins

raven hound
#

then why is it just disabling it

#

/ stopping it

craggy jolt
#

Finally I got it to build

rose crystal
#

Any recommendation for a fast method of pregenerating chunks?

#

besides worldborder

pastel nacelle
#

chunky

rose crystal
#

trying that, but for some reason the cps is capped at 15

#

and the cpu is i9 9900k with 64GB ram

#

q.q

pastel nacelle
#

have you tried chunkmaster

rose crystal
#

yes

#

slow just as worldborder

pastel nacelle
#

sounds like an issue on your side rather than in the plugins tbh

rose crystal
#

yeah thought so but i cant figured it out q.q

pastel nacelle
#

if it's slow, just let it run in the background while the server runs

#

it'll get done eventually

#

on paper chunks aren't much of an issue anyway so pregeneration isn't totally necessary anymore

#

since you asked about this in the paper discord first i'll assume you're using paper

rose crystal
#

Yeah i am

mellow wave
#

I believe those plugins cap to keep your tps stable

#

So just wait

frigid ember
#

hi here

#

i need help

pastel nacelle
#

you again

frigid ember
#

i dont know how to cancel bukkit task inside of event

#

yeah

bronze acorn
#

this.cancel(); ?

pastel nacelle
#

BukkitTask#cancel

frigid ember
#

no i mean

bronze acorn
#

or declare the bukkit task as a variable and do what nny said

pastel nacelle
#

you obviously need to get your hands on the bukkit task to cancel it

frigid ember
#

nonono

pastel nacelle
#

needs context

#

are you on phone again?

bronze acorn
#

💀

frigid ember
#

in event is if statement and in it is a bukkit task

#

and i need to cancel it in else

pastel nacelle
#

uh huh

#

store it in a field or a variable and cancel it if it isn't null

frigid ember
#

how?

#

ok

#

wait how can i store task?

pastel nacelle
#

put it in a field or variable

#

the scheduler returns a BukkitTask for everything you schedule with it

unkempt dock
#
        for (final String key : config.getConfigurationSection(getPlayer().getUniqueId().toString()).getKeys(false)) {
            System.out.println("Key: " + key);
            final ItemStack item = ItemStack.deserialize(config.getConfigurationSection(getPlayer().getUniqueId().toString() + "." + key).getValues(false));
            item.setAmount(1);

            if (items.containsValue(key))
                continue;

            ItemMeta meta = item.getItemMeta();

            if (meta == null)
                throw new FoException("Meta is null");

            List<String> lore = new ArrayList<>(meta.getLore() == null ? new ArrayList<>() : meta.getLore());
            lore.addAll(Settings.HELD_ITEM_LORE);
            meta.setLore(lore);
            item.setItemMeta(meta);

            items.put(item, key);

        }

        System.out.println("Values:" + items.values());
bold anchor
#

Passing a task -> {} will allow you to do this.cancel()

unkempt dock
#

This always output only 2 values, why?

pastel nacelle
#

he wants to do it outside of the task as far as i understand

#

then again this is all just guesswork and piss in the wind until he posts actual code

brisk agate
#

I got a server thread dump after debugging a plugin im developing. I look for any calls to my plugin and found none, can someone help me?

bronze acorn
#

wh

pastel nacelle
#

ignore him

bronze acorn
#

why are you

pastel nacelle
#

he doesn't know anything about anything

brisk agate
#

oof

frigid ember
#

im just trying to understood what is he doing

brisk agate
#

Can someone help me?

bronze acorn
#

whats up

pastel nacelle
#

did you use the ide's inbuilt debugger?

brisk agate
#

yeah

pastel nacelle
#

that explains

#

it halts the entire process while you debug it

brisk agate
#

but it was working fine

pastel nacelle
#

or, well, the main thread anyway

brisk agate
#

well im not debugging anymore

#

and i wasnt halting it

#

i was just using live code replacements

#

But now im running it normally, and its still not working

pastel nacelle
#

well, uh

#

post the thread dumps

brisk agate
#

Here it is

vernal spruce
#

oh boy

#

1.8

brisk agate
#

its a plugin im deving for a 1.8 factions server

pastel nacelle
#

yeeeah, i don't really do support for 1.8 anymore

#

my best advice is to try things until it stops being broken

vernal spruce
#

^ just a hint

#

ur connection using that html is the cause

brisk agate
#

what connection tho

vernal spruce
#
[13:26:24 ERROR]:         java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
[13:26:24 ERROR]:         java.net.SocketInputStream.read(SocketInputStream.java:171)
[13:26:24 ERROR]:         java.net.SocketInputStream.read(SocketInputStream.java:141)
[13:26:24 ERROR]:         java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
[13:26:24 ERROR]:         java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
[13:26:24 ERROR]:         java.io.BufferedInputStream.read(BufferedInputStream.java:345)
[13:26:24 ERROR]:         sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
[13:26:24 ERROR]:         sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
[13:26:24 ERROR]:         sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
[13:26:24 ERROR]:         sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
[13:26:24 ERROR]:         org.spigotmc.Metrics.postPlugin(Metrics.java:435)
[13:26:24 ERROR]:         org.spigotmc.Metrics.access$4(Metrics.java:345)```
brisk agate
#

also does this mean anything, this shows up in the beginning

vernal spruce
#

something its making a connection outside

brisk agate
#

2020-07-19 13:26:11,389 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream

vernal spruce
#

Are you calling something async?

brisk agate
#

i have one async runnable in my plugin

vernal spruce
#

show it here

#

by that i mean post the code

brisk agate
#
new BukkitRunnable() {
            @Override
            public void run() {
                if (boss.isDead()) {
                    eventLive = false;
                    for (Zombie z : minions) {
                        z.remove();
                    }
                    broadcast("Boss dead", "boss dead");
                    for (Player p : bossDamage.keySet()) {
                        final double damagePercent = (bossDamage.get(p) * 100) / totalDamage;
                        Bukkit.broadcastMessage(p.getName() + ": " + damagePercent + "%");
                    }
                    this.cancel();
                    return;
                }

                bossHealth = Double.parseDouble(df.format(boss.getHealth()));
                boss.setCustomName(bossName + " " + bossHealth + "§c❤");
                healthPercent = (bossHealth * 100) / bossMaxHealth;
                if (healthPercent <= 80 && wave == 1) wave2();
                if (healthPercent <= 60 && wave == 2) wave3();
                if (healthPercent <= 40 && wave == 3) wave4();
                if (healthPercent <= 20 && wave == 4) wave5();
            }
        }.runTaskTimer(plugin, 0L, 10L);
#

do you want whole class?

vernal spruce
#

oh boy thats alot of things for a 0.5sec

#

but still shouldnt matter

#

nothing that can cause crashes

brisk agate
#

tick timings dont change, i checked with spark

vernal spruce
#
[13:26:24 ERROR]:         org.mcstats.multiverse.Metrics.access$400(Metrics.java:61)
[13:26:24 ERROR]:         org.mcstats.multiverse.Metrics$1.run(Metrics.java:227)```
#

try remove multiverse and run it again

brisk agate
#

oh okay

pastel nacelle
#

that's on a separate thread and probably isn't the cause but it's worth a shot i guess

vernal spruce
#

well i see alot of http stuff meaning something tried to connect outside

brisk agate
#

that didnt work

vernal spruce
#

some stats tracking most likely

#

hmm

#

keep only ur own plugin

#

and see if the error persists

brisk agate
#

okay

#

okay it crashed again

vernal spruce
#

post it now

#

?paste

worldly heathBOT
brisk agate
vernal spruce
#

Hmm

#

do you have something wich can write weird shit to console

#

?

brisk agate
#

wdym weird shit

vernal spruce
#

remove any bukkit broadcast message from the runnable

#

and try again with that

brisk agate
#

okay i only have one

vernal spruce
#

i see 2

#

Bukkit.broadcastMessage(p.getName() + ": " + damagePercent + "%"); broadcast("Boss dead", "boss dead");

brisk agate
#

the broadcast one is custom

#

heres the code for that

vernal spruce
#

remove it as well

#

keep it clean with no console interaction

brisk agate
#
private void broadcast(String... msgs) {
        for (Player p : plugin.getServer().getOnlinePlayers()) {
            for (String msg : msgs) {
                p.sendMessage(msg);
            }
        }
    }
vernal spruce
#

and try

brisk agate
#

it doesnt interact with console

vernal spruce
#

k then

#

give it a shot and tell us how it went

brisk agate
#

didnt work

pastel nacelle
#

have you tested if it works without your plugin

brisk agate
#

nope

vernal spruce
#

good point lol

#

dont see any traces of a custom plugin there

brisk agate
#

yeah thats whats confusing

#

not a single plugin and it still crashes

vernal spruce
#

yep ur server jar is corrupt

#

where you got it from

#

?

brisk agate
#

and

#

i havent

vernal spruce
#

you cant download

brisk agate
#

downloaded a new one since i setup the server

vernal spruce
#

the jar directly

brisk agate
#

and ive been using this for months

#

ive been using this jar for months

vernal spruce
#

you cant download spigot jar directly from it

brisk agate
#

heres where i got it

vernal spruce
#

you most likely got it from unofficial source

#

only verified can post links

#

use this

#

wich is how spigot is intended to be downloaded

#

?bt

worldly heathBOT
pastel nacelle
#

just test on paper 😎

vernal spruce
#

it will give you the latest updated 1.8.8 version

brisk agate
#

i got it from getbikkit(dot)org

vernal spruce
#

yeah

#

thats rly bad to do

brisk agate
#

okay my bad

#

okay i think i got it now

vernal spruce
#

try it

#

and see how it goes

#

dont forget to undo the changes

#

to the runnable

brisk agate
#

yup already fixed that, ill let you know when the jar downloads

#

should i use spigot or craftbukkit

#

nvm that was a dumb question

vernal spruce
#

..

mellow wave
#

Always spigot, don't use craftbukkit

half finch
#

Is there a way to get the item identifier from an ItemStack (ex: Stone Pickaxe = stone_pickaxe)?

bold anchor
#

You mean the material tag?

#

ItemStack#getType#name()

mellow wave
brisk agate
#

Stellrow, even with new jar it still crashes??????

paper compass
#

Not everyone knows how to read javadocs

sturdy oar
#

ItemStack#getType#name()
@bold anchor maybe toLowerCase

bold anchor
#

Whatever

brisk agate
#

Stellrow, even with new jar it still crashes?????? do you know why

mellow wave
#

@brisk agate If it crashes with a thread message you're probably doing too much per tick for you server to handle

brisk agate
#

I fixed it i just reset all the server files

half finch
#

Is there a way to get a recipe to a specific item or do I have to iterate through the entire getRecipesFor?

brisk agate
#

wdym?

haughty fable
#

Anyone experiencing the same problem with Eclipse atm? I already installed JDK 11 but still isnt starting :-:

mellow wave
#

@half finch Message above

brisk agate
#

@haughty fable change you default java in your environment variables

haughty fable
#

@brisk agate where do I find them? :-:

brisk agate
#

open search

#

and search environment variables

#

then click environment variables

#

find JAVA_HOME in the top section

#

and change it

#

to jdk11

frigid ember
#

Hey there! Did someone know whats wrong? https://hastebin.com/axuqusolij.bash This part of the plugin is to check the distance between two players, but it doesn't work (no errors). It sends the message, like without checking if the distance is ok.

#

do somebody know a good performence boost plugin?

sturdy oar
#

no

brisk agate
#

JoHe install spark and find out what plugins are slowing things down

tiny dagger
#

there is none

#

that actually does anything

brisk agate
#

^

frigid ember
#

performance is dependent on the machine the server runs on and the configuration of the server

ashen schooner
#

hey i have this code:

custom-quit-message: "&7[&c-&7] &3&lGood Bye {player}"```
but why it doesnt replace  ```{player}``` with the actual name?
tiny dagger
#

the paper/spigot config has enough actual optimizations

ashen schooner
#

but why it doesnt replace {player} with the actual name?

dusky sigil
#

I want to name a mob, so i made a zombie using Zombie Boss = (Zombie) so now, how do i spawn this?

brisk agate
#

@ashen schooner is that in a custom plugin?

ashen schooner
#

no

#

essentials

brisk agate
#

do you have placeholder api?

#

oh

#

essentials

#

one sec

ashen schooner
#

yes i do

#

ok

brisk agate
#

try {PLAYER}

ashen schooner
#

ok

frigid ember
#

Hey there! Did someone know whats wrong? https://hastebin.com/axuqusolij.bash This part of the plugin is to check the distance between two players, but it doesn't work (no errors). It sends the message, like without checking if the distance is ok.
@frigid ember Some idea?

ashen schooner
#

works thanks a lot @brisk agate 🙂

brisk agate
#

np 🙂

dusky sigil
#

I want to name a mob, so i made a zombie using Zombie Boss = (Zombie) so now, how do i spawn this?
Any ideas?

brisk agate
#

Yes

#

here

#

try this

#
Zombie boss = world.spawn(location, Zombie.class);
boss.setCustomName(name);
balmy sentinel
#

Using maven to import Bungee what should go in the version tag?

dusky sigil
#

@brisk agate youre owning today man

brisk agate
#

🙂

balmy sentinel
#

@bleak peak thanks! where did you find that? I couldn't find it under the wiki?

dusky sigil
#

how can i give a entity more health?

#

no

#

i want MORE

#

HAHA-

brisk agate
#

^^^

dusky sigil
#

thanks

brisk agate
#

boss.setHealth();

#

or

dusky sigil
#

but they dont know im gonna make a zombie with 443468923468078943567 health

brisk agate
#

boss.setMaxHealth();

#

LOL

half finch
#

@mellow wave from what I understand the getRecipesFor gives you all the recipes for an item, not how to craft that item. So if I want a recipe for a specific item do I have to iterate through all the recipes for an item that makes up the recipe I’m looking for?

quick arch
#

setMaxHealth() is deprecated

dusky sigil
#

this zombie will rule the world

#

DIE

naive goblet
#

Yeah King, max health is a dynamic value now

rare prairie
#

setMaxHealth() is deprecated
use Entity#getAttribute

mellow wave
#

@half finch I'm not sure what you mean. It returns all recipe for a specific item. You don't have to iterate through anything since all the recipes returned will be recipes to craft the specific item

quick arch
#

yeah, attributes are amazing

winged sparrow
#

Just use attribute and set generic max health

#

Ez

#

But make sure to use .setHealth after that as well

cursive umbra
#

how to get vien miner on aternos

edgy pendant
#

first plugin tips???

gusty comet
#

is it bad to use a forEach loop with every online ProxiedPlayer everytime when someone is sending a message?

subtle blade
#

Not really. What matters is what you're doing in that loop

gusty comet
#

ok. What about Teamchat? Checking for a permission inside the loop

#

or should i just store all players who have the permission in a List

subtle blade
#

No that's probably fine. Though if you're able to somehow group teams into some object you're obviously not going to have to needlessly iterate over those that won't get the message

#

Your server is not going to suffer because you're iterating across every player. Keep in mind that vanilla has to tick across every single entity 20 times every second and often perform very time consuming logic

gusty comet
#

yeah. My problem is that if someone receives a rank while on the server they need to rejoin so i have to make a tasktimer to manually update the list every 10 seconds

#

Idk why but whenever im coding something new im always thinking "Oh fuck is this laggy"??

subtle blade
#

Generally that should be your last thought. Unless you start noticing a significant decrease in performance, it shouldn't really be a priority

#

Sure, write as good of code as you can, but you likely won't have issues unless you start seeing them yourself

brisk agate
#

Choco can i have your 2 cents on why you use Eclipse over IntelliJ

dusky sigil
#

It says i can only make a mobs health 20

#

how can i make it more?

subtle blade
#

because I like it better?

#

Ronsiv, use attributes to change an entity's generic_max_health

#

Entity#getAttribute(Attribute)

dusky sigil
#

youre going to have to elaborate

subtle blade
#

I literally gave you the method you have to use 😛

#

Get its attribute and either add a modifier or set its base value

dusky sigil
#

So is entity changed to zomvie

#

zombie

subtle blade
#

Sure

#

It's literally any entity

dusky sigil
#

okay...

#

generic_max_health cannot be resolved to a variable Main.java /Boss/src/me/ronsiv/Boss line 53 Java Problem

#
    boss.getAttribute(generic_max_health);```
#

i changed the # to a dot out of instinct

#

i think

#

i went too idiot

#

and he left

subtle blade
#

Attribute.GENERIC_MAX_HEALTH

dusky sigil
#

oh youre still here

subtle blade
#

Should be some basic Java here ;P

dusky sigil
#

boss.Attribute.GENERIC_MAX_HEALTH doesnt work

#

NOW i went too idiot alright

subtle blade
#

boss.getAttribute(Attribute.GENERIC_MAX_HEALTH)

#

You can call upon that setBaseValue() to set it to whatever you'd like

dusky sigil
#

alright

#

i wield to attribute

#

now

#

to change it

#

...

#

oh

#

setBaseValue

#

HA HA

#

I DID IT

#

...i think

crimson sandal
half finch
#

Thank you @mellow wave, I misunderstood how that worked.

mellow wave
#

No problem 🙂

half finch
#

I have now changed the recipe, but its not giving me a result in the crafting table :/

#

which is odd as the crafting book/guide is showing the new recipe

lone fog
#
CraftBukkit [✔]
↳ Spigot [✔]
...↳ PaperSpigot [✔]
......↳ Purpur [✔]
......↳ Tuinity [✔]
...↳ TacoSpigot [✔]
Sponge [✖] (#20)
.
BungeeCord [✔]
↳ Waterfall [✔]
...↳ Travertine [✔]
↳ HexaCord [✔]
Velocity [✔] (1.1.0 and up)``` Ow my eyes
#

Ask the plugin author

#

They have a discord link

raven flare
#

I just started coding with java and I'm trying to update someone's plugin, why does IntelliJ say that the variable player doesn't exist? https://i.imgur.com/bPcDT18.png

subtle blade
#

Because it probably doesn't exist in the local scope?

#

I'm even more inclined to believe that considering the line after, event.getPlayer() is used

raven flare
#

how do i make it exist lol

fickle flicker
#

Hello 👋 Where do we put the jar generated by BuildTools to use it as a dependency? I've tried to put it into a .m2 folder, but it doesn't worked