#help-archived
1 messages · Page 14 of 1
Thanks for the help
Now onto removeing minecraft commands. Any hints on how to approach this?
I just want people to run commands from my core.
that sounds like a waste of time but go ahead :p
i guess
clear the knockcommands map
Being negative is also a waste of time
give them the permission node?
They have it.
lol
so if it works for op
but not with the permission you gave them
that means its not the right one
the command still works without OP, it just displays the message.
suddenly it works again
let me restart to see if it still occurs
displays the issue again
while the command works
it annoys me.
@tiny dagger It doesn't remove the vanilla minecraft commands it just removes spigot commands.
/minecraft:advancement etc
permission is right there, for the default rank.
that is here.
why does it display the message
it works, but the message.
@velvet halo the minecraft commands are stored in another part
CommandDispatcher for 1.8.8
Yeah that makes sense
I'm trying to figure out if Spigot blocks the vanilla /scoreboard colour/nametagvisibility command? I've got no plug-ins, it's on 1.12.2. I can't make my nametag disappear on the server, nor colour it. It's a local spigot server.
spricht hier jemand auch deutsch?
doesnt block for sure, I have 120 plugins and I can do what you mentioned without a problem
Anyone know how to set up voting plugin, so that certain ranks on the server get other rewards when voting?
If someone has set it up successfully, I'd love to just have the config file sent, so that I can see what's done
probably would help if you specified which vote plugin you are using
Is it safe to cache entire inventory?
He's talking about VotingPlugin
Very creative name
Lmaooooo
No, it's actually called VotingPlugin
heard of BlockingCheatsAndHackersPlugin?
Does anyone know why my server post would have been taken down? I was not given info on why.. it was just taken down and marked as Inappropriate Advertising / spam. Are you not allowed to bump posts anymore? https://gyazo.com/dea0756e6bb62b2da8cebd8963a4e7d9
you can bump once / 24 hours
I believe that I did. I replied to people commenting on the post as well?
Not sure if that overlaps or not
lol @subtle blade you seriously got choco.wtf?? that's a tld??? wat??
wtf.choco.chocosPlugin
Ahh @subtle blade ^ could you read the above idk if you are allowed to respond to this or if we have to do it through the site
@subtle blade I love it, now I gotta get a wtf domain
Does Recipe.ExactChoice ignore item amount?
...
I just ordered my new wtf domain xD
Does Recipe.ExactChoice ignore item amount?
@fleet burrow yup
How do I go about finding info on why my post was taken down?
Why wouldn't it compare amount ahhhh
@frigid ember Were you answering me and my problem with /scoreboard commands? Could it be one of your plug-ins fix it? I'm literally running a clean spigot, and I'm doing the same code there as I'm doing on a vanilla LAN world, only that the spigot version does not give the desired effect..
@solar bloom because it was a "Join my server!" thread. It should have been taken down earlier, we were just backed up on reports
That's the definition of an advertisement lol
Are you unable to do server ads on that forum? I have an old one that has been there for years or so and I have seen a few others
Is this a new change? @subtle blade
It's been there since the rules were created as far as I'm aware. There's "Rate My Server" (where advertisements are masked as "give my server a rating" - really hate that forums), but no. We've always removed threads like that
Though Rate My Server makes that rule very ambiguous and I really, really... REALLY hate that forum lol
I see. Yea I didn't know this my bad, well if you check my account I think there is one from a looong time ago that is still there that may need to be taken down. I will probably just report it to get it taken down.
It's fine. If it's old and hasn't been touched in a while I wouldn't bother
(and don't worry about the warning, it's more of a reference point for us)
Gotcha thanks
ExactChoice is the implementation, heknon. What do you need?
For draft API. Should be undeprecated at this point
Amount shouldn't be considered in a recipe
If you want it to, listen to the PrepareItemCraftEvent or whatever it is
wat
oh @fleet crane not trying to sound demanding or anything, but you'll get my nitro boost when you actually enable screensharing in at least one voice channel (otherwise it's pointless). I know you think we should just use DM but consider that not everyone wants to add people or open DMs up to everyone. Twitch isn't for private sharing. We literally have no other options sometimes, or maybe it's just more convenient, other than to use discord screensharing in a voice channel on the current server. Screensharing can also be an absolutely crucial tool for helping others code, getting help coding, or just helping/getting help in general. It's a lot more convenient and faster than screenshots, that's fore sure. If it's moderation that you're worried about, just enable in one channel. If I had to, and you would allow me to, I'd even volunteer to sit in there basically 24/7 moderating it... no sleep @fleet crane ... (NO SLEEP!) that's how dedicated I am and how badly I (and others) want to see this happen. I know I'm not the first one to ask this of you, and I know that your answer is likely going to be no, but I thought I would pitch my 2 cents in anyway. so there it is.
TLDR: please please please pretty please with sugar on top enable screensharing in at least 1 voice channel.
@subtle blade it had to be said
I don't like reading
the TLDR is for you guys, I hope md_5 reads it
You could have said something racist in that block of text and I probably wouldn't even notice
Change the implementation of the test method
@subtle blade I didn't, but thanks for the idea.
D:
Choco is disappointed
hey guys i need help installing BuildTools
o.O
You only need the spigot jar file it created to run the server @severe hemlock are you trying to make plugins as well?
yes
Which ide are you using
but from what I understand running the spigot jar file will automatically generate a 'plugins' folder
wym
Oh ok, do you already have a server set up?
Ok, so just add the spigot jar file into your server folder and run that, it acts as the replacement for the vanilla one
yep i know
but when I ran BuildTools with the command line i couldn't find a spigot jar file
which is weird
It will place it in the same location as buildtools when your run the command line
so im reinstalling since I had the sense to make a copy of my server's files before doing this (so that I don't have to go through the process of removing everything
ok
maybe i missed it
im an idiot
i left it in the folder where I originally ran BuildTools
thanks
imma just go ahead and mute verification since I don't want to get pinged
also do you have any idea why my datapacks aren't loading whenever I use Spigot?
Someone needs to get a word blacklist and just.. ya know... blacklist those 👀
Hi, does Location#add(Vector) modify this vector or does it return the modified one, while the current vector stays unmodified?
Mix of both
Modifies and returns itself
Location and Vector are both mutable
The vector passed as an argument remains unchanged, though the Location (or Vector) on which #add() is called will be modified and returned
public Location add(Vector vector) {
this.x += vector.getX();
this.y += vector.getY();
this.z += vector.getZ();
return this;
}```
um help im using multiverse and I set spawn using a bed but when I die it just puts me back to the world spawn. is there a way to spawn at my spawnpoint instead of at the world spawn?
is there a way to add a vector to a location without modifying the existing location? maybe like a copy method or something?
Idk if #clone() would do the job?
I'll give it a try, thanks!
clone() would be the correct method to call, yea
You're going to end up modifying that clone, but the one you've cloned will remain untouched
any idea why removing the invisible potion effect after a teleport glitches the client model for a few seconds 🤔
idk
Wish I knew tbh
what do you mean glitches the client model?
the client that got teleported can't see his character anymore for a few seconds
i mean if you want you can come on my server and experience it yourself
hi @frigid ember mir geht es gut und dir?
mir gehts auch gut
how do you set a spawn for all of multiverse instead of setting a world spawn
help!!!!!
also um how do you even get mv-p installed
i tried and it doesnt load
freut mich. was würdest du empfehlen Bukkit oder Spigot?
Hello good, is there any guide for connecting two hosts through iptables?
excuse me, is there a plugin that sets a default spawnpoint? im meaning, (example) i spawn at 0, 100, 0, and i move to 100, 100, 0, i leave the server, and again i am at 0, 100, 0, also, it is for 1.15.2?
omg tysm
how to deal 1 damage to the item? more specifically, to the pickaxe
Damageable damageableMeta = (Damageable)playerHandMeta;
damageableMeta.setDamage(damageableMeta.getDamage() + 1);
playerHand.setItemMeta(playerHandMeta);
It deals a lot of damage so I guess the range for setDamage is 0 to 1. How to get the maximum damage because I don't see such a method in Damageable.
And also, the pickaxe doesn't break. How to force it to break if its durability is <= 0?
I also ran into that issue, gimi just a moment and i'll show you how. The "damage" was straight up backwards to what I thought and you have to manually check the durability and remove the item from the inventory afaik.
damage might actually be durability
Confusing times
damage which is durability, yeah
that progress bar thing that's under the item icon in the hotbar XD
final ItemStack stack = inventory.getHelmet();
final ItemMeta meta = stack.getItemMeta();
if (meta instanceof Damageable) {
if (((Damageable) meta).getDamage() >= stack.getType().getMaxDurability()) {
inventory.setHelmet(null);
} else {
((Damageable) meta).setDamage(((Damageable) meta).getDamage() + 1);
stack.setItemMeta(meta);
}
}
Thats for a helmet specifically, but you can adjust it to work for the inventory or held item itself.
If you do not check the against the max durability, it goes negative for whatever reason and makes the durability go past the bounding box of the slot with a red bar. Weird as hell.
that's what I just encountered
I wonder why vanilla doesn't have that sort of check 🤔
it makes items break fast
Hi, I have a big problem, my server is bot attacked, my server is in online mode but he crashed -> http://prntscr.com/rymq6e
You have a solution for fix here ? 😦
I have an iron pickaxe in my hand, and 205 durability
I broke 1 block and it's 196 now
hahaha I was doing that in a loop
@regal topaz I would suggest implementing safeguards like requiring the "bots" to move and be online for a certain time.
I hope I fixed it
Most bots cannot easily move as rending the world takes up a huge amount of resources for a server per bot user.
No problem 🙂
@mental coral the bot crasher use an infinite bot for overload the CPU
You can check on my screen, on one second, most bot was connected :v
I would suggest blocking malicious ips from the server first and foremost, but unless your provider offers D/DoS protection there isn't too much you can do. By what I see, disabling query was also suggested but I am unsure of how much that can help.
My provider is OVH, he block all DDOS attack but Bot attack is not an DDOS attack, others developers he say me is a "null ping exploit" but he don't have a solution for that
That is still a denial of service if it overburdens and crashes the server, however in reality it is just packet spam. Per a little digging it seems that ExploitFixer by LinsaFTW may assist, but I do not run bungeecord myself and your milage may vary. If you are technical you can implement something such as Fail2Ban by reading the logs and parsing them to automatically ban IPs that consistantly spam that message. @regal topaz
I already use ExploitFixer with FlameCord for try to patch that and is not good :v
im using the antigrief plugin and idk how to configure it
i used it and what happened is that my friend can still break the blocks inside the claim\
Do you use AntiBot as well @regal topaz ? (Same author)
Is your friend an op or administrator ('*' perm) @severe hemlock ?
Yup
@mental coral I try with anti bot and with no (My server is premium)
thanks
It seems to have protections against ping attacks with rate limiting, so I would give that a try.
But your server/network firewall is the best defense if you can implement it correctly.
solution is to packet filter using a set of rules. Like for instance, drop packets that have bad packet ID's etc. Layer 7 (IE, application layer) are much harder to block due to it looking like legitimate traffic.
also why the heck is it that when i use /i it gives me stacks of items even if they're unstackable (like swords)
EssentialsX? or?
How can I change my username on SpigotMC?
also I can't take falldamage
@keen compass you have a solution for disable the bad packet ID's ?
Well, hardware firewalls can do packet filtering but I doubt you pay for one. Not sure how well software firewalls do with packet filtering
@severe hemlock Its likely because you are probably an operator as well. Make sure you do not have /fly enabled however.
essentials.oversizedstacks is what generates that, and as an op you will have that permission by default.
How can I change my username on SpigotMC?
well ill turn off /fly in the future then
kk now i can take fall damage
also why do i have a stack of sharpness 5 diamond swords?
Not sure, that is really not able to be determined. If you did /item (or /enchant on it) to get it and have oversized stacks, it would probably be why.
Hey?
@cold wharf donate $10 or more and the feature will be enabled on your account to change your username - you can see the info on that here: https://www.spigotmc.org/wiki/donations/
who can donate me 5
Oh
i need 5 more to change username
you can't have alts unless you have an actual reason
This is so bad
u cant delete your own resource
you must report your own resource to get it removed
why can only OPs use my mv-p portals?
multiverse-portal portals
how can i make it so everybody can
so im loading chunks using chunkAt, and getting snapshots, how do I know when to unload the chnk?
I mean, I know its not as simple as checking for players in the chunk, I wanna know how to know to unload it\
how can i make it so everybody can
@severe hemlock give non ops the permission
the plugin surely specifies the required permission
use a permissions plugin like luckperms
does Vault work?
vault alone no
you need vault and luckperms
vault iself is nothing as a plugin
it rven has no commands
luckperms just needs vault
permissionsx too
I found the problem with /scoreboard commands not changing name colour nor making the tag disappear. I went through all files in the server and found nothing. Then dicking around with /help I found out that all vanilla commands also has a /minecraft:[command]
Using the /minecraft:[command] I can make colour and nametagvisibility work. But only then. This must be some strange bug?
Vault is an API to hook permissions plugins together for other plugins to use. Alone it does nothing for you, but for developers it makes it far less annoying, FlareStormGaming.
epic thanks xCykrix
I'm using an outdated version, so I don't get the luxury of TextComponent#append(BaseComponent[]), so I have to do this a weird way
TextComponent component = new TextComponent(messageBuilder.create());
if (player.hasPermission("skyvale.chat.color")) {
component.addExtra(new TextComponent(TextComponent.fromLegacyText(messageColour + rawMessage)));
} else {
component.addExtra(new TextComponent(messageColour + rawMessage));
}
The bottom bit is being ran
it persists if you run the top one
I know this is the common pitfalls part of the chat component API
but I don't know how to get around it without letting them colour
@frigid ember I am an actual idiot. I made this whole thing to make some skripts for a friend's server using Skunity. As it turns out, Skunity is why it doesn't work. Which makes 0 sense because Skunity is only supposed to add the ability to make custom skripts for the server, instead of plug-ins..
I reinstalled skunity plug-ins, and now it doesn't work again..
Sorry about the whole mess. I really could not understand why skunity plug-ins would mess it up. But uh..
Better to use Player.sendMessage() or Player.spigot().sendMessage()?
use Player#sendMessage unless you want to send a text component
the Spigot#sendmessage is for text components
I have a question about one of my posts that was deleted today,
http://webcache.googleusercontent.com/search?q=cache:https://www.spigotmc.org/threads/guide-bartys-server-optimizations.424817/
I do not see what is different between my post and celebrimbor's optimization guide when referring to forks, I specifically say not to use spigot support for forks just as celebrimbor did, but my post was deleted without warning and his is still there? what can i do to prevent it from being deleted in the future?
vault isn't really necessary for permissions although can still be used for it. What it is most handy for is connecting with economy plugins though
I know.
But since he barely knows what I was on about.
to a user, vault is useless.
To a developer, vault is useful.
You cannot interact with vault in game using commands
@keen compass
Heard that Spigot promote plugins that are frequently updated?
how
that is true, vault is just a utility plugin for other plugins
yeah
for a user its just useless
he seemed clueless so we didn’t need to go into so much detail
just he needed permissions, i explained permissions
I don't think there's any actually "promotion" @solemn grove
It's more of the most recent updated plugins are shown first, so if you update frequently your plugin will get shown first 😛
yeah
i just realized
tha why i said nah
i say time your updates
at times where not many upload
then more users might see it
now with the corona virus its hard since everyone is at home
hard to find a time where people at work or so
@sharp hollow Well I guess breaking down updates into smaller pieces have benefits
yea
¯\_(ツ)_/¯
don’t spam updated in a day
it can get annoying for users
id say every week seems good and stick to a day so your users expect it
like every friday is an update
^ and large-ish updates so they don't get bored quickly
that is useful if you already have a decent playerbase
or “fanbase”
not many people actually look at the developers of normal plugins
unless it is so good
like dont act like you know who created the homes plugin you use
Hey everyone... I have run a minecraft server on Spigot for many years... We were at a 1.10.2 for many years... then last fall upgraded to 1.14.4... and it runs like crap on my Linode box... Apparently this is a known issue...
https://www.spigotmc.org/threads/very-high-cpu-usage-and-lag.391400/#post-3523138
Can anyone report any significant speed gains with subsequent Spigot releases?
or you lonby
aight thanks for the tips
np np
@mild mirage with the additions of villagers AI and pillagers event eat up a lot more CPU than the previous version
and i remember there was a bug if pillager can't path find to a location the server will keep trying hard until the whole thing burns down
My server used to run in under 20% CPU, and since upgrading it is 80% plus... they were talking about optimizing with the 1.15 release... but i have noidea how fundamental those optimizations might be or how much they'll help...
worth trying
Which CPU would be better to put in my server? (both cpu's are roughly the same price, ignore the price on the screenshot)
arguably either will get you great perf, pro of the xeon is its a newer gen, but other than that I'd say get the i7, higher per-core clock speed (which is what mc needs) and more cores to run more servers concurrently
^ For Minecraft, almost certainly the i7. You have the option of overclocking that with a motherboard that supports it, too. You just won't be running on "server-grade" hardware with it.
The i7 looks better on paper but I heard that the xeon will be better because its designed to run 24/7 , while the i7 isn't?
honestly i wouldn't be worried about lifespan unless you do plan on heavily overclocking
I've been running my i7 4790k in my server for 5 years+ now
Yeah. The Xeon is definitely built for it, but the i7 can certainly handle it, too.
no problems, even overclocked it slightly.
The Xeon and the i7 require different boards, I think
If you can get it, I'd go for dual Xeons. Lots of performance head room and they're meant to run 24x7 and are very reliable.
imho
The bigger differences are going to be server-grade features. A motherboard for the Xeon would likely have a management interface, which might be useful, or practically necessary (alternatively using an IP-KVM with the i7) if you're colocating. Likely to find better reliability in server boards, too, although I've never had any problems with running mid/high-end consumer-grade hardware 24/7 personally.
ECC RAM support, etc as well.
Not that this board supports that Xeon, but it has a special place in my heart for great value with dual sockets, dual 10GbE, and 14 SATA ports. https://www.gigabyte.com/us/Server-Motherboard/GA-7PESH2-rev-10#ov
depends which xeon you are comparing @marsh dew I7's are pretty much Xeon's but built for desktop since they contain everything that Xeon's have had already. There is some Xeon's that have the same socket as some of the i7's
Fair enough and very true.
I thought about putting an Xeon into my computer

but unfortunately they require a large heat sink
Don't really want a monster of a computer with parts hanging out everywhere so I am going to upgrade it to an I7
Hi everyone, i'm new to server hosting and had a little server for a few friends. The ip was only given to my close friends and nobody gave the ip out. Yesterday we had a random person join the server claiming to just be looking for new servers. Does spigot post your server online anywhere? How could someone possibly find my server? Could this possibly be a security issue for my network?
There are bots that scan the internet
You can search for mc servers on shodan for example
Also maybes mc server used the IP before you
Spigot doesnt post your server anywhere
Use a white list
interesting thanks for the info
how can i disable the outdated spigot message? i dont want to wait 20 seconds when restart my server, and i have the latest version...
use paper runs
theres a flag for it
-DIknowWhatImDoingISwear
add that as an argument to your jar
(its not a joke)
looks look you actually need to put it before the jar name
okay
java -DIReallyKnowWhatIAmDoingISwear -jar spigot.jar
Thanks so much, @harsh anvil
👍
hmmm, I just tried it, doesnt seem to be working @harsh anvil
This is my start.bat
java -Xmx8g -Xms8g -DIknowWhatImDoingISwear -jar B:\Minecraft-server\spigot-1.15.2.jar nogui
how can i disable the outdated spigot message? i dont want to wait 20 seconds when restart my server, and i have the latest version...
@storm willow then you do not have the latest version
was that flag removed? pretty sure it works still
you forgot the 'really'
@fleet crane i installed the latest minutes ago and then continue saying it
Let /version be the judge of that
dont download from 3rd party sites
Even if hypothetically the outdated check was broken, disabling it would not be the solution either
[Server thread/INFO]: This server is running CraftBukkit version git-Spigot-800b93f-8160e29 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
That's the problem.
🤦♂️
you need to use buildtools
use buildtools
That site has nothing to do with spigotmc.org
I wish they would stop posting incredibly old builds
So where do I download the last one?
download and run buildtools
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
well ok then xD
Run that jar and it will download the latest version
I literally linked that lol
is there a way to "naturally" damage an entity? taking armor and stuff into consideration?
one link is not enough? lol
Yeah Ithought it might’ve been the direct link
ok, thanks
is there a way to "naturally" damage an entity? taking armor and stuff into consideration?
@harsh anvil Maybe call EntityDamageEvent?
EntityDamageEvent(Entity damagee,EntityDamageEvent.DamageCause cause, double damage)
np, tell me if it works
what are the damagemodifiers?
Hey guys
So for the run.bat file
That I open
To start my server
What do I put in there?
What would be the command cmd has to execute
For the server to start
@harsh anvil modifiers? Like if the entity has armor the damage needs to be different?
can someone help me
Cause those 2 are what I cant figure out
My server keeps crashing and I cannot figure out why
@harsh anvil I think it handles automatically, test it
@Deprecated
public EntityDamageEvent(final Entity damagee, final DamageCause cause, final double damage) {
this(damagee, cause, new EnumMap<DamageModifier, Double>(ImmutableMap.of(DamageModifier.BASE, damage)), new EnumMap<DamageModifier, Function<? super Double, Double>>(ImmutableMap.of(DamageModifier.BASE, ZERO)));
}
Seems like i can just call this deprecated method and not worry about it lol
@wind dock java -jar spigot.jar
anyone? hello lol
@pastel basin that's all I need to do?
How do I adjust the ram, cores and threads
To allocate to the server
@safe ocean errors / timings would be a start.
@wind dock
- Enter is not a space bar.
- It will automatically utilize the resources available, you cannot "add more".
- There are many resources on creating a server out there.
You can adjust the ram with JVM flags. (-Xmx#G, -Xms#G, etc.)
Calling the event wont help
oof
@mental coral actually, I'm running it on the same pc I'm running minecraft on
@mental coral can I pm it? its a .txt file
so Bukkit.getServer().getPluginManager().callEvent(new EntityDamageEvent(event.getDamager(), EntityDamageEvent.DamageCause.CUSTOM ,2)); is not an option?
DM it and i'll post it, but I would suggest verifying your discord when you get a chance.
@safe ocean well I can already tell you why.
(: thank god
13.04 22:42:32 [Server] ERROR Could not load paper.yml, please correct your syntax errors
13.04 22:42:32 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while scanning a simple key
13.04 22:42:32 [Server] INFO in 'string', line 118, column 7:
13.04 22:42:32 [Server] INFO disable-unloaded-chunk-
13.04 22:42:32 [Server] INFO ^
13.04 22:42:32 [Server] INFO could not find expected ':'
13.04 22:42:32 [Server] INFO in 'string', line 119, column 1:
13.04 22:42:32 [Server] INFO ^
This isn't paper support either, but your YAML is malformed.
@harsh anvil cast the entity to Damageable and use Damageable#damage(double amount)
ahh
so what do I do?
fix your config
Run spigot
Either regenerate your paper.yml or fix the lines described in your error(s).
^^ that too
@mental coral also waht do u mean by enter is not a space bar
just ask everything in one line bruh
^
Idk that's the way I send messages
just use google for this dude
https://www.spigotmc.org/threads/start-bat-code.91155/ literally first result
What did u search
spigot bat file ¯_(ツ)_/¯
Oh
I searched up how to start up a spigot server
It gave me a bunch of routing and stuff
Do this with your Router and all that
That is required if you are hosting on your own network, following those guides are required to allow others to connect from outside your local network.
Its port forwarding specifically.
^ you dont need to do that for test servers, i'd highly recommend you dont lol
ive actually had rando's join my test server before lol
^ same, dont do that for test servers
https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.15.2-R0.1-SNAPSHOT/
Hi, which file should I select for the 1.15.2 SpigotAPI? There's just so many files and I would have no clue which to choose.
choose which ever has the higher number and most recent date
I would recommend using a dependency manager such as maven or gradle, but it should be spigot-api-1.15.2-R0.1-20200410.011959-86.jar I think.
you usually dont select any, just add that url url to maven i think, it'll grab everything you need
@dense pike you using maven or gradle?
Its ❤️
yeah i use it all the time
im surprised spigot has a wiki about not using maven lol
well, enough people cried about it probably
this comes up far too often, what do people think wiki means >.>
noun
noun: wiki; plural noun: wikis
a website or database developed collaboratively by a community of users, allowing any user to add and edit content.
I'm sorry. I guess I should have used common sense. WIkipedia - everyone edits that. Doh. Too much time on my hands apparently.
okay what does this mean *** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
it means follow the instructions on that page
tl;dr download https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar and run it
Before it comes up, https://www.spigotmc.org/wiki/buildtools/ for instructions on how to run ^
Is it possible to add "variables" or something similar in ItemMeta lore? Trying to add custom stats to a weapon and want to store the data "on" the weapon if possible instead of just in text lore form. Thanks
could store it as metadata
@ocean anvil why dont you store the data in a PersistentDataContainer?
either one of those will work
I have an Inventory. When I open it for the player, the player does not see anything there. And only after the player clicks on any slot does the content appear.
How can I update the inventory for a player?
I asked a friend he suggested:
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> {
player.updateInventory();
});
OR
for (int i =0; i < inventory.getSize(); i++) {
inventory.setItem(i, inventory.getItem(i));
}
But all this did not help me.
Core: Spigot 1.14.4
We'd need a snippit of how you create and serve the inventory to be able to help, as depending how you created it would be how to solve it.
Not going to lie, I'm not sure what a PersistentDataContainer is lol - tried looking into using metadata but doesn't that only work on entities? I would need to apply this to an ItemStack I'm guessing since I want to initialize the "variables" when the item is crafted
would there be a reason why Entity#setFireTicks doesn't work? I have the only plugin on the server and there are no references to EntityCombustEvent
when I try and join my server it says io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no furrther information
what's that?
Check console for errors, and how are you hosting the server?
the console is blank
no it didnt show anything
can you execute commands in console
How are you hosting the server then? Paid host? Own computer? etc.
own computer
What address are you connecting with.
my ip adress
Try localhost
^
use localhost
how do you local host?
Just type in the word localhost
ok i'll try
ok
@wanton delta snip what you did so I can shove it somewhere in my test plugin? I cant see why it wouldn't work.
entity.setFireTicks(ticks);
lol
ticks being 100
entity just being a player
ive confirmed the code hits it
i just have no clue why its not activating
because as far as i'm aware, using Entity#setFireTicks doesn't call any events
so it cant be cancelled
IntelliJ Breakpoints is saying that line of code is being activates so
¯_(ツ)_/¯
im at a loss
Was just wanting to make sure it was specifically the correct entity and to make sure the code wasn't beign wonky. ¯_(ツ)_/¯
idk its just super confusing
you cant "cancel" setFireTicks as far as im aware
I've set a breakpoint at the actual spigot method setFireTicks, and nothing else is activating it
(e.i. setFireTicks(0) is not happening)
i tried doing localhost and it still isnt working
can you type commands into console? make sure the console isnt overloaded
i can type commands in
Are you running it on port 25565?
yes
@wanton delta snip the code for me so I can try exactly what you are doing cause otherwise I aint got a damn clue lmao
trust me, it has nothing to do with how im activating the method lol
ScheduleCrumble.addTask(() -> {
for (Player player : Bukkit.getOnlinePlayers()) {
player.setFireTicks(20);
}
}, 100, 20);
(Just a sync repeating task)
because its being activated
I trust you, but if I cant replicate it then its smth your end.
yea i know, which is why im asking if its possible (although im almost sure its not) that it can be cancelled somehow
because it works
afaik, it is not
sometimes
does anyone know why I cant connect to my server?
i personally dont have a clue, best thing i can recommend is
- deleting the spigot.yml and server.properties and restarting
- removing plugins one by one
i dont have any plugins
and you're running spigot
yeah
Well if he was just setting it up...
what version
Generally you get it working before plugins.
1.15.2
I could suggest using 0.0.0.0 as the connect address too, but that shouldn't make a difference to localhost.
Have you changed any files since you installed the server?
nah
localhost is 127.0.0.1
the 0.0.0.0 didnt work either
Same error?
My best suggestion would be to stop the server, delete any files that arent related to the world or customized and let it regenerate. Once it does that try either localhost or 127.0.0.1 and see if that helps.
Does it show you trying to connect in the console or nothing at all?
Generally that error is if it cannot connecft the server via LAN.
If the server list says "cant connect to server" dont try to connect...
doesnt show anythin on the console and the port is 25565
put your latest.log into pastebin and share the link
what is latest.log?
in your logs folder
it too long, the message
What internet speed would you need for 100 players?
this is what it gave me : <script src="https://pastebin.com/embed_js/nCFV4jyu"></script>
i got it just fine
yep
oh wait i didnt paste every thing
oh ok
Server is binding on 192.168.0.11:25565, so you could try that as well while we poke at the logs.
ok
says u stopped the server is that true
I stopped it when you told me to stop it
If that doesn't work, my best suggestion is restart minecraft and make sure you accept any security prompts it may give you. Seems to be network issues because the server is starting fine.
Probably stopped it to copy logs i'd image.
You dont have to stop it to get the logs.
yea check firewall
^^
how do you check firewall?
totally forgot about that
look for it
im not sure how to explain that to you
go to your firewall
https://www.howtogeek.com/wp-content/uploads/2019/07/img_5d41e693163ac.png
If you see anything like that, allow access.
Otherwise, follow along with ^
Would this be a good place to ask code questions
yes
I allowed it through the firewall a while ago
wanna check again
you mayve allowed it through private networks
but i believe you want to allow public
Depends what the network is connected as.
Have you port forwarded? Not sure if this would make any difference but someone else could try connecting to it
k one sec i'm gonna run like 2 tests
He's trying to connect to LAN, port forward shouldn't make a difference.
i've port forwarded it
I know but I was saying if we could get someone online to connect we would know if it's a server or an issue with the client or smth
dumb suggestion but all I had to contribute lmao sorry
We're all kinda just grasping at straws at this point.
you need to rule out dumb ideas before you get to the good ones lol
fwiw leave server-ip in server.properties blank unless you know what youre doing
yea lmao
I can't even debug my own code rn
I don't think its causing your issues in this case, but something to keep in mind
@ruby plover
fwiw leave server-ip in server.properties blank unless you know what youre doing
I should've noticed that tbh.
I literally looked at the bind ip
ok i'll keep it blank
entity.setFireTicks(ticks); for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { System.out.print(onlinePlayer.getFireTicks()); }
Should I put the schematic file in the worldedit folder?
ok first before i ask code questions, if i'm deleting my world folder when my plugin disables, should i unload chunks before or after
produces
-20
160``` just as i thought
-20 for first player
160 for second
this is
infuriating
i dont know what would be causing this lmaoaooo
I'm... not entirely sure.
I'm like 100 bajillon percent sure you checked this, but they aren't in creative or smth right?
combust event cant cancel setfireticks, tried that a moment ago
nope lol
You only have your plugin present, right?
my plugin, protocollib
i'm not sure if this is bad but on the console it says "Can't keep up!"
it means its skipping ticks because it doesnt have enough resources
not related to your problem
ok just checking
its bad in a sense where you wouldnt want to see that on a production environment
Make sure you set the server-ip blank and restart. If autodetects that information and could cause issues if you set it wrong.
means lag, basically
ok
can i ask about plugins help in this channel?
help me T3T Should I put the schematic file in the worldedit folder?
alright i can't get any improvements, gonna need some help. I'm deleting my world folder in onDisable(), it works fine. the folder gets deleted. The log gets filled with chunk saving errors which I want to have not happen. Any way to avoid these or can I just move on, considering that my end goal of deleting the world folder happens and starting the server again works fine.
The chunk saving happens last. Are you running this server yourself or with a paid host (Multicraft, etc.)?
@leaden heath its because the server is trying to save the world after its disabling your plugin
testing on a local server rn, but hoping to move to mcprohosting when i get it working
@leaden heath plugins cannot make the final modification to a world. I'm not entirely sure you can disable the final save.
If you run it on a linux server, you can have the restart script automatically remove it
Should I put the schematic file in the worldedit folder? please help me ...
if your final goal is to prevent block changes
@wanton delta could you send me the jar without anything you dont want shared so I can try it on my end? I'm literally clueless as to why it wouldn't burn people.
yeah, i dont use linux but I would just delete the folder in my bat file when starting the server, which would work for me too. then I wouldn't have errors. but idk how to have a custom bat file on mcprohosting
i would recommend World#setAutoSave
Does that disable the final save on /stop tho?
Never really had a reason to do that.
honestly im not sure
All i'm looking for is having a new world
Uhm
So if the world is deleted by the time i start again, that's all i want
perhaps on startup?
load: "STARTUP"
wait
instead of postworld
dont use setAutoSave
try to use
Bukkit#unloadWorld(world) then delete afterwards
that would be my recommendation
^ either that or before world loads
unloadWorld i believe would save it, prevent it from being resaved after disable
Should I put the schematic file in the worldedit folder? I have a schematic file, so I have to load the map, but I don't know how to load it.
worldedit/schematics
i found this thread
maybe you could do what hes doing
after you unload the world, delete it and replace it with a zip
What if there is no schematics folder in the worldedit folder?
create it?
@mental coral heres my repo https://github.com/smartin1018/redwarfare if youre interested
good luck deciphering it
i dont think it will help
just create schematics folder ?
xD I was gonna run it on my server was all. Didnt really need to read. What folder would I be lookin in?
I don't have the schematics folder
core -> condition -> conditionManager:208
you dont need to check the logic because the code reaches taht point
ive tested numerous times
thats why im saying i dont think it will help
im not sending a jar because that has sql info and redis info :p
ahh, k
hmm
i think i can set a new breakpoint
because default fire tick is -20
so maybe test for -20 instead of 0
that didnt get anything
there must be a method that is resetting the player somehow
thats being activated
and i wouldnt know what taht is
Hey guys quick math question:
If I have for example a vending machine that gives out candy but has a probability of given out candy A for a maximum of 25% and candy B for a maximum of 25%, then it randomly chooses one of those candies to give (obviously 50%), how would I figure the actual probability of getting candy A?
It sounds dumb because between candy A and candy B it should only be 50%, but using a range of probability it would be modifying the chance (aka java's Random class)
A / (A+B) ?
is probability of A out of A & B?
unless I misunderstand what you mean
i think they mean setting a weight and using a pool of various weights for a table of some sort
like they have object A and B which both have weights of 37 for example, and wants to find out the probability of either
in which case your equation would be correct
I think you are right
thats a first lol 😅
So if I have Candy A, B, C and they all have 10% chance, and want to find the chance of Candy B, it would be B/(a+b+c)?
yeah
okay
B/A+B+C would be 10/30 = 1/3rd which is correct
so quick question.
a: 5
b: 15
c: 25
d: 34
e: 1
sum of a-e = 80. 34/80 = 0.425*100 = 42.5%?
Right?
Hello! Is there a way to get spigot timings in json?
Aikar Timings isnt part of spigot so it wouldnt be via the spigot api
although there is probably a way to get it
@hoary tusk /timings report pastes a document in timings/timings.txt
you could read that file and try to parse to json
@wanton delta Is there a way to get it through Aikar's website
For example https://timings.aikar.co/json?id=IDHERE or something
Basically, for the system I want to make, I won't have access to files, just the timing URL
It'd be nice if I could contact Aikar but their DMs are locked
^ Nevermind, I just went through the source code and found it, thank you!
interesting, i never heard of timings having a json component
Error:(7,46) java: package org.bukkit.craftbukkit.v1_15_R1.entity does not exist
Obviously this is a dependency issue; so the Bukkit API clearly needs adding to Maven's pom.xml. But upon adding it, Maven doesn't seem to recognise the bukkit dependency now. Won't accept it or anything.
yeah u always need the bukkit dependency bud
I'm trying to add it in
It's not recognising it. Could you link me to a source with the relevent info with adding bukkit as a dependency in 1.15.2
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
</dependency>```
You need to run BuildTools locally and then use <dependency> <groupId>org.bukkit</groupId> <artifactId>craftbukkit</artifactId> <version>1.15.2-R0.1-SNAPSHOT</version> </dependency>
I did run BuildTools locally. I'm using it as the dependency jar
Okay cool - then in your pom.xml add the above dependency block. CraftBukkit and Bukkit are separate - Bukkit is the API but I think you are using CraftBukkit implementation imports, which requires the CraftBukkit dependency in addition to the Bukkit dependency
i'm not sure if you already did it, but I'm pretty sure you need to re-import everything if you don't have auto-import enabled, but I could be mistaken
Heres a noob question: How would I re-import?
Yup I pressed that
Its still highlighted as red
Dependency 'org.bukkit:craftbukkit:1.15.2-R0.1-SNAPSHOT' not found
Says its not found.
when hovering over highlight
can you try org.spigotmc:spigot instead? maybe buildtools doesnt install craftbukkit in the local repo - i just looked at mine and it isn't installed
Is it possible to see how many items were crafted on CraftItemEvent (if the player used shift to craft all possible for example)? If multiple are crafted, only the first one seems to be accessible
In the code?
no, leave code as is. in your pom.xml do
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
</dependency>``` instead of the craftbukkit one
I think you can and everything should work fine since spigot depends on the bukkit api. so yeah feel free to go ahead
On compiling, the process terminates. 🤦♂️
oof, well the no red highlighting is a start at least. can you try running the command "mvn clean package" in your project directory? this should create a jar in the target directory
I think Maven does not like me
in intellij you can also on the right side click "maven" -> "lifecycle" -> "package" I think and it will do the same
That's exactly the process I'm using. It's terminating.
Maven -> Lifecycle -> package
ah ok - any specific error? :/
It complies then it says Process terminated.
Theres some lines but its way too quick for my eyes to register
then the screen clears with "Process terminated
All it shows; unforunately.
Helpful, right?
haha - can you click on the "! BoatPing [package]" above the "! Process terminated" and see if it shows anything more?
Yup ahead of you
Just noticed that
Its says that the bukkit repository is missing.
[ERROR] Invalid artifact repository: URL missing for repository bukkit -> [Help 2]
I thought I didn't need it?
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'repositories.repository[bukkit].url' is missing. @ line 64, column 21
[ERROR] Invalid artifact repository: URL missing for repository bukkit @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.jacobtyrrell:BoatPing:1.0-SNAPSHOT (C:\Users\me\IdeaProjects\BoatPing\pom.xml) has 2 errors
[ERROR] 'repositories.repository[bukkit].url' is missing. @ line 64, column 21
[ERROR] Invalid artifact repository: URL missing for repository bukkit -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/InvalidRepositoryException
``` full
Oh - sorry - you do still need the <repository> block. You can remove the <dependency> block for bukkit
Can you provide the repository block please?
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>``` is the spigot wiki recommended repository
Yup, actually shoulda linked this earlier, would've been helpful 😂 https://www.spigotmc.org/wiki/spigot-maven/
Haha no worries.
go ahead and remove the bukkit repository block, yup
My brain isnt working correctly
all good man, that was me last night 😂
hey, I'd like to throw in a question as well. I wanted to give guice a try as I saw the following tutorial on spigot, but I ran into some problems https://www.spigotmc.org/threads/tutorial-spigot-plugins-dependency-injection.295218/
it first started with the java.lang.NoClassDefFoundError error, that I could fix with building the project through executing "clean package" with the maven command line.
but then I get the following error:
https://pastebin.com/dp7Vx2uC
there are the following classes:
https://pastebin.com/EQJFmyB0 (main)
https://pastebin.com/QSfQSTn1 (listener)
https://pastebin.com/TDSg4syy (command)
i guess there is something i miss while getting to use guice.
It basically has a problem with Guice using the .createInjector method, but I dont get why since its like its said on the tutorial.
Cheers @drowsy hinge
Hi! Back again: New problem! (you probs hate me now)
http://prntscr.com/ryszve
So I'm having a unexpected response. I'm trying to return the ping of a player. It's showing that it's 1380ms which is incorrect since, this plugin is on a localhost server so therefore should be 0?
Code function:
private int getPing(Player p) {
return ((CraftPlayer) p).getHandle().ping;
}
I guess developers would call this a illogical error?
Okay... I jsut ran the command again
and It's 1ms
Weird.
Anyway I guess problem solved?
dumbass question, I know, but what's the technical name for the title text above the hotbar? I found some old code referencing it as the action bar but I can't find that in the docs
The green one?
the one literally right above it, or 20+ pixels above it?
https://imgur.com/7jsP1dq
this thing
You can edit it with /title <player> actionbar ...
Would I have to manually run the /title command as the player or something?
That seems like such an obvious function to have
You could probably run it as console
I have my action bar done with ProtocolLib
Could use dependencies?
that's for titles, yeah?
is it not that ^
I tried using setTitle but that's for big main titles that take up your entire screen
what is the subtitle part?
Title part but smaller
@final verge possibly a new PR for you because Player#sendActionbar isn't available on Spigot 👀
Nevermind about that, it's already in Spigot 🤔
ah i wasnt sure
All good, I thought subtitle would be it at first but unfortunately not
I probably would find the actionbar useful
it is pretty useful
Yeah, would be pretty cool to have a native implementation
it is in spigot
There is a native implementation, found it :D
just not that method
yes
Ooh
courtesy of this incredible person https://www.spigotmc.org/threads/tutorial-send-actionbar-messages-without-nms.257845/
Im curious how is it a chat message type? Can you explain the intention behind it please? 🙂
because thats what it is?
🤔
why have sendChatMessage, sendSystemMessage, sendActionBarMessage
when you can just have sendMessage(ChatMessageType
Sorry.
ahhh I knew I saw something one time
What are Nether quartz called in Spigot API, for some reason only Material.NETHER_QUARTZ_ORE appears, but I just want the nether quartz.
Just Material.QUARTZ i think
Ah okay, thank you
mhm
Kind of off topic to this discord, but uh
For a bungee cord server, should using the luck perms bungee cord plugin be good, or is the bungee perms plugin good enough
The only permissions I plan on making globally are like, staff permissions
So then maybe luck perms bungee cord plugin is okay then? idk
Really just personal preference I like Luckperms for bungee and spigot
others may not
^^ I use Luckperms for both
Alrighty then, thank you, I think I'll stick with that
I've been using luck perms for my server
I usually connect them with a MySQL database
@gloomy flower The main reason we dont use LuckPerms on bungee is that there are way less permissions we use specific to bungee and those permissions are modified way less often. We use the default group in the cofig for most people and you can setup custom groups within the config. We also run bungee on a very minimalistic server so we try to trim the overhead when it is easy to do so. You dont actually need an extra plugin if you only have a handful of permissions, as it can have all within the main config... However it is more of a pain to edit that way than using LuckPerms, so if you plan on editing even semi-often you will want LuckPerms... It is really up to your tastes... LuckPerms is by far the best permission manager though so if you are going to use a plugin always go that route
Ah I see I see
Thank you for that response, really opens my eyes
Like I said, I'm new to the bungee cord scene
But I'm not new to Luck Perms
So I guess having luck perms is just my overall best bet to setting it all up
I have the network set up at this point, I'm just really trying to pinpoint all the necessary plugins I need for my hub server, my bungee cord proxy, my main server, and a test server. Quite a handful tbh xD
hey i run a 1.15.2 server what do i need too make it so all previous version can join ??
Preferably you don't do that because you're depriving players of features
well its impossible to make all previous versions join
I can't help you with it but I know some people use some combination of ViaVersion, ViaBackwards, and ViaRewind to accomplish that
Just know that we do not support protocol hacks. You're practically on your own
^
Is there such thing as stopping a player from being set on fire other than setFireTick and EntityCombustionbyEntityEvent
What other way are you looking for?
its not that im looking for another way to do it
its that my player is being prevented from combusting.... and ive put breakpoints at setFireTick (in the spigot class) and it only fires when i fire it
but somehow players still arent getting set on fire, when my plugin is the only one... idk if theres something else i should be looking for
Yea because you're the only one calling that method
(i believe the breakpoint is detecting all calls not just from me)
(i set the breakpoint in the spigot code not my own, if that makes sense)
(but idk)
Right but you're calling the API method. NMS doesn't call API methods
Only Bukkit plugins do
does putting it at craftplayer make a difference
No. CraftBukkit is implementation. NMS makes no reference to it either
craftentity
ah ok
so is there a place i could put a breakpoint to detect changes that would affect combustion
im not really asking for a solution to code... just another way of debugging because i feel like ive thought of almost everything at this point
I need help, please, how do I upload a file so I can download it in other files and then transfer it to another folder? it is that in athernos it does not allow to upload files, and I need if or if to upload a .nbs file I am using google translator I do not know much English I am from Uruguay
Though really, if the issue isn't occurring while your plugin is not enabled, you're probably doing something silly in your plugin
i know... im just tryign to find out where its coming from
i want to use the debugger to track it
If Aternos does not allow for file transfers, it does not allow for file transfers. You cannot upload a file
Ah so you mean itd be ok to put it at net.minecraft.v1_15_R1.Entity.fireTicks?
There is not. You're using a free host. These are some of its limitations
Yes, Martoph
great thanks for that info
well, thank you very much, I suppose I will cry, 😭
i thought i was familiar with java but i need to learn more about how it works 😅
yea :p
i wanna know more about implementations and how the jvm works.... but seems very complicated
i think the best thing to do is just practice more
could i get some help with my server
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.
i have been able to run my server for ages now it wont work
it says C:\Users\dimit\Desktop\MiniCraft>java -Xm1024M -Xms1024M -jar spigot.jar nogui
Unrecognized option: -Xm1024M
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
C:\Users\dimit\Desktop\MiniCraft>pause
Press any key to continue . . .
please help idk what to do
use
missing an X @sturdy inlet
-Xmx1024M instead of -Xm1024M :p
should be Xmx not Xm
Also some very strange values. mx and ms should not be equivalent
really... i always see them equal.
i cant give it more then 1gb lol
wow you had that ready lol
