#help-archived
1 messages · Page 186 of 1
@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
yes permanently
if you just want to chill with friends why go through the trouble to set up permissions?
probably to just make their life easier
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
Im trying to find a plugin that lets you have multiple prefixes instead of just one but I cant find one that does it
tell me if you find one
k
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.
using a permissions plugin is the usual and the recommended way of doing it
permissions.yml is more for grouping permissions together
But I learned that apparently md_5 doesn't even suggest permissions.yml
Just use luckperms, it's not that hard
But it is that hard
certainly not
lp group groupname permission set permnode false
depending on how the commands of this "certain plugin" are registered
it will be 1-3 commands
in total, to do what you want
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
...
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
uh, why?
Because that's how this server will work
uh huh
I guess I should sleep on it
Then don't use the commands
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
You need to learn one syntax
or... ask someone how 2 disable them, get the 1-3 commands required to do so, execute them, and forget about it
Except my concern is Other OP's accidentally tabbing and hitting enter, fucking up configs
don't have incompetent operators
Configs shouldn't be editable from the console
it's pretty hard to tab 5 arugments
besides...
with luckperms
you can forbid operators from having permissions to use luckperms
Which you should
Is everyone in the minecraft community just so fucking incompetent that they don't understand that humans make mistakes?
Because /op is dangerous
Alright
didn't i just tell you that you can do what you want
Yes
good
I'm sure they do, but doing /lp group default permission set bukkit.command.op true is not an easy mistake to make
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
or... ask someone how 2 disable them, get the 1-3 commands required to do so, execute them, and forget about it
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
You can't turn it off
Sorry "leave it and forget it"
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.
Hold on. I'll be at my PC in a sec. I'll explain my grievances.
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
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
Im trying to find a plugin that lets you have multiple prefixes instead of just one but I cant find one that does it
LP does that.
@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.)
maybe they should read between the lines then
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.
@sage summit https://luckperms.net/wiki/Prefix-&-Suffix-Stacking 😄
Yep haha
@sage summit This might be helpful as well https://luckperms.net/wiki/Migration 😉
thanks
does this let players change their prefixes based on preference?
Nope. You'd need another plugin to handle letting them. Otherwise you'd need to give them permissions to change only their own prefix
mm, i c
Which is possible with LP 😛
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
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
Is there a plugin that replaces trees like in hypixel skyblock?
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.
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
There probably like 500 other tutorials
It's not really something spigot related though, The minecraft commands discord may be more relevant
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.
they use the same mechanism
Could you maybe give an example? I only need to figure this out once and then I'm golden
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
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?
for an example pack you can probably search for "slimefun resourcepack"
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?
he is kind of dead for finals or something for the time being
i doubt he would appreciate random pings from a random guy
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)
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
yeah i figured that could be a way to do it just weird that the clear don't work
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
remove the .update or use getSnapshotInventory
getInventory isnt part of the snapshot
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.
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
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.
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
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
changing commands is done in commands.yml
permissions are handled in permissions.yml
sorry: disabling commands
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
is spigot supposed to reset the end?
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
because it seems like when i installed spigot my end just reset
Spigot moves the nether and end folders
I just don't know what to say
But should handle vanilla ones automatically on the most recent version
@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
Think it was bugged in early 1.16 versions
permissions.yml is the minimum viable implementation of a permissions management system
which is why nobody uses it
You're right that I'm frustrated
it is simply there so that the server doesn't blow up all by itself
where does it move it to
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.
that is besides the point codepunisher
Maybe I'm confused by what he wants then
we all are
Also you should unregister them rather than use the event for performance
he wants permissions.yml to be better
this discussion does not operate by common sense
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.
bad news; it isnt
Then block them with LuckPerms
well, yeah, uh
Or just don’t use them
@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
And tell other ops not to use them
but, until then, use one of the powerful tools provided to you
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
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
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.
where does it move the end file to
world_the_end
You guys aren't understanding me
just switched from pex to luck perms and its so much better lol
Permissions = allow players to type commands or not
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
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
alright i think i figured out why the end got reset
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
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 😛
I never said I don't want to learn
i cant even find the end file
I'm just frustrated
@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
we can see that
You looked trough the CoreProtect source code too?
what is standardized is how permissions work though
Shhhhh
so regardless which plugin you look at t he format for the permissions is the same
would you be angry if the desktop computer you bought can't be used properly because it didn't come with a monitor?
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!
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.
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 😉
You guys are just regurgitating the same garbage and not listening to what I'm saying.
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
what file is the world_the_end in
Seems like a lot of effort to learn every plugin in so much detail
Woh woh woh
most of what is confusing about LP isn't the permissions
But hey I guess it’s up to you
world_the_end is in your server root folder
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.
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
to be fair
that assumption was silly
I'm frustrated
Permissions.yml is only meant for bundling permissions as far as I know
I didn’t know it could actually assign them to players
its like not there
@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.
i found it
Okay cool. Got that
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.
👍
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.
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
@quartz sandal From one IT person to another. If it's simple and easy from the get go. You've done it wrong
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
Thanks for the help everyone. And sorry Omega for stirring up a ruckus in your server.
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.
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
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?
Is there any kind of example for it Frostalf?
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
There are piston events
That's not what I'm asking though
I’m not sure there is an event for that
Rip
You'd have to use that though, and then use BlockFace.UP to check if there's a door there, I'd assume
yeah I suppose that might work. I might as well at least try it
Block drop items event might work
There's not an event for that specifically, but there's usually always a way to do what you want
And block physics event is probably triggered by that’s probably not a good idea
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
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
ooh yeah gimme a sec I had to make that change too
https://luckperms.net/wiki/Prefix-&-Suffix-Stacking
@lapis saffron thanks
scratch that the only instances I used it in was in click events, sorry 😦
I'm too stupid to understand
https://www.spigotmc.org/wiki/buildtools/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Can anyone assist / run me through?
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
I looked quickly but couldn't find anything
So I really can't?
Life saver! Though, not sure why that was removed, that only made my life harder xD
am i doing something wrong?
Is buildtools in the same folder
So i gotta navigate to the file git hash is installed and put buildtools there?
Sorry im stupid
Just open the command prompt from the folder buildtools is in
Wait TileEntityChest isn't a thing anymore on 1.16?
I can’t imagine it would be removed?
It was
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
@opal adder Your idea to use the piston events and check doors above worked. Thanks man.
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.
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.
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
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
@opal adder https://hub.spigotmc.org/javadocs/spigot/org/bukkit/persistence/PersistentDataContainer.html
declaration: package: org.bukkit.persistence, interface: PersistentDataContainer
Ahh how do i re-verify my name on here
I wish I knew lol
I'm too stupid to understand
https://www.spigotmc.org/wiki/buildtools/
@tough cedar Literally download this, move it to it's own folder and double click it https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
I got it sorted =)
Ahh how do i re-verify my name on here
@static yacht Manually, done for you now 😉
I skipped the step to move it to its own folder 🤦
@static yacht Manually, done for you now 😉
@zenith palm Much Appreciated!
can anyone tell me why chestshop is giving errors?
im guessing something to do with chat?
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)
@tough cedar Do you have plugins that manage teleports or worlds? Did you port your world from an older version?
Turns out, WorldEdit messes with it.
Ghost Portal was created 24 blocks from the Spawn Portal.
You are trying to load forge mods from the plugin folder.
Spigot doesnt support mods.
only plugins
so, is there any alternative hosts i can use for using mods and plugins?
No idea whats up to date in the area but you can try spongeforge
ill check it, thanks
forge mods generally require a lot more resources to use
mainly due to how they are loaded in vs how plugins are loaded
Also ther is the hussle of distributing the same version of every mod to anybody who wants to play.
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
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?
There is on nbt tag that is exclusively used for textures.
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?
Most likely no
if you want 1.7.10 you can use cauldron. But Sponge should run mods and plugins
Still why would you even want that
There is literally a mod for anything you could want
Theyr the same..
@marsh hawk Btw the nbt tag is custom model data
Isnt the Sponge api different from spigots?
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
Im not too sure about that...
Its that point in time where the list is huge
yeah reading up on it rn, thanks @grim halo
Yes thats a common 1.16 bug. But i think it was fixed. Try updating
Updating toooo?
I'm on the latest version of Spigot
I tried the --forceupdate thing but uh
forceupgrade is not a recognixed option
Also i think forceUpgrade is case sensitive. Try it this way.
Do you need your current nether?
I just deleted all 3 worlds
And still getting the error
and this error whatever this is https://hastebin.com/vedumijazi.cs
What is this? Do you have the latest dev build of ProtocolLib?
The default isnt 1.16 ready yet
Whats your Item2Chat version?
4.4.5
trying to do stuff in luckperms https://www.spigotmc.org/threads/luckperms-get-what-rank-the-player-is-in-a-track.452607/
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.
trying to do stuff in luckperms https://www.spigotmc.org/threads/luckperms-get-what-rank-the-player-is-in-a-track.452607/
@sage summit Try asking in the LuckPerms discord?
I've updated both
more concerned about the thing with the thing MapLike but guess I'll wait for updates
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
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerCommandSendEvent.html
This event is called when the list of available server commands is sent to the player.
declaration: package: org.bukkit.event.player, class: PlayerCommandSendEvent
Nope.
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
@grim halo also there is 1 specific annotation there
Wich is missing
There ia no call to @EventHandler anywhere
True.
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
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?
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.
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?
thank you rolyn
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
what's a good mysql-based economy plugin?
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?
@oblique hornet In server properties, what is the packet compression ?
network-compression-threshold=256
Logichack,
- How many players?
- Startup options?
- Gamemode?
Austeja, any plugins ? Version?
@bronze acorn well first i need an economy system
- only me
- 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
- 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
Anyone know what does event.wait(long timeout)
That pauses the event thread
Isn't that object#wait
So the main thread of the server
@oblique hornet if you have the latest spigot, it's then due to one of your plugins
So when I type event.wait(60) it pauses for 3 seconds?
No
ok i will check
The wait method is from Object
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
https://www.spigotmc.org/resources/action-bar-health.2661/
Didn't this work?
@frigid ember vault + essentials
No it doesn't work
any errors?
Very weird... it always worked for my server and so many people use it
I actually have my own, but that was decent
Logichack,
- How many players? Lags are seen at 3 players
- Startup options? All I've ever done was xmx24gb since mineos doesn't really support other options
- Gamemode? Swaps per world from survival to adventure
@undone narwhal
are you using Multiverse?
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?
to me, it just seems like an hardware issue tbh
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
dev prolly put a for loop that never ends 😂
I have quite a few plugins but the server was on an old i5 2400 now it's an i5 4440
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
try and make a timings
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
try and make a timings
@sturdy oar ^^^
timings show which process is lagging the server
Is there somewhere I can figure out how to set one up
Ah ok I'll check it out thx
it should technically work for 1.16 not sure tho
Other than that does spigot use multiple cores well? I've found conflicting info about it
pretty much not tbh
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```
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
what's MineOS
How can i send a message to all players off a specific world
filter the stream
Bukkit.getOnlinePlayers().stream().filter(p -> p.getWorld().equals(...)).forEach(p -> p.sendMessage());
Thanks
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 🙁
Hi all,
Just wondering where in the BungeeCord code do I modify the protocol version displayed? Something similar to this: https://gyazo.com/75f2299e30af94b551a8f148ef5ac299
Thanks
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
How can i prevent player from breaking blocks in a specific area
you cancel the break event smh?
Oh, thanks
Event#setCancelled(true)
@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);
}
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
Wrong keybind? 😄
Are you outside the world border?
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
If you dont even get the place animation then your client thinks he cant even place a block here.
Yes
gamemode 2?
im in creative
@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?
what do you mean with file?
I've only just got into coding, can I PM you about it?
sure
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
there are no permissions for vault only permissions for the plugin that implements the vault api
Can i name a variable like a player name so something like that:
String player.getName = "..."
?
getName gets a name. setName would set the name
Also what you wrote is not even a statement.
I want a new string with the name of an player
String name = player.getName() ?
No the string's name should be the players name
The String name is the players name. It is initialized with tha value that is currently the players name.
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
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.
No it shoul be a new string
new String <Name Of player> = "..."
And the variable should be named after the players name?
Yes
That is not possible nor does it make sense. Why do you want to do that?
Or after an other string i want something like that
for(i =1; i < 10 ; i++) {
String <value of i>) = "..."
}
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...
@craggy lynx You want to name the Strings "1" "2" "3" etc?
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
Yeah, i want to make new string to save temporally values
@craggy lynx wouldn't it make mor sens to use integers or chars?
I want to save strings, now numbers
@craggy lynx wouldn't it make mor sens to use integers or chars?
@slate bough because strings aren't very efficient...
Chaosdave i think you need to learn the basics of Java.
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
maybe put the players name in the string name then?
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
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?
Does it emerge every restart?
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...
Then i have no idea. The error occurs if there are recipes that nobody has registered so the server just throws them away.
ok then, the server does work fine, it probably isnt that big of a deal then... Thanks for your time!
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
you need to get the player's world
oKAy i MakE a wORld VariBLe whiCH hAS the PlayER woRLD
If "SpawnBoss" is a location you can just call SpawnBoss.getWorld() to get the world...
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
Without arguments
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
spawnCreature is not a method of world... spawnEntity is
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
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?
i think he wants a listener in his command class
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
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
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
might want to debug it to see if that code is even run
aight
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 ?
Also check if the location is right
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
if you just begun this is a bit complicated
Oh sorry, the scoreboard thing wasn't for me
player.getScoreboardTags().add("SOME_TAG");
The player has an internal Set<String> where you can just tag him
@untold pond were coders, not builders :D
ok where do i go to get help to set up
I have no idea
i have sparked
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
so nothing in startboss runs at all?
nope
stupid question but did you register it?
yea
You have your second if inside your first if
I copy pasted it into my IDE and it whas like:
Are you STÜHPID? This wont ever be true
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
you didnt fix it lol
The second if statement is still inside the first...
is there a max amount of lores per item?
afaik no
mk
but if you have too many lines you won't be able to see them all in your inventory
ikr, thanks
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
My server is just crashing out of nowhere for no reason
logs?
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)
can someone help me I still cant build anything with buildtools.jar :/ https://paste.md-5.net/nusawelezo.makefile
What os are you on?
Windows 10
Do you use a batch file to start the BuildTools?
can I not edit the external download url for a version?
I didnt use a batchfile, I did it with the command java -jar BuildTools.jar --rev 1.16.1
@raven hound how much ram does your server have
Lol Then you cant run that many plugins. esp not skript
should i remove skript
Or it is a close call at least
yeah might want to see if you can upgrade to 3+ or remove some plugins
alright then
Hugo did you use git bash or something similar?
what is Skript
I have git from https://git-scm.com/
skript is like making plugins in yaml
Maybe try starting it from a batchfile... this somehow looks like an encoding error
ok I will come back to you after I tried
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.
;)
Fly to 0 / 0 / 0 and make some space there. You will see a lot of particles there
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
The velocity is a small vector with the origin of 0,0,0 pointing to something like 1.1, 0.1, 0.33
7smile7, same thing happens if I start from a batch file
No idea then \r is the carriage return char. If that doesnt get recognized there is some encoding problem.
so do I add the player location to the x y and z?
or like, the arrow event location
You want the particle to spawn at the arrow location.
spawn at arrow -> next tick again -> next tick again.
Then you got a trail
yeah figured I'd need a bukktirunnable
@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++
I deleted everything both times
@karmic sable There is also another way where you extend the Arrow class and override the tick or move method to add a trail.
your git settings are causing issues, hugo
Seems more complicated than a schedulesyncrepeatingtask (which checks for arrow not being dead),, no?
how do I change them?
Basically, your having issues with the line endings, you'll wanna look at the auto crlf setting, i think it was
@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
Hello. I have a question, i cant break or build anywhere in any of m y worlds, would you know what plugin this is?
Yeah I'm not that experienced yet I'm afraid, but thanks a lot!
@cobalt smelt Do you have essentials?
There could be several plugins that could prevent you from building. Most popular one is worldguard
Essentialsprotect is one too
Would checking for isDead() be enough as the "isonground" ?
You should track the arrow when its getting shot. Then listen for the ProjectileHitEvent and untrack it
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/ProjectileHitEvent.html
declaration: package: org.bukkit.event.entity, class: ProjectileHitEvent
Alright yeah makes sense
@raven hound Yes, but before you ask, ive already deleted AntiBuild
what about essentialsprotect
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.
is there a way to add a custom spawner to /give?
This Monster Spawner Generator creates the Minecraft Java Edition (PC/Mac) 1.16 command you can use to create a monster spawner (sometimes called a mob spawner) with a custom mob that has weapons, armor, enchantments, and effects. When you have finished customizing your monste...
Ah wait thats for setting a block... But i think the data should work for give as well
@raven hound Yes
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?
do /pl and show me the plugins
ok
Thanks again for the help mister smiles, I have to go now I'll dig deeper into it tomorrow :)
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?
Anyone know why the maven checkstyle isn't detecting the fact that I have no javadoc on the methods of a new interface I added to Bukkit? This is the class I was expecting and error for with the checkstyle: https://pastebin.com/2aMyGW99
Or is it because the methods have no parameters 😛
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
3gb should be enought for a lot of plugins
Finally I got it to build
chunky
trying that, but for some reason the cps is capped at 15
and the cpu is i9 9900k with 64GB ram
q.q
have you tried chunkmaster
sounds like an issue on your side rather than in the plugins tbh
yeah thought so but i cant figured it out q.q
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
Yeah i am
you again
this.cancel(); ?
BukkitTask#cancel
no i mean
or declare the bukkit task as a variable and do what nny said
you obviously need to get your hands on the bukkit task to cancel it
nonono
💀
in event is if statement and in it is a bukkit task
and i need to cancel it in else
put it in a field or variable
the scheduler returns a BukkitTask for everything you schedule with it
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());
Passing a task -> {} will allow you to do this.cancel()
This always output only 2 values, why?
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
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?
wh
ignore him
why are you
he doesn't know anything about anything
oof
im just trying to understood what is he doing
Can someone help me?
whats up
did you use the ide's inbuilt debugger?
yeah
but it was working fine
or, well, the main thread anyway
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
its a plugin im deving for a 1.8 factions server
yeeeah, i don't really do support for 1.8 anymore
my best advice is to try things until it stops being broken
what connection tho
[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)```
also does this mean anything, this shows up in the beginning
something its making a connection outside
2020-07-19 13:26:11,389 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
Are you calling something async?
i have one async runnable in my plugin
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?
oh boy thats alot of things for a 0.5sec
but still shouldnt matter
nothing that can cause crashes
tick timings dont change, i checked with spark
[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
oh okay
that's on a separate thread and probably isn't the cause but it's worth a shot i guess
well i see alot of http stuff meaning something tried to connect outside
that didnt work
some stats tracking most likely
hmm
keep only ur own plugin
and see if the error persists
wdym weird shit
okay i only have one
i see 2
Bukkit.broadcastMessage(p.getName() + ": " + damagePercent + "%"); broadcast("Boss dead", "boss dead");
private void broadcast(String... msgs) {
for (Player p : plugin.getServer().getOnlinePlayers()) {
for (String msg : msgs) {
p.sendMessage(msg);
}
}
}
and try
it doesnt interact with console
didnt work
have you tested if it works without your plugin
nope
you cant download
downloaded a new one since i setup the server
the jar directly
you cant download spigot jar directly from it
heres where i got it
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
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
just test on paper 😎
it will give you the latest updated 1.8.8 version
i got it from getbikkit(dot)org
yup already fixed that, ill let you know when the jar downloads
should i use spigot or craftbukkit
nvm that was a dumb question
..
Always spigot, don't use craftbukkit
Is there a way to get the item identifier from an ItemStack (ex: Stone Pickaxe = stone_pickaxe)?
These are quite useful: https://hub.spigotmc.org/javadocs/spigot/
package index
Stellrow, even with new jar it still crashes??????
Not everyone knows how to read javadocs
ItemStack#getType#name()
@bold anchor maybe toLowerCase
Whatever
Stellrow, even with new jar it still crashes?????? do you know why
@brisk agate If it crashes with a thread message you're probably doing too much per tick for you server to handle
I fixed it i just reset all the server files
Is there a way to get a recipe to a specific item or do I have to iterate through the entire getRecipesFor?
wdym?
declaration: package: org.bukkit, class: Bukkit
Anyone experiencing the same problem with Eclipse atm? I already installed JDK 11 but still isnt starting :-:
@half finch Message above
@haughty fable change you default java in your environment variables
@brisk agate where do I find them? :-:
open search
and search environment variables
then click environment variables
find JAVA_HOME in the top section
and change it
to jdk11
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?
no
JoHe install spark and find out what plugins are slowing things down
^
performance is dependent on the machine the server runs on and the configuration of the server
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?
the paper/spigot config has enough actual optimizations
but why it doesnt replace {player} with the actual name?
I want to name a mob, so i made a zombie using Zombie Boss = (Zombie) so now, how do i spawn this?
@ashen schooner is that in a custom plugin?
try {PLAYER}
ok
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?
works thanks a lot @brisk agate 🙂
np 🙂
I want to name a mob, so i made a zombie using
Zombie Boss = (Zombie)so now, how do i spawn this?
Any ideas?
Yes
here
try this
Zombie boss = world.spawn(location, Zombie.class);
boss.setCustomName(name);
Using maven to import Bungee what should go in the version tag?
@brisk agate youre owning today man
🙂
@bleak peak thanks! where did you find that? I couldn't find it under the wiki?
^^^
thanks
but they dont know im gonna make a zombie with 443468923468078943567 health
@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?
setMaxHealth() is deprecated
Yeah King, max health is a dynamic value now
setMaxHealth()is deprecated
useEntity#getAttribute
@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
yeah, attributes are amazing
Just use attribute and set generic max health
Ez
But make sure to use .setHealth after that as well
how to get vien miner on aternos
first plugin tips???
is it bad to use a forEach loop with every online ProxiedPlayer everytime when someone is sending a message?
Not really. What matters is what you're doing in that loop
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
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
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"??
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
Choco can i have your 2 cents on why you use Eclipse over IntelliJ
because I like it better?
Ronsiv, use attributes to change an entity's generic_max_health
Entity#getAttribute(Attribute)
youre going to have to elaborate
I literally gave you the method you have to use 😛
Get its attribute and either add a modifier or set its base value
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
Attribute.GENERIC_MAX_HEALTH
oh youre still here
Should be some basic Java here ;P

boss.getAttribute(Attribute.GENERIC_MAX_HEALTH)
You can call upon that setBaseValue() to set it to whatever you'd like
alright
i wield to attribute
now
to change it
...
oh
setBaseValue
HA HA
I DID IT
...i think
@subtle blade I just realised in the Bukkit PR I just made there's some random Pom change and there's a reverted commit in there, i've no idea how or what has happened with that? https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/491/diff#pom.xml
Thank you @mellow wave, I misunderstood how that worked.
No problem 🙂
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
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
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
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
how do i make it exist lol
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