#help-archived
1 messages ยท Page 24 of 1
lies
what
How much are you paying ?
@sick citrus Works now ๐ Thank you so much!
with a skript do i install like a normal plugin PLZ
@sick citrus Dont say anyting about install
and what would i click new file or new dir or upload
@frigid ember for that price it could be either really. But if you're really ready to pay 70$ a month, I strongly suggest renting an actual dedicated machine, that you KNOW is a dedicated machine.
its my first time buying one
'480 gbps' suggests ovh
it does.
their cheapest dedicated server with 64gb ram (on soyoustart) is $66/month
and it's never in stock
he's being advertised a server with 64 gb ram
for a network u do
32 is WAY more than enough for most applications, even networks
https://ramshard.com/hosting/minecraft - I got the parrot tier plan yesterday. 36,00 US$ Monthly for 12288 MB
cheapest ovh non-sys server is $69/month which only has 32gb ram
kimsufi doesn't offer 64gb like solo claims
To be honest I'm using a file server for my minecraft server
best case for him is probably a soyoustart server
and it works absolutely great up to 400 players
wym by file server
and i doubt the hosting company is running a profit of $4/month, and is also absorbing the setup fees
I mean an actual file server
16TB of hard drive, poor CPU, 16Go of ram
and a crapload of bandwidth
but I don't recommend getting that
Heyo! I'm curious if it is possible for players who join my server to automatically get a chat tag? Right now they have to manually do /tags (I'm using the DeluxeTags plugin)
get Ovh Rise1
@amber monolith well yeah, you can code that yourself
ยฏ_(ใ)_/ยฏ
Also Ovh rise1 is 52โฌ a month for 32G, and 66โฌ a month for 64G
There isn't any plugin that might help me with it otherwise?
and I suggest keeping the 2x2To hard drive and setting up a ramdisk
well, @amber monolith probably, but we don't know all plugins by heart
especially since most of us code our own
Understandable, I was just wondering that's all.
I suggest you browse the Resource on spigotmc.org, filter by "tag" and look for one that does it automatically
or keep your plugin and find one that launches the /tags command on player login
or do it via permission plugin
there's just so many ways
I see. Thanks.
@sick citrus Soyoustart is great. https://cpu.userbenchmark.com/Compare/Intel-Xeon-E3-1230-v6-vs-Intel-Core-i7-6700K/m268848vs3502 Look at the processor comparison.
The xeon for Rise 1 isn't that good
Or ask someone for a small plugin, that takes like 15 minutes to do :} @amber monolith
lol husker, dont look at benchmarks
No it's fine, don't want to bother other people with it.
lol don't be stupid
that's a crap i7 tho
But it's 16โฌ a month, and I highly doubt that, save from worldediting, you will ever max it out.
If i share my screen while hosting my server my ip gets put in the console on join, is it possible to hide that something like the same way as event.setjoinmessage
@narrow crypt why do you care if your IP is showing ? not like anyone can do anything with it really.
I just wanna
Well then don't show your console in stream :}
haha man
but they use your ip to connect to your server
never thought of that
yea im talking about making a plugin
so maybe there was a option to change that console message?
not that I know of, but maybe
or disable
let me have my privary preferences xD
hahahah pleasseeeeee
are you on linux ?
but the server the plugin will be for if it works is linux based
xD
E3-1275 v5 @ 3.60Ghz
64GB DDR4
1Gbit uplink
480GB SSD
480Gbps ddos prot
CentOS 8.1
mariadb, httpd and multicraft
thats the stuff
eww multicraft
I mean there's probably somethint else going on on your machine. Are you absolutely sure there's no TPS lag ?
can you give /timings ?
@narrow crypt
you can launch the server like this
java -jar spigot.jar | sed s/<your ip>//g
it will replace "your ip" with ""
well with a blank string
ah okay
ill search furthur since i want to hide everybody's ip
thanks for the effor
well you can as well
just use a regex instead
hang on
java -jar spigot.jar | sed s/\(\(1\?[0-9][0-9]\?\|2[0-4][0-9]\|25[0-5]\)\.\)\{3\}\(1\?[0-9][0-9]\?\|2[0-4][0-9]\|25[0-5]\)//g
something like that
or you could do
java -jar spigot.jar | sed s/\(\(1\?[0-9][0-9]\?\|2[0-4][0-9]\|25[0-5]\)\.\)\{3\}\(1\?[0-9][0-9]\?\|2[0-4][0-9]\|25[0-5]\)/<IP REMOVED>/g
can't get to that rn
there you go
java -jar spigot.jar | sed -r "s/(\b[0-9]{1,3}\.){3}[0-9]{1,3}\b/IP removed/"
removes all of them obviously
it does have the slight inconvenient that you don't see standard input
(when you type in console it doesn't show what you type)
Hi guys I have a Problem: I need to generate a 3x3 chunks area like a normal minecraft map and the rest should be void. Is there a way to do that?
Anyone here know a good score board plugin that I can modify? I just need something that looks good, maybe paginated, that I can add a score column to.
@pure pasture i reco just making a void map
and making the chunks urself
or
idk
but
generate a normal world
using mv
but set your distance in server.properties
to like 2
and enter the world
and then shut hte server
got hte mv files
and turn the generator to empty or smth
idk
its so crazy, it just might work
So i'm listening to the EntityShootBowEvent get the force, and add it to another arrow, however the force of that spawned arrow is about 2-3x lower than the original
World#spawnArrow(entity.getLocation(), vector2, force*3, 0);
is there any reason for this?
or am i doing something wrong
the length of both vectors is the same
i do use the velocity of the entity though, so not sure if thats the issue
Is force a vector or scalar in that event?
idk
Wait nvm what i said xD
i don't think force means the same thing as speed
how would i get the speed of the other entity then?
yeah i think that might be the issue
i think shooting force changes depending on how far you pull the bow
entityarrow.a(entityhuman, entityhuman.pitch, entityhuman.yaw, 0.0F, f * 3.0F, 1.0F);
where f is the force
isn't the force the vector itself?
no
so yeah, using spawnArrow with speed = 3 * f
force is a float
does what you want
odd
Hi, I'm wondering where the Spigot Server source code is that parses the Playerdata files - a link to the git would be nice (since I can't work out what git Repo is the right one)
if you care, default arrow damage is 2.0 + k * 0.5D + 0.5D, where k is the power level of the bow
isnt that NMS @half wigeon ?
i thought NMS doesn't exist in 1.14.4 anymore...
net minecraft server?
okay
the minecraft server does very much exist
imma go throw myself
you know spigot is just NMS with extra code on top
it cant function without the core mechanics
ok nvm the arrow damage code is spread out over a million different classes and is fucked overall
I've found that one (https://github.com/pvginkel/Tweakkit-Server) but im suspicious since the last commit is 6 years out
just decompile a spigot jar
but the nms code can be found after you use buildtools
playerdata apparently
https://www.spigotmc.org/resources/nbt-api.7939/ will read files for you
ItemStacks get serialized to JSON - I want to know how so that I can save all that data in Neo4j (GraphDB)
what are you using a graph db
Use gson
I've already resolved all issues with their API in january - so incase smo is interested
https://github.com/neo4j/neo4j-ogm/issues/741#issuecomment-573812045
Any ideas on this error on shutdown? https://pastebin.com/UjhEpuCm
When I pick up an item and drop the item again, is it not still the same item? I get different UUIDs for them. Need to make some sort of workaround now :S
Why do you need to get the uuid?
the itemmeta should be the same
I'm tracking who dropped the item and who picked it up
but the entities uuid will be different
But when I drop it again, I get a new record with a different uuid in the database.
every time you drop it, it generates a new uuid
because the item itself hasn't changed, but it's a new entity on the floor
you could put the UUID of the player it in the metadata using PersistentData(Container)
That's what I tried at first, but for some reason it changes every time I drop it again. Then i tried with the entity uuid instead, but same result.
you could also put your own db generated id into the itemmeta - I will have to code that myself sometimes too
https://pastecode.xyz/view/7ca07bb8 - This is what I have at the moment. Might be something that I am missing
(Will refactor later :P)
also dont immediately store in the in the database
add it to a queue and then update stuff every X minutes or so
https://pastecode.xyz/view/abd63f54 - Made it a little easier to read.
@boreal tiger - Yeah, I will sort out stuff like that once I got the basics working.
With this code, I just tried dropping and picking up ONE diamond and ONE spruce_planks. This is my database: https://imgur.com/a/6LWI5FI
First column are item ids
Anyone heard of or familiar with the "EnderCore" plugin? Its listed as a dependency for another plugin I want but I cannot find "EnderCore" anywhere.
@uncut whale give us the other plugin - we might get it from its pom.xml file
will do
@half wigeon https://www.spigotmc.org/resources/taxes.21695/
apparently taxes works on the latest version despite not being updated, hopefully thats true
When you download the plugin, you get EnderCore with it.
@naive stratus I think I know why ... I've sent you a reply on pastebin with a few other corrections too...
But I think your problem is that you write into the persistent data container of the Item(extends Entity) which gets deleted/overwritten on pickup and not into the ItemMeta -> ItemStack
@half wigeon Where did you send it exactly?
I replied https://pastecode.xyz/view/0988b2d3
Hey guys can someone tell me if this guy froze and rubberbanded?
https://www.youtube.com/watch?v=Nsk0K1hNPFI
It happens around 0:20
looks like a beautiful exsample of server lag
why do u needed to know can i ask
@half wigeon You're the man! Thank you so much. Now I can finally move on.
And thank you for pointing out that monsters are able to pick up too. Didn't think about that.
was a nice challange ๐
I actually don't know enough about MC to be doing this haha. Been playing for a day or two, once a year, since 2010, so I am missing a lot of important parts I think ๐
Any important tips for someone like me?
@half wigeon he didn't freeze or rubberband?
never give up - im doing that for 5 years now and I've basically drifted away from plugins to wards Plugins that make coding Plugins easier ;)
Giving up is never an option for me ๐ Been doing serious programming for 11 years now. It's my drug. The harder is it, the more I want to solve it ๐
Can someone tell me what is wrong https://gyazo.com/32a180603063ec3c8dbbc06d3e179dc3
You probably want to remove -Xmx512M from behind BuildTools.jar
Thanks mate
I have one question. Can I with Java without any additional libraries (not counting Spigot API) get one string from GitHub JSON file?
Spigot contains gson inside Spigot API jar? Well thats good news
Thank you for reply
Heya any forums staff member around to ban a member redistributing the jetsminions plugin
is there any way to change my spigot name?
donating
oh, had no idea thanks
yeah thats pretty much the only way
So do i put a name change request in the reason for donating?
not sure
no, you get a tab where you can change your name every 60 days
is there anyway you can show me where? i cant find it
you need to donate first
oh alright, Thanks xd
as for the tab it's not hard to find
yea figured, thanks
Alright
i changed one every year lol ๐
everytime?
yeah
probabily legacy worlds or something
its like a fresh spigot 1.15.2 install
weird
wdym legacy world?
like from previous versions
yeah not that. idk what it could be unless its cause im using an OVH vps
but I was running GTA server yesterday so
So could you specify what takes so long?
https://gyazo.com/4a5a582c3c6aea9d72e717fba0c4ec74 it took 38 seconds to load the nether world settings
everything just takes forever. is it possible for hardware to be that bad?
Viarewind allows 1.8 support for bossbar and uses a wither within view distance, but when I go to big servers the wither isn't visible to the player, any idea what they do differently?
maybe protocolsupport?
What would protocolsupport do differently tho
Oh shit, you're probably right
display: none
Hm?
its a bad css joke
Rip, I wish dude
what's the joke
that you hide it with display: none
oh
So what do you guys think I should do? Is there a way to fix it or do I just need better server hardware?
Probably a failing hard drive at that point
You could try defragmentation if it's windows
But yeah, moving to an SSD if you aren't using one currently could fix that
Or it could potentially be very slow ram aswell
Do u guys reccomend using a custom event bus ?
I have an addon thingy so people can load modules for my plugin,
think plugin for a plugin. - this is just to keep it leaner and less bloated cause factions setups can differ a lot.
public class FWildAddon extends Addon {
@Override
protected void onEnable() {
getInstance().getLogger().info("Enabling FWild-Addon!");
}
@Override
protected void onDisable() {
getInstance().getLogger().info("Disabling FWild-Addon!");
}
}
People can basically do this and have access to the server instance and all, but should I fire bukkit events or use a custom event system ๐ค
guys how can i reset all rank too default in luckpermsi
Its a vps on a SSD
https://gyazo.com/e9a3594f28a4377e5d4bfd2228389168?token=c73ef49cf440d7cc7ec4057b8e55277b on the left is a gta 5m server with mods. on the right is spigot 1.15.2 . cpu usage
i mean, custom vs using the bukkit one really doesn't matter in the long run, but, people are gonna be familiar with how bukkits event system works, so I probs wouldn't bother unless you where going cross platform or had some major benefit of an alternative
yeah Im thinking bukkit because people hooking in with actual plugins would have a way to use them at the same time and I wouldnt need 2 events for things
why would you use something else though. whats wrong with the bukkit system
I wanna do event for like factions fly checker
which runs every 5 ticks
I dont know how much slower bukkit owuld be
it depends on what you do within the listeners
not on the bukkit api
it costs nothing to fire a event
Okay cool
depends on your needs
could the event system be faster? yes is it generally going to be an issue? no
Does anyone know what plugin is responsible for blocking ender pearls, with the message "You can not use enderpearls in survival."?
bukkit keeps a list of listeners classes you registered. then calls them if you call the event
basically how every event handler works
A plugin I've been working on outside of free time/health is going through a major rewrite and we're switching to a different event system so that we can make a cross platform API
Hi! I have a little problem, here I'm trying to retrieve the name of a block, problem being that I was forced to use an iterator to avoid having ConcurrentModificationException but because of that, I only have NullPointerException on custom names when normally not
- You're using the iterator wrong, next returns the next element, so, you're literally going to be removing the next element in the list each time, use the remove method on the iterator
- You're not handing if the entity does not have a custom name, it returns null
We cannot interact with chests, crafting tables, or furnaces within spawn region. How do I fix this? We've done /rg flag spawn interact allow but never works.
also, catching those two exceptions there is just blatently wrong, use instanceof if you need to check the type of class
Those regex replaceAll, jezz
Oh okay, and what's the right interator ?
I'd suggest googling
@timid valley We're using Spigot 1.8.8
Quite simply, if you're calling next on an iterator more than once in a loop, you're probably doing it wrong
ok, i think what i said is still valid
server.properties has spawn-radius too
that's for the protection, doesn't affect the random offset afaik
@timid valley We changed it to 0, but still no result.
well he wants to change protection cat lol
try spawn radius in server.properties then
He's done it in-game and server.properties
well, consult your provider of 1.8 for support then, dunno ๐
Might be saved in level data?
protection is done in server.properties
We're self-hosted
i mean whoevers maintaining the 1.8 jar. i hope your not using the last one spigot published
if so.... ouch
Like that @chrome lark
hypixel doesnt use anything you can call bukkit anymore
they maintain their servers, not spigot itself
- Please don't ping
1.7?
- No, you're still calling next multiple times
Like I have to do a variable that's next once and for all?
yes
We're using Paper Spigot 1.8.8
as I said, that spawn-radius thing in server.properties configures the protection radius
Hey guys is there a better way to do this?
if (combat == null) {
CombatTagTimer newTimer = new CombatTagTimer(10);
newTimer.runTaskTimer(main, 0L, 20L);
timer.put(p, newTimer);
}
if (combat.isCancelled()) {
CombatTagTimer newTimer = new CombatTagTimer(10);
newTimer.runTaskTimer(main, 0L, 20L);
timer.put(p, newTimer);
} else {
combat.setCurrentTime(0);
}
Can i check for null and if its running on the same line or do they haev to be seperated
well, i know you cant have 2 statements on the same line, so try seperating them
im not good at codling tho so dont take my word as 100%
you can use a conditional OR to remove the duplicated code
if (combat == null || combat.isCancelled())
It wont throw an npe?
no
No its lazy or
because if combat is null it will return true
If first statement is true the other wont be executed
Ok thanks
Hey, I've got a problem again, this time, every time a tnt explode, the server timed it out :/
how do I tell a plugin to huff my shorts and that I want to hijack their command label?
Make a different command
Look at CommandPreProcessEvent
Nvm, doesnโt give the info I thought it words
Would *
Is there a way to check if the player's inventory is empty and the player has no armor placed in the same check?
player#getInventory#getContents#length == 0
Does this check if he has any armor on?
@inland meteor
player.getInventory().getArmorContents().length
?
I can't remember whether that exists
I'm trying to make my particle move towards a block that the player is looking at. Here's what I have so far. The particle changes its location but never moves more than one block away from my character
Now that I think about it, I need to move the 'from' location outside of the bukkit runnable? Is that the fix?
the .runTaskAsynchonously?
use a block iterator to get all the blocks from a location to another
Oh, is that how it's done? lol They already have a method
I bought the 32GB plan ($80) from Shockbyte and my server gets 7.42 tps with 15 people on
was i scammed?
is it a vps
what do you mean by vps?
yeah probably
vCores dont perform taht well no matter how much ram you have
Is there a way to check if the player's inventory is empty and the player has no armor placed in the same check?
if you have $80/month to spend just go straight to the host that shockbyte probably resells
(ovh)
cough
"Intel Xeon E5-1650v4 @ 4.00GHz CPU"
do they have a refund policy
lol
"Intel Xeon E5-1650v4 @ 4.00GHz CPU"
that is probably what all of their vps are running on
no the actual server hes using
Hey, I've got a problem again, this time, every time a tnt explode, the server timed it out :/
Their refund policy is within 24 hours
they didnt let me
i messaged them and they said i cant refund though
depending on how you paid for it, you might have a strong "not as described"/"merchandise unacceptable" case with your payment provider
@lone rapids so i would suggest to use BlockIterator(LivingEntity)
and then iterate every block
since they explicitly claim 640 slots and you can't hit 15
Ye, I just got it working without BlockIterator, but that sounds the way to go. I will check it out, thanks for your help Martoph!
if they won't give you a refund, all you have is your payment provider.
is it maybe because i have 30 plugins?
don't need to give us live updates on the tps
while the iterator has a next block, create a new runnable on a delay of x ticks (x ticks being however many ticks since the first one was sent)
yea no problem!
Is there a way to check if the player's inventory is empty and the player has no armor placed in the same check?
hard i already answered that?
plugins are usually not the cause for tps dropps
ok
player.getInventory().getContents().length is to check for the inventory
@frigid ember you can drop a timings report here, but it's probably the host
i made a support ticket 4 hours ago and they never replied
by this rate it will be past 24 hours
player.getInventory().getContents().lengthis to check for the inventory
better to useplayer.getInventory().getContents().isEmpty()
ok
but i couldn't remember xD
@hoary parcel it actually matters this time because they have a '24 hour' refund policy
especially not on a business day >.<
You've put in the request
they wont reply today then?
/me didn't read the scrollback
so you technically requested within 24 hours
/me thought it was about spigot
worst comes to worst
check what you agreed to
and if you arent getting to what you signed up for
charge back via your bank
@frigid ember did you use paypal?
credit card
Ah, yeah like they said, just contact your card company if need be
they should be good to sort it out
ok
and next time: https://www.ovh.co.uk/dedicated_servers/game/prices/
also kimsufi offers fairly cheap dedis
child company of ovh
ive heard good htings
I host a small modded server on kimsufi
hetzner is far away but works if youre eu
(Oh yeah im eu, mbmb)
i actually got fairly good results on a hetzner vps
my only issue was latence due to distance
I got one from the server auction and we're enjoying it rn
minnesota to munich is not exactly close :P
haha
i know i could probably google this but is VoxelSniper still maintained for 1.15.2?
also how do ppl get their apis on to the public spigot repo?
ah
do you know how to make Minecart hopper speed faster
Like how fast the hopper takes and dispenses
I cant seem to find in spigot.yml
@inland meteor im talking about the minecart hoppers
should still be the same setting?
theyre different
^
ah
so thats why Im asking
i dont think theres a way without a plugin
im not sure if its a bug but if you make a ticket on the spigot jira there might be some devs willing to add in support for the future
i do not
@frigid ember i would recommend you create a feature request on the spigot jira
?jira
Martoph. So I am using the BlockIterator now. Except the particle instantly teleports to the block I'm looking at.
@boreal tiger Earlier today, when you told me to add the code to a queue, did you mean BukkitRunnables?
Think I'm getting to a point where I need it
@lone rapids make from the if (hasNext) a while loop and place the playParticles inside that loop
Is there an event for listening to when a structure is generated?
Like dungeons or strongholds
Thank you FrankHeijden, will do sir.
i use essentils power tool who know how to ban players with a axe
@ocean prism Use an Iterator instead of looping over the list. You cannot remove items in a list while looping over it, that is what is causing the ConcurrentModificationException
I have a problem with the lockettepro, the scrip to edit on the server version1.15.2 would not be appearing to me
@winged sparrow How Do i set timere for ban
If youโre using essentials, I suppose /tempban <player> <time>
Can there be two separate channels?
Like, #plugin-help and #development-help?
Thatโd be nice
@ocean prism You need to use blockIterator.remove() instead of event.blockList.remove()
For dev things I recommend using Paper discord
True, I forgot I was in that.
ohhhh
i've got a spigot server w/ no plugins... players are in survival but can't damage each other... how do i turn on pvp?
@winged sparrow thanks .... pvp=true in server.properties
Also I know that Minecraft has a janky spawn protection system, see if players can hurt each other when they move further from spawn
I donโt know if that protection denies pvp
Aren't they in scoreboard team with friendly-fire disabled ?
I donโt see why a scoreboard team like that would exist if he didnโt make it deliberately
@winged sparrow yea i ran a ways away from spawn, still no damage
you said you don't see why scoreboard team would exist lmao
I have a problem with the lockettepro, the scrip to edit on the server version1.15.2 would not be appearing to me
Worth a shot lwit lol
hmm /team list says there's 1 team
What team is that?
Try /team remove Rule
hey that did it!
Weird
thanks so much
Why would that exist?
Yep its common problem
Thatโs so bizarre
i wonder if a plugin i had enabled at some point enabled that?
Oh, if you had plugins at some point then thatโs absolutely possible
right... guess i'll add plugins back carefully and see if i can see which one did it... was using Multiverse2, LuckPerms, Gravy, Seasons, GriefPrevention.
Maybe GriefPrevention
It has a lot of non-land claim features
It often sticks itโs fingers in a lot of stuff, usually in the best way though
confluence of too many plugins perhaps
Does the lockettepro plugin work for 1.15.2?
anyone know how to always allow passthrough in regions on worldguard?
players arent allowed to interact with armorstands and nothing but passthrough being enabled allows it
tried interact flag but that doesnt seem to work
use
this or
? ๐ค
i think the paramets load before the execution of the method happens
Is that eclipse?
Aight ๐
Read the javadocs
getOrDefault returns the object if nothing is found
You are setting set variable to empty hash set and then using that value as param
how do you set xp needed in an anvil?
anyone know how to make someone have speed when they join
Hey, Anyone would know how to change the name of a chest that has already been placed? Because this not work https://prnt.sc/s1xw71
command block?
Hello there guys!
And here I am again!
I have a question for server owners.
I have a private server with 5-15 players on it. Stable online is about 5.
And, right now I'm testing the server performance and launching the server on my i7-9750h with 6gb ram.
RAM usage is ~2-4gb. CPU usage is 30-40%. It's ok.
But the question is: why tps are going down where the count of entities is bigger then 2.5k and also the count of chunks loaded is also more than 3k.
I use paper-171 build
from server properties:
view-distance=8
and also, I do not change the default paper spawn rate for any mobs.
I'm using the Plan plugin to review the stats, and here are the screenshots out from there:
https://imgur.com/ihs0UpA
also, I have some data stored from my /timings paste , and here is my table:
https://imgur.com/YZp9YjR
so, if you have any comment to me please do not restrain yourself!
I'd be very thankful for any advice!
this is not really a forum
this is not really a forum
@tiny dagger so?
@tiny dagger commandblock?
@frigid ember i don't know how in command block
how do you do it then
@vagrant rune well it's your choice but it's gonna dissapear as soon as you've posted it
where do you put the playerjoinevent
@vagrant rune well it's your choice but it's gonna dissapear as soon as you've posted it
@tiny dagger but the previous time we have a great discussion with some guys here, and they helped me)
oh good luck then
@tiny dagger where do you put it
that's in java
Oh
i thought you asked about how to program it in
no
make you minecraft server version lower
*spigot minecraft server version
where can I contact support for account issues?
plsss
How can you create a new map from a template?
Hello. I got a problem with scheduling tasks at low TPS. I try to use ScheduledExecutorService, but i can't use Bukkit API (include logger). How to fix it (or what can be used instead)?
My code:
`ScheduledExecutorService scheduledService_1 = Executors.newSingleThreadScheduledExecutor();
ScheduledFuture<?> scheduledFuture = scheduledService_1.scheduleAtFixedRate(() -> {
logger.info("8 minutes")
....
}, 0, 8, TimeUnit.MINUTES
);`
hi im trying to use Container#addSlotListener but it doesnt seem to be working
more specifically i get UnsupportedOperationException, which i dont think has to do with me
Is there an event I can listen to or some other method to check for when and where a structure generates, specifically dungeons and strongholds?
Hi is there a way or a plugin that makes the gamertags of my server in colors?
i use aternos
Hello. I got a problem with scheduling tasks at low TPS. I try to use ScheduledExecutorService, but i can't use Bukkit API (include logger). How to fix it (or what can be used instead)?
My code:
`ScheduledExecutorService scheduledService_1 = Executors.newSingleThreadScheduledExecutor();ScheduledFuture<?> scheduledFuture = scheduledService_1.scheduleAtFixedRate(() -> {
logger.info("8 minutes")
....
}, 0, 8, TimeUnit.MINUTES
);`
@halcyon pivot Try using Timer.scheduleAtFixedRate
https://docs.oracle.com/javase/7/docs/api/java/util/Timer.html#scheduleAtFixedRate(java.util.TimerTask, java.util.Date, long)
more specifically i get UnsupportedOperationException, which i dont think has to do with me
@wanton delta https://www.spigotmc.org/threads/addslotlistener-giving-unsupportedoperationexception.377234/
I just tried /timings, but it doesn't seem like the url it give me works. It just redirects me to https://www.spigotmc.org/ - Any known issues?
Is there an event I can listen to or some other method to check for when and where a structure generates, specifically dungeons and strongholds?
@winged sparrow World has this method wich can be util https://hub.spigotmc.org/javadocs/spigot/org/bukkit/World.html#locateNearestStructure-org.bukkit.Location-org.bukkit.StructureType-int-boolean-
If you want to detect organic structures you can use this https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/world/StructureGrowEvent.html
I couldn't find anything else
I just tried /timings, but it doesn't seem like the url it give me works. It just redirects me to https://www.spigotmc.org/ - Any known issues?
@naive stratus https://www.spigotmc.org/wiki/timings/
Interesting, thank you
i don't think if this will solve your problem but you can try it
@high root Thats what I followed. When I get a paste like https://www.spigotmc.org/go/timingsrl=kesugosobi it just redirects to https://www.spigotmc.org
I'll mess with it. Might can find some hacky workaround for modifying the structure slightly
@high root Thats what I followed. When I get a paste like
https://www.spigotmc.org/go/timingsrl=kesugosobiit just redirects tohttps://www.spigotmc.org
@naive stratus This is a 2 months old thread https://www.spigotmc.org/threads/timings.415882/
I wonder how I should organize the structure of my server which could and should support around 300 players.
By the way I try to code the maximum of thing by myself. I can still use some essential plugins which greatly facilitate the tasks.
I know I should use bungeecord but how do I use it well?
First question:
Should I separate all the mini-games in their own respective servers or should I make a server for mini-games in general (and one for hubs, etc)?
Second question:
At the plugin level, if all games have their own servers, should I make sure there is a different plugin for each game?
And the main class of these plugins would have an "instances" property which lists all instances of the Tnt-Run class for example?
if your server doesnt have 300 players right now
you shouldnt worry about having 300 players
as far as minigames go, it depends on how theyre structured
some minigames require their own server
others dont
guess it depends on server load, amount of runnables etc
per server is generally easier to develop
yeye
ok
it can sometimes be a little more cost effective depending on your host
okay thanks ๐
I have a really weird issue right now that I could seriously use some help with if anyone is feeling generous.
I am attempting to enable a resource pack on my server
it prompts clients to download but then the menu just closes and nothing downloads (nothing in server resource packs locally)
It can not be the URL considering I have tried multiple providers and they all were direct links
It also can not be a plugin conflict as I have re launched the server with no plugins enabled with the same issue
the resource pack does work fine locally as it is just some sounds and a money texture
I am also using a Hash and it is in the proper spot in my server.properties
any help would be appreciated!
I thought they had to be URLs?
it is a URl
I am just saying I have tried multiple URLs from multiple sources
all are direct download
Around 80mb, Its a little big due to custom sounds
how would I go about making it smaller?
Remove custom sounds
try compressing your sounds
you'll lose audio quality, but it'll be at least possible :)
so it needs to be under 50mb?
if you have audacity, there is a small option called "Project Rate" in the bottom left
yep
just change that setting to something lower, the default is 44100
i recommend 22050hz
ill give it a try, thanks
its really weird though
it works fine locally
and the DL link works
Another question, as I know how to use mongodb is redis better?
mongo is very different to redis
how long does it take for a name change request to be handled and are they denied often?
mongo is a nosql database where redis is a kv cache that doubles as a message queue
I don't think they're denied that often? From what I understand you have to pay $10 for a name change.
i did that already i even requested for the name to be changed
i do like the dark theme though
I dont see why it wouldnt be denied then, besides if the username is taken then.
You just have to wait for the staff response.
wait that came out wrong...
you don't see why it would not be denied? that is double denial which means = truth
so you think it will be denied?
would*
okay thanks @silk gate
Lol
anyway thanks
You just gotta play the waiting game, that's all.
Whats Command To kill player if they stand on wet sponge using command block
execute as @a if block ~ ~-1 ~ minecraft:wet_sponge run kill @ s
no space between @ and s but otterwise it would try tagging someone here
or you could make the execute at then kill @ a with a [distance=0] tag
personally i find that to be a bit more foolproof
@lean knot The command not work
I looped through all entities in a certain radius. I checked if they were an instance of LivingEntity, now I want to damage them. I try to do entity.damage(10); However I think the entity needs to be casted as LivingEntity, any suggestions?
try the alteration i said
iDK
uhm... btw are you running plugins lewis?
@frigid ember I managed to compress it from 100mb to 40mb ๐
yEH
if you run plugins it might mess up minecraft commands
@lone rapids Yes you just need to cast it
you have to namespace your commands then
(LivingEntity) entity.damage(10);?
minecraft:execute minecraft:kill etc
Is there an event similar to the PlayerMoveEvent, but instead of players, it's with Entities?
no
((LivintEntity) entity).damage() I think @lone rapids
are plugins loaded by separate classloaders?
im getting a classnotfound for a library that im shading in another jar
xD
but im having the same issue
it just wont download
any ideas anyone?
I was up till 9am this morning trying to fix it
Does anyone know how the actual hell to disable the [Username: Triggered [value] (set value to 1)] cause its getting infuriating.
What's the capacity of a player's inventory? 40 slots? Or do the crafting slots count as well?
its 41
Do the crafting slots count?
36 + 4 armor slots + 1 other hand
Does anyone know how the actual hell to disable the
[Username: Triggered [value] (set value to 1)]cause its getting infuriating.
@mental coral https://youtu.be/-LwwUfwG83Q
Try that
You can't store items in the crafting slots.
Wouldn't it be 40 then?
36 + 40 + 1 is 41
@cosmic lily should be fine limit is 50mb, if it's not working you did it wrong
I counted 40, starting from 0
you need to use the resource pack line in server settings rather then texture pack, also it needs to be direct download link
lol
the index of the last one might be 40
it is
but that doesnt change that there are still 41
want me to send you the direct link>
sure
I know what you mean, there's 41 slots. I meant more like indexing from 0, but I didnt specify that either
i have tried, mcpack, mediafire, and dropbox
@high root how exactly would a resource pack help with that message?
dropbox should have been the easiest
are plugins loaded by separate classloaders?
im getting a classnotfound for a library that im shading in another jar
anyone?
@high root how exactly would a resource pack help with that message?
@mental coral I don't understand
I would believe that you have to shade the library in the jar you're referencing it from.
You mentioned me telling me to try a video for my issue.
@mental coral https://youtu.be/-LwwUfwG83Q
Try that
@high root
works for me, how did you set up your server join server resource pack disabled/prompt? if so you need to accept the prompt or if disabled not disable it
ive got a plugin A where im shading guice
a plugin B wants to use guice too
nothing appears in server-resource-packs
and uses it from plugin A
You should shade it in both then.
bruh
then it doesn't download it which could mean an error
your texture pack could be zipped wrong
im using winrar ๐
@cosmic lily The resource pack is formatted wrong, maybe for a different resource pack version.
are you telling me its not possible to use libraries shaded by another plugin?
why would I shade it twice
when i only have to shade it once
@radiant pollen how would I go about fixing it?
what version is your server supposed to be?
@lofty otter If it's shaded in another plugin, you need to use depends to make sure it loads in the correct order.
if 1.15/1.16 change pack format to 5
Server is on 1.14.4
Does anyone know how in the name of all that is holy to disable [Username: Triggered [trigger] (set value to 1)] in chat? I cannot for the life of me figure it out and its driving me up a wall in chat.
ah that is a very good point @radiant pollen
then 4 should be fine afaik
maybe some files are in wrong locations, server packs might bug if any little part is wrong
client side they can just ignore the errors etc, but server it has to be flawless
i am not sure but sounds.json might be wrong place
the sounds.json is outside the sounds folder i think it should be in there
ill see if i can copy the structure of a 1.14 pack
for me personally my pack also bugged when placing something wrong, it should have been in models but i placed it in textures
what i did was disable visual off hand item if totem of undying
it would be so helpful if it would just give me console output
it should
the logs should contain the errors
those should be in the world file i believe
wait really?
you looking in the world files of your server's world?
that did it zax, papa bless
No problem!
Nothing was in the console log
not sure if this is a multiverse question or what.... i'm trying to make it so players respawn in the world they've died in. I have /mv set spawn and /mvm set respawnWorld <worldname> but whenever they die they end up back at the global spawn. Any ideas?
Essentials is probably overriding it
Check the Essentials Respawn Priority in the config
set it to low if you can
and @radiant pollen wdym its formatted wrong?
I just downloaded a few resource soundpacks online and they dont even have a sounds.json
I'm pretty sure the resource pack version changed between 1.13 and 1.14.
ah thx Voska... its set to "high" currently, will try low
You don't need to have anything except a pack.mcmeta.
hmm changed to low and still respawned in the home world
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register org.anvilpowered.ontime.spigot.listener.SpigotPlayerListener@585ba3f9 while not enabled
so i have a look at that method, it checks Plugin#isEnabled(). But plugin.enabled never gets set to true
and for some odd reason i cant send a screenshot in here
@vapid walrus try seeing if there is any console output?
Voska actually you were right... although I had to set it to lowest not low
thanks again!
rgh
well, anyways
that isEnabled never gets set to true
so wtf
isEnabled is a final method in JavaPlugin so i cant override it
and the boolean that it returns is always false
and do i really need to go make an account now on spigot forums just to send a screenshot
...yes
well, any ideas on the issue
You can override "onEnable"
@radiant pollen how can I get the vanilla resource pack to use as a base? for 1.14.4
ah right
@cosmic lily Taken from the wiki:
Located in Windows as: C:\Users\name\AppData\Roaming\.minecraft\versions\your Minecraft version and extract the .jar file
ok thanks
what can you do by extracting the jar file?
Use the vanilla resource pack as a base.
do you get all the vanilla files?
@cosmic lily When you copy the vanilla resource pack as a base for your server's pack, you need to remove all of the assets that you're not replacing. Otherwise, you force everyone on the server to use Default which is not a good idea.
Yes, you get the whole resource pack.
ok, i am trying it rn
but also thinks like vanilla datapack right?
@frigid ember plugin conflict
because i actually need to find a way to make crafting recipes based on my storyline
but what happens now is they automatically gain recipes by having the required items
Voska how to fix it
@frigid ember or it may not be compatible with your version of spigot
Can someone help me why im getting this?
@frigid emberCaused by: java.lang.NoSuchMethodError: org.bukkit.event.block.BlockPlaceEvent.getHand()Lorg/bukkit/inventory/EquipmentSlot;
@lean knot Yes, all of the recipes, advancements, loot tables, etc can be found in the version jar as .json files.
@frigid ember In witch version did you code this?
@radiant pollen i notice you seem to be someone with very good knowledge of the game, do you know the easiest way to prevent automatic crafting unlocks, so i could control them?
Wich version does the plugin page say then?
i download it for 1.8 but more of this plugin its for 1.9
i disabled advancements and such, however when i get wooden planks for example i unlock all wood recipes or most of them
i need this plugin for 1.8.9
@frigid ember talk to the developer and ask for an update
@frigid ember The plugin is using a method that is not found on 1.8.9. That plugin won't work.
@radiant pollen @lean knot Here is my URL, see any issues with the pack? http://victorynet.works/downloads/vnresource.zip?dl=1
so how i can make this plugin work in 1.8.9 version ot change the spigot to 1.9 and natural use 1.8.9 for native version
The latest version won't work*
@lean knot There is a PlayerRecipeDiscoverEvent. You can do a lot of stuff with it. You can also prevent players from crafting a recipe they have not yet discovered.
@frigid ember If it isnt open source you really dont have hope, your best bet is to talk to the developer and ask for an update. or update your server
i update the server to 1.9 but i cant join it on 1.8.9
yeah but how do i do it with a datapack zaxarner?
i have Via Version installed
i mean i even got dolimitedcrafting to true but getting planks just "discovers" some recipe's
@lean knot I'm not sure what you're trying to accomplish exactly.
ViaVersion works forwards not backwards
i have it but doestn work
ViaRewind
Or use protocolsupport
ViaRewind does nothing for 1.8 client and 1.9 server.
are i need to paste all via versions to bungee and all servers
Zax did you see anything wrong with the resource pack?
@radiant pollen According to the graph it does.
Oh okay I looked at the graphs wrong
so are this its what i need https://ci.viaversion.com/job/ViaVersion-Abstraction/
ok so for some reason, plugin.getCommand is returning null
even though its registered in the plugin yml
@cosmic lily Why did you put the .ogg files into a "custom" folder.
ok so for some reason, plugin.getCommand is returning null
@lofty otter Can you show the plugin.yml and the code?
[00:24:18] [Server thread/INFO]: Plugin: OnTime v1.0.0-SNAPSHOT
java.lang.NullPointerException: OnTime command not registered
at java.util.Objects.requireNonNull(Unknown Source) ~[?:1.8.0_241]
at org.anvilpowered.ontime.spigot.command.SpigotOnTimeCommandNode.loadCommands(SpigotOnTimeCommandNode.java:73) ~[?:?]
at org.anvilpowered.ontime.common.command.CommonOnTimeCommandNode.lambda$new$0(CommonOnTimeCommandNode.java:82) ~[?:?]
@radiant pollen are this will work https://ci.viaversion.com/job/ViaVersion-Abstraction/?
name: OnTime
version: "1.0.0-SNAPSHOT"
main: org.anvilpowered.ontime.spigot.plugin.OnTimeSpigot
api-version: 1.15
authors: [Cableguy20, STG_Allen]
description: Playtime tracker
depend: [Anvil, LuckPerms]
commands:
ontime:
description: OnTime root command
I've never used ViaVersion @frigid ember
its weird because I copied the plugin yml from another plugin where it works
Line 15 is throwing a NullPointerException error when I try and load my plugin onto my server? It must have something to do with setExecutor, but I'm not sure what.
who know are i need to put ViaBackward in bungee
getCommand is nullable @frigid ember
@frigid ember getCommand can return null if that command is not in your plugin.yml.
Ah that would be why
@lofty otter I can't tell what's wrong. Haha one sec.
@upper hearth im making network server and only need to paste in the spigot server not in the bungee
name: OnTime
version: "1.0.0-SNAPSHOT"
main: org.anvilpowered.ontime.spigot.plugin.OnTimeSpigot
api-version: 1.15
authors: [Cableguy20, STG_Allen]
description: Playtime tracker
depend: [Anvil, LuckPerms]
commands:
ontime:
description: OnTime root command
@lofty otter
name: OnTime
version: "1.0.0-SNAPSHOT"
main: org.anvilpowered.ontime.spigot.plugin.OnTimeSpigot
api-version: 1.15
authors: [Cableguy20, STG_Allen]
description: Playtime tracker
depend: [Anvil, LuckPerms]
commands:
ontime:
description: OnTime root command
Try that
commandName:
description: Command Description
usage: /commandName <Arguments...>```
In the plugin.yml file
@frigid ember ViaVersion and ViaRewind have to go in all your Spigot servers, not BungeeCord.
Haha
uh nemo isnt that exactly what I already have?
Who said it's voluntary?
uh nemo isnt that exactly what I already have?
@lofty otter I added an space where I think it is missing
md_5 can be an unmerciful master.
If you say so
on the description on the comand
@lofty otter Where are you running that code?
In the onEnable?
sorta
wdym sorta
in the OnEnable of another plugin
