#help-archived
1 messages Β· Page 55 of 1
You'd have to constantly update it every time the player moves
he did lmao
And this is only for when they have an open inventory
How would I go about having a platform that you can walk onto and it teleports you to a random location? There must be a plugin for this because I've been in a server with one
Im gonna try using targetblock
Hey guys, where can I find a list of all packet classes from net.minecraft.server.v1_15_R1 or just the javadoc?
(PacketPlayOutPlayerInfo, PacketPlayOutNamedEntitySpawn, etc)
https://github.com/Philipp15b/CompassEx
might help
I believe i might be able to get it by using getTargetBlock, it seems that is has more accuracy as you increase the distance
Or you could continuously set the compass's target in the direction the player is facing?
Ive tried that
Or maybe if you send a packet, the server won't overwrite it the same way it does with other packet-related things?
Im gonna see what i can do lol
what if they face south lol
My question is why would this be helpful? F3 literally shows what direction you are facing
If you know there's going to be a block somewhere in the distance you could use line of sight?
https://gyazo.com/224f98c452c70201a9f633cd2a3e1db5 I want it to point up so it is pointing at the reward they will get out of these "shards", basically just a mini crate
ah
I did all of the animation its just the compass
Or what you could do is get some block really far north, adjust the player's compass' target whenever they walk the distance of a block
So if they walk 1 block east or 1 block west, adjust the target block.
are you setting it before adding it to the inventory?
If they walk north or south, it wouldn't matter.
Yes it should be set before adding it to the inventory
you cant move unless hit whilst in an inventory
Idek anymore lol
@buoyant path get the compass Target and output it, see if it is actually changing
Yes you can @silk nymph
cheers
Its changing, I changed one of the commands in my plugin to set it just for testing and it definitely changes, with target block you can get really close, and all the other methods dont seem to work
I would recommend joining the paper discord btw @silk nymph
You sure it's not just a client side bug then?
May be worth restarting your client, just to check
Is there a way you can change the players yaw, but then make it seem like they haven't moved with packets?
I didn't realise there was one, thanks again lol
exactly π
Hi does anybody know how big the regions are on worldguarD?#
I can't see any information on it on the github
just speaks of how to set a region, but not how to define the sizer
size*
You set it using the WE wand
Select the two diagonals (top corner and bottom corner that are diagonal) and create a region with worldguard's commands
Ok I did just see that actually lol but I don't think worldguard has loaded
I don't think it's working flat out
and I've no idea why, it's in the plugin folder
should give you some indication in console
?paste
It's not that big
[09:22:50 ERROR]: Could not load 'plugins\worldguard-bukkit-7.0.2.jar' in folder 'plugins'
org.bukkit.plugin.UnknownDependencyException: WorldEdit
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:272) ~[patched_1.15.2.jar:git-Paper-229]
at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:359) ~[patched_1.15.2.jar:git-Paper-229]
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-229]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:895) ~[patched_1.15.2.jar:git-Paper-229]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
This is the only error report I got
You don't have Worldedit installed @silk nymph
Hi all
DataWatcher dataWatcher = this.entity.getDataWatcher();
dataWatcher.set(DataWatcherRegistry.s.a(6), EntityPose.CROUCHING);
connection.sendPacket(new PacketPlayOutEntityMetadata(this.entity.getId(), dataWatcher, false));
I'm having some trouble with packets, specifically where to find documentation on classes they use or some sort of Javadoc on them that's similar to the spigot javadoc. Does something like this exist? (eg. a Javadoc for classes such as PacketPlayOutPlayerInfo, DataWatcher, PacketPlayOutEntityMetaData, etc?)
In the segment of code I posted, I am sending a packet to make an EntityPlayer I created do the sneak animation for another player and it works well. What I can't figure out though, is what the DataWatcher is doing and specifically what the meaning of DataWatcherRegistry.s.a(6) is and why it works? (Why is it specifically 6, etc?) Is there some official place I can find this information? I've come across this https://wiki.vg/Protocol but I'm unsure on how to use it? Is there a better resource?
There's no public java docs for NMS at all, to my knowledge, it's only available to mojang partners (Mineplex etc)
https://wiki.vg/Protocol is really helpful when dealing with packets though, in most cases anyway.
Oh right, okay... That's uh... disappointing
I'm unsure of how to proceed aha, a lot of the time if I've ever been stuck I've just refered to the Spigot Javadocs
Is there some place that we can read up on DataWatcher, it's arguments, values, etc?
You could... check nms mappings and decompile π€
Hmmm
does FileConfiguration#load load everything in the file to memory?
They really should change game state 7's desc so instead of 0 = bright, -1 = bright
MCDevs I think
Is there really no other way? π Anyone else maybe?
I remember having a nightmare of a time regarding custom images in itemframes and gifs/videos.
I wanted to do something really cool with them for one of my minigames, was a while back though
With DataWatcher
Doesn't the DataWatcher just store the entities state?
Aka, if say, a horse is rearing?
i cant run plotsquared on my server why
i cant run plotsquared on my server why
@hollow crystal Share your logs with the help of https://paste.md-5.net/
just copy and paste the logs
hmm try chnaging the plugin versions
ok
I'm having problems with non op survival players having access to certains commands that I don't want them to have access to, luckyperm doesn't pick up the commands?
you're going to need to be more specific
You're right sorry
It's picking up //brush
These specifically
They don't show up in luckperms so they're somehow enabled by default
I just disabled all possible worldguard commands and they still show up
Guys, what is it Connection Handler? https://timings.aikar.co/?id=160503aa2c02428bbf6cd1d7bb07cd1f
200% of tick π
@silk nymph that's worldedit, not worldguard
I meant that
In luckperms I disabled everything below TG which was all the word stuff
world
I'm not sure it's particularly a problem it just looks annoying and unrefined
I bought "Featherboard" on SpigotMC, paid already but is not letting me download it is still saying to pay even though I already paid. I also look at my resources for "paid resources" it doesn't show the Featherboard. I have proof of payment.
Wait a bit or contact the author
Ok
Pretty sure it tells you in can take a bit of time when you pay
Hello, my server was working very well, now I open and no one can enter even me, does anyone know how to solve it?
Not without console logs
?paste
I did not understand
If you don't share what your console says, we can't resolve an issue
This should be quite an easy question for some of you but I am trying to put strings into the config.yml in Whitelist on the command /report whitelist add <username> i have created the command just need to put the data into the section.
Whitelist:
- str1
- str2
Just struggling with writing it to the config?
Get the list from the config, add the new user to the list, set the list to the config again, then save it
thats what i thought i was doing lmao
lemme grab the code
config.getStringList("Whitelist").add("test");
plugin.saveConfig();
plugin.reloadConfig();
sender.sendMessage("Β§8Β§l[Β§dΒ§lESΒ§8Β§l] Β§7Added Β§c" + usernameFriendly + " Β§7to the whitelist.");```
@frigid ember https://paste.md-5.net/culupavohe.md#
that?
@marble ingot any reason you're not just holding the list in memory? negating the need to reload the config at any time?
im not really sure what im doing tbh lmao
because its not a server whitelist
ah my bad
@frigid ember your payment may be on hold
we dont support paper here @frigid ember
it seems like the essentials translation is corrupt though
@frigid ember could you explain how i would hold it in memory
it would probably be best to ask for help in essentials' discord
@frigid ember the server is not online
@marble ingot what I mean by that is, why not just check against the arraylist? Load the list from config when the plugin enables, just alter the list while the plugin is active then save it when it disables
@frigid ember Does the console give any extra output? to say that you're attempting to join?
i might try that then. But we've diverted anyway π
no and in minecraft this appears: connection timed out: no further information @frigid ember
@marble ingot first things first, add a for loop for debugging, after adding the test item, loop round the list and send each item as a message, just to help pin point the issue
@frigid ember Are you using a hosting provider or?
so is that a bug in my code and not a logic error
I'm not entirely convinced about config.getStringList("Whitelist").add("test");
I'd always put the string list into it's own variable before altering
but that might just be a me thing lmao
List<String> whitelistValues = config.getStringList("Whitelist");
whitelistValues.add("test");```
bam
π
that's how I'd do it aye, just don't forget to set the list in the config before saving the config
Yeah
I'm still not entirely sure why you're not just adding to the already existing String list if you've loaded it onEnable though?
add it to that then save that to the config?
i may be understanding wrong but i would rather it save it to the config straight away so that it updates the config.yml
@frigid ember hamachi
You can still do that, it just saves you creating un-needed variables
eh
?
hamachi lmao, i have not heard that name in a long time
But definitely give those adjustments you've just done a go and see if that solves the issue @marble ingot
i associate that with 2012 youtube tutorials with that iconic song and how to set up a server for your friends to play on
lmfaoooo
@vital delta use what then
just host it off your computer
@frigid ember so what do i put in the .set
but which one do you use -_-
you host it off your computer using spigot
^
Theres no need for shit like hamachi
Just port forward off your router
and host on a machine
lmao
@marble ingot getConfig().set("Whitelist", whitelistValues);
ahh k litty π
for future reference if i wanted to get config of a sub category to whitelist how would i do that
Hello. I have a problem with PlaceHolderAPI for KitPvP. It don't works :/
?paste
can't help without console output
@wheat pivot are you certain it's downloading the correct one for the kitpvp plugin you're using?
yes
Which kitpvp plugin is it?
if it's not working I'd get in contact with the dev, as they're hard-coded into the plugin itself
...
The teleport methods ...
are you blind or making a weak attempt at comedy
it's written out for you
You can use HashMap(deletes after restart) or save location into yaml
I advise you to use HashMap for understanding how it works then you can take a look file system.
Imagine ppl learning java before deep diving into plugins
okay, so they can either A spam a discord with questions that they could put into google
or B learn java
I didn't know it ._.
Okay we shouldn't be too aggresive to him. He's trying to make a plugin but you have to learn java first. @frigid ember
nah i'm not on the train of you have to learn java
Or In the future, you'll be learned java from plugins... It's bad
i'm on the train of you should google stuff that can be googled
and when presented with the answer put at least a bit of effort into reading instead of just asking for the code
@hoary parcel Most people want to write plugins and they find out they need to learn Java
@frigid ember and that's the second they should pause for a week and learn the base syntax of java first
HTML isn't a programming language
you're telling me im not an xml dev
And I bet the scope of your js work also isnt comparable to writing proper programms
Yes, sure
so creating an object instance shouldn't be that foreign
But I bet he didn't do that yet
Am not rude am just giving advice
Take a step back, learn the basics of java and you will have much easier time
Is it possible to run Minecraft server for a long time without memory leaks? If you've a miencraft server that has avarage 1000 players joins in a day, how many hours can it handle? After a while Java garbage collector going crazy...
It can run for weeks
All depends on what you do
If you need daily restarts you have issues with your plugins
There are a lot of hashmaps and player datas... You may think like a minigame server.
Players joins and quit every 15-20 min
Well, just unload the player data when they quit
tell them how to clean? π€
Else you gonna leak shit obviously
Well I do but after a while I got a memort leaks
then you don't
So you have a case were you don't clean up properly
First step is to get a heap dumo
And look what kind of data you leaking
Then you look at your code and figure out how that can happen
I made a debug system that shows me using ram every second.
It's normal increasing and decrease normally
after a while it's getting weird. Like when it peaks 1GB java gc deletes datas and it become 200-300 mb
Are there any method that I can debug where the memort leaks are
You also want to make sure you tuning your GC properly
Yes
There method is called taking a heap dump..
.
Then use something like MAT to look at the heap
And see where you have objects that should be referenced anymore
all objects
The heap is where all your object life
and death
Thanks for the information. I'll take a look at it and feedback to you or spigot forum maybe it can helpful for others.
Bukkit.getWorld("world")
You should learn how to read docs.
String is string, world is world
Clearly you don't
You are passing a string where it's expecting a world
You are casting a location to an entity
Don't apply IDE suggestions if you don't know what they mean
You are still casting a location to an entity
That's why we're saying you must learn java
I said it 3 times know
If you don't understand my words you need to get your java book out of the drawer
looks fine imo but you're missing rotation
...
Create a inventory from a inventory converted to a string?
No at that directed at freestyler
it's optional but that doesn't mean he isn't just gonna look at 0,0
Let him teleport once first till we teach him about pitch and yaw and how they are completely backwards in mc π
good thing we don't have roll too
Just try it ffs
Man, imagine roll roation
I would just make the player spin all day π
@hoary parcel In that case, I can use multi arena system for my games as you mention it there's no memory leaks. Should I use it?
Can i create a inventory from a inventory that was converted to a string?
Loading and unloading worlds is very vulnerable to memory leaks
But it can be done if you are careful, yes
Just need to make sure that you destory location objects as they keep worlds in memory
If I delete the world before deleting datas. May it be problem?
How do i create a inventory from a inventory that was converted to a string?
Nah, that should be fine
@frigid ember It's up to you. You can make a class and convert to JSON
And use GSON api for make class again
Thanks
@frigid ember If there is, I don't know.
k
Bukkit.getWorld("name")
That's not how you define a world variable, that's how you get an instance of a world
You forgot the type declaration
he is gonna understand all this soon
you're gonna end up like me
You will be hanging in this channel for the next 3 years
If you learn how to do it yourself, you don't need to ask as many questions
So go take a look at a java tutorial and look at how variable declaration works
It's not rude, it's a fact
You don't know how to declare a variable.
That's fine
You can learn it
But nobody here should tell you how to do it
Because then you will just copy without learning
It's not a physical or intelligence skills. It's just you don't know how to do it.
Were not here to give java tutorials
We're saying it's bukkit library help not a java learning platform
no
It's java...
a world is not bukkit
i can make an object called world and making a variable of it is no different
My guy its really just a case of looking it up on google or watching some videos
a world is not bukkit
@dusty topaz You can get the world with Bukkit.getWorld("")
World world =
k
Its not about defining a world
Its defining everything
Its all pretty much the same
hello guys how can I post a post on the forum pls help
Is it still possible to display illegal itemstacks such as 0 and over 64?
Just as you define a variable with any type
yes @marsh hawk
not sure about over 64
but 0 for definite
though it will go away on interact iirc
π ±οΈoneless
I think there is more than 3 people typing but it's just because that guys name is so long lol
lmaooo
World world = Bukkit.getWorld("name");
just for a local variable ^
bro
not final
he doesn't need any more spoonfeed
π
he got all he needs
and do people seriously make every local field final
i don't :^)
YT is the definitive source of information
Its not bukkit specific
oracle java tutorial has a nice explanation
c++ c# works the same
Immutability is a good thing avro π€·
Then u dont seem to know how it works π€·
Just use your spigot name like every body else
Are you compensating for something?
a
Its very common to see unverified ppl come in here and ask for plugins
some dum dums
thats a legitimate question
this is not for development only
And google
Bro um if u cant define a world variable, π³ errr
Who needs variables in code anyways?
@frigid ember are you using notepad++?
variables arent related to minecraft only lol
Its the exact same thing with spigot π€¦ββοΈ
I can't help you if you feel spoken to when somebody talks about dum dums
the fact that you're saying that shows that you have no idea what you're doing
._.
All i remember looking up is βhow to get world bukkitβ
The rest came fairly naturally
lmao
I do remember asking βhow to define variablesβ cuz i was new... thats just how we all start
We'd like to help you about spigot and related minecraft things not basic java...
Worlds, players, foo and bar is all the sme
We're not rude you're rude one
does anyone want to see me instantiate a Fuck?
it's a local Fuck
its not that different
Fuck fuck = FuckFactory.createNew()
you know java is different?
@frigid ember pls read this https://docs.oracle.com/javase/tutorial/java/index.html
So instead of looking up how to define variables
And avoiding tjis conversation
You come here, out of all places
if you said you know js you would soon click all this in place
Okay, you should think about what kind of java basics do I need for make basic minecraft plugin.
and you may google it
?jd
Learn how to use em
yeah
that's the difference between web programming and app programming
so just start slowly with the first chapter
it will get you going
i mean both first and second
you need to know a few things
you can go straight in
but you're gonna have a hard time
and people pointing at you to learn java
and as they said you're gonna learn to realy on others than your own understanding
what's wrong with reading the oracle doc i gave you?
^
it's very well structured
Just go to ud or what ever and learn the basics there
Hi, does anyone know how to change my paypal account for the plugin payments? (And thanks to fr33styler for the java doc, I'll definitely read that xD)
There are free courses
I mean
If u want to practise
of course you have to use docs
I still can't manage to display an itemstack at 0. It just removes it from the inventory
apparently it's still possible
lol
You could also do if(player.getItemInHand().getType().equals(Material.SANDSTONE)) {
Hi all, does anyone else have issues with hoppers working on their servers with 1.15.2?
does anyone use a inventory api they prefer?
@dusky herald you don't need to use .equals there
You could also do
if(player.getItemInHand().getType().equals(Material.SANDSTONE)) {
@dusky herald The==approach is better because you're dealing with enum constants,.equals()works aswell but is a unnecesarry method call and would throw a NullPointerException if.getType()returnednull
hi. I want to play a game in minecraft such as fallen kingdoms, and I was trying to create a minecraft server. I discovered spigot thanks to aternos. How do I use this server maker ?
I'm super bad at using java and everything
Hi how would you delete a map by it's name?
who has a good suggestion for 20 player VPS
reasonable priced
I tried hostwinds on an e3-1230v2 and it's not cutting it
@slim igloo youtube "how to make a spigot server" would be your best bet
@frigid ember ok thank you that is nice of you
afiak aternos does a lot of the work for you.
hey,
LP cant connect to MariaDB, i get the failure "connection refused". and yes, i already followed the guide.
I opend the port at the firewall (in-out). gave permissions and even created an own VIP-Pass for mysql at the ufw. i created a user and gave him permissions to the database, but i get "connecton refused"
can anyone help?
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 16026/mysqld
its listening
π¦
I will soft-tag I guess :/
@ DaynaSea#4365 what kind of issues?
@ mhia#7153 like a menu api?
Recrutement builder minecraft sur mon seveur me mp discord
mairsi d avoir la version paient de minecraft
Et pc
he is having trouble with mumbo's super smelter design
the last hopper wont light
or furnace*
I'm assuming its a mojang bug
Recrutement builder minecraft sur mon seveur me mp discord
mairsi d avoir la version paient de minecraft
Et pc

is there fuel going in?
yeah
and things to smelt?
yep
can anyone reccomend a good VPS host 20 ish players?
i did some research online and it seems like others are having the same issue with his design
if you remove the last furnace and make the smelter smaller, will it occur for the new last furnace?
i'll ask him
i do have a hopper limiter on my server so they cant build these giant lag machines so that's probably an issue for him π
well if the fuel and smelt-contents are already in the furnace, I don't see what is stopping it
its probably his design as it isn't that big
got a screenshot?
can i send here?
yeah
he says, "when the last hopper gets an item, the comparater sends a signal to the redstone torch which allows the hoppers below to take an item and they aren't doing that."
hey,
LP cant connect to MariaDB, i get the failure "connection refused". and yes, i already followed the guide.
I opend the port at the firewall (in-out). gave permissions and even created an own VIP-Pass for mysql at the ufw. i created a user and gave him permissions to the database, but i get "connecton refused"
can anyone help?
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 16026/mysqld
its listening
just asking again π
that last furnace that is visible there, that's the one?
@bleak osprey in relation to the server with LP, is the database localhost? on LAN? on a remote server?
yes
@bleak osprey in relation to the server with LP, is the database localhost? on LAN? on a remote server?
@patent monolith local
ok he says he think he has it working
both at the same sytem
i told him to do some research about it online as others were offering work-around suggestions - so im thinking its not spigot lol
he set the repeaters to two ticks
@bleak osprey what account is configured in the db?
@patent monolith one with * for Pterodactyl and one with panel.* for LP
@sudden needle yeah, it's strage that it would be doing that... what plugins do you have?
strange*
@bleak osprey are you using the root account?
@bleak osprey are you using the root account?
@patent monolith nope. just an account created for LP
try configuring an account 'root'@'<address of server in relation to database>
in your case, 'root'@'localhost'
u7_3m3xUJTBnn | 127.0.0.1
i have minimum plugins
it looks like this @patent monolith
@sudden needle you are using poket games? how is it?
omg i love it
omg i love it
@sudden needle i not sure if i could buy it π
gamebox is similiar but free
uh
i just bought it for the gemcrush games :p
really? i will have a look at it
while im working i can just leaisurely play xd
while im working i can just leaisurely play xd
xD
pocketgames has so many fun ones too!
Pretty cool!
CREATE USER 'u7_3m3xUJTBnn'@'localhost' IDENTIFIED BY '<YOUR PASSWORD>';
GRANT ALL ON panel.* TO 'u7_3m3xUJTBnn'@'localhost';
that and benz made it so i have to say it's pretty cool
@bleak osprey does it give messages in console?
that and benz made it so i have to say it's pretty cool
@sudden needle iam using his jumppads plugin, kinda cool true.
I like his plugins, so iam thinking about to support him ^^
yeah! how is jumppads?
iam using it with the racing plugin, makes the races more unique
fun!
@patent monolith did it agin, bust still get an error from LP
stack
wanna dump in ```<>```?
even better lol
π
i found this on github https://github.com/lucko/LuckPerms/wiki/Storage-system-errors
does it use ssl?
any VPS host reccomendations
ERROR 1045 (28000): Access denied for user 'u7_3m3xUJTBnn'@'localhost' (using password: YES)
lol
tried to login with this user..
try root?
oh, it doesnt like it?
idk lol π
what does lp say when you try configuring 'root'?
the same
ERROR 1348 (HY000): Column 'Password' is not updatable
i cant update the password
i know the root password, but i want to change the password of the LP user... because i dont get it why he cant login.
its running on Ubuntu 18.04.4
just delete the user and create it again
CREATE USER 'u7_3m3xUJTBnn'@'localhost' IDENTIFIED BY '<YOUR PASSWORD>';
GRANT ALL ON panel.* TO 'u7_3m3xUJTBnn'@'localhost';
``` did you use queries like these?
yes
root@v2202004118956114910:~# mysql -u Luckperms -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7209
Server version: 10.4.12-MariaDB-1:10.4.12+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use LP;
Database changed
MariaDB [LP]>
worked to this point
17:12:40 [SEVERE] Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
yes it does
dont you get a different error if it is an authentication issue?
storage-method: mariadb
The following block defines the settings for remote database storage methods.
- You don't need to touch any of the settings here if you're using a local storage method!
- The connection detail options are shared between all remote storage types.
data:
Define the address and port for the database.
- The standard DB engine port is used by default
(MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017)
- Specify as "host:port" if differs
address: localhost:3306
The name of the database to store LuckPerms data in.
- This must be created already. Don't worry about this setting if you're using MongoDB.
database: LP
Credentials for the database.
username: Luckperms
password: 'XXX'
looks like this
ok
Anyone know where in source code for a plugin I should look for the type of particle it uses?
hopefully not too dumb of a question
17:14:43 [SEVERE] Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=0.0.0.0)(port=3306)(type=master) : Socket fail to connect to host:0.0.0.0, port:3306. Connection refused (Connection refused)
Im kind of confused
yeah i realized that was for something else
why?
ok so
a few things
first, what is the name of the user that you configured on the db?
Luckperms
second, what database did you grant to it on the db?
LP
yes
ok
like u said
what query did you use to create the account?
I am owner of a server, and i can only access others echests i cant edit
i meant change it in the config to 0.0.0.0
@wraith dew ok did
and you still get the error?
@quaint shuttle what tool do you use to view other people's echests? essentials?
it might not work if they are offline
17:20:22 [SEVERE] Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
or it might not work if they have op
@bleak osprey did you have any luck on that github article?
nope π¦
Pterodactyl runs on 3306 too
nvm
it mariaDB 10, but works on 3306 too
ok but @patent monolith she was online, is it a perms thing? if so wat permission
'That the server is online & accepting connections'
iam not sure how to check this
check firewall?
@quaint shuttle what tool do you use to view other people's echests? essentials?
oh yeah, firewall
kek
To Action From
443 ALLOW Anywhere
80 ALLOW Anywhere
22 ALLOW Anywhere
2022 ALLOW Anywhere
8080 ALLOW Anywhere
25565 ALLOW Anywhere
3306 ALLOW Anywhere
3307 ALLOW Anywhere
Anywhere ALLOW 127.0.0.1 3306/udp
3306/tcp ALLOW Anywhere
3306 (v6) ALLOW Anywhere (v6)
3307 (v6) ALLOW Anywhere (v6)
3306/tcp (v6) ALLOW Anywhere (v6)
@patent monolith I use essentials
both
yesterday i got a ufw log... but i cant remind where i found this
actually that probably wont work
try creating a user like 'username'@'%'
@wraith dew this wont work to
heres what i suggest
yeet the entire sql server and get mysql
maybe that will work?
hes using a fork
yeet the entire sql server and get mysql
@patent monolith its mysql π
dont they have a mysql itself?
not in built
sure
mysql has to run as a separate service
mysql-server
i already tryed pma... but this wasnt useful
on apt-get
two databases?
but then my panel wont work
wait wut @bleak osprey
what is panel?
id try using mysql rather than mariaDB
there may be compatibility issues as LP probably uses the Mysql JDBC
there shouldnt be but idk what versions cant be used so it might work
apt install mysql
that article walks through how to do it
Luckperms prefer MariaDB over mysql.
@patent monolith iam using Pterodactyl, it uses mariaDB to create servers and store datas of them. this one works fine.
But if i create a user and a databse via SSH oder Ptero, they wont work.. idk why. The strange thing is: its all on one system, so i dont get it why the user of LP cant reach the databse it self.... The ports are free in the ufw, from ssh the user can login to his databse, but he cant from LP
Help, I've waited 2 days to be able to download a recource I bought and still can't!
Hi, I'm giving a group /rtp commands on luckperms but they can't use them
nor with wild nor wilderness
so basically, pterodactyl allow multiple mysql servers on one machine?
why?
so basically, pterodactyl allow multiple mysql servers on one machine?
@patent monolith idk, but iam talking of databases π
or resource
RedisBungee
Idk about the rtp but the widl and wilderness uses https://www.spigotmc.org/resources/wilderness-tp.18431/
My payment is still pending
It says it requires vault so i installed that too
@unkempt atlas in paypal or spigot?
Paypal
@silk nymph see if you can find out about the rtp command
Redisbungee has not accepted the paymnt
@silk nymph like to see what plugin allows it
The only thing it's looking like it could be is random teleport
but that is using /wild and /wilderness I thought
and none of them work which is a bit confusing, they won't show up in luckperms
Yeah they all come from it, should I just try a diff teleport plugin?
Not sure if anyone can help me, I've always used Pex and I'm trying LuckPerms now. It might sound stupid but how do I set a users group? I don't understand how it works, it just goes on about 'tracks' but I don't understand it
@gusty shuttle Tried this page? https://github.com/lucko/LuckPerms/wiki/Usage
@marble narwhal cheers mate. I didn't see that page, I was only looking at the Users subpage π
@gusty shuttle I use /lp user Govindas parent set Creator
Also are there any people in here who have experience with patching the server? I'm trying to change the most small thing in CraftBukkit as a test, but it isn't working :(
I've tried running the makePatches.sh, however when I build the spigot-server with maven it doesn't seem to work. Really new to this, so I'm probably doing something really stupid.
Hey guys, when I spawn an armorstand with packets and sets the passenger to the fake player a boat spawns instead, can someone help me out
PlayerConnection connection = ((CraftPlayer) p).getHandle().playerConnection;
EntityArmorStand stand = new EntityArmorStand(((CraftWorld) p.getWorld()).getHandle());
stand.setInvisible(true);
stand.setLocation(loc.getX(), loc.getY() + 10, loc.getZ(), 0, 0);
PacketPlayOutSpawnEntity f = new PacketPlayOutSpawnEntity(stand, 1);
PacketPlayOutAttachEntity a = new PacketPlayOutAttachEntity(1, entity, stand);
connection.sendPacket(f);
connection.sendPacket(a);
Is it possible to check if someone executes a command but still let other plugins do their actions?
ping me please :)
@frigid ember what is entity defined as in your attach packet
on command event @narrow crypt
[18:26:52 INFO]: UUID of player Creveoolus is 93150a1a-0864-371f-bfb7-2e820ae28f0d
[18:27:53 ERROR]: The server has stopped responding!
[18:27:53 ERROR]: Please report this to http://www.spigotmc.org/
[18:27:53 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[18:27:54 ERROR]: net.minecraft.server.v1_9_R1.BlockFlowing.onPlace(BlockFlowing.java:266)
[18:27:56 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
[18:27:56 ERROR]: org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261)
[18:27:56 ERROR]: org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198)
[18:27:56 ERROR]: org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145)
``` Whyyyy
@nova mural
EntityPlayer entity = new EntityPlayer(nmsServer, nmsWorld, new GameProfile(p.getUniqueId(), Color.color("stats")),
new PlayerInteractManager(nmsWorld));
v1_9_R1 Update your server. You're 4 years behind
Me? @subtle blade
Yes
1.15.2 preferrably. Again, you're 4 years out of date. 1.9.4 was released in May of 2016
Some may require updates, surely
Backup your server, update on a local copy and ensure everything works. This is generally how you should be updating your production server
ok
I have manyversions on it
can i upgrade it only to 1.12?
@subtle blade do i need upgrade to 1.15? (srry ping)
anyone here use hibernate jpa in conjunction with a spigot plugin
Hey guys, how do I add a fake player to a scoreboard?
What I'm trying to acomplish:
I'm trying to hide the fake players name plate
What I currently have:
EntityPlayer entity = new EntityPlayer(nmsServer, nmsWorld, new GameProfile(p.getUniqueId(), Color.color("stats")),
new PlayerInteractManager(nmsWorld));
/*team add <team_name> [display_name]
team join <team_name> @a
team modify <team_name> nametagVisibility never
*/
Scoreboard sc = p.getScoreboard();
if (sc == null) {
sc = Bukkit.getScoreboardManager().getMainScoreboard();
}
sc.registerNewTeam(p.getName());
sc.getTeam(p.getName()).setNameTagVisibility(NameTagVisibility.HIDE_FOR_OWN_TEAM);
sc.getTeam(p.getName()).addEntry(p.getName());
sc.getTeam(p.getName()).addEntry(entity.getName());
So adding the entry is enough?
didn't you tested it already?
Yeah, it's not working
Hello. What should i use instead of block.getData()? It's been marked deprecated for centuries
This is my code:
final Player p = (Player)sender;
if (!cmd.getName().equalsIgnoreCase("nieuws") || args.length == 0) {
p.sendMessage("Β§3Use: Β§b/nieuws <Message>");
return true;
}
if (args.length > 0) {
String msg = "";
final String[] arrayOfString = args;
for (int j = args.length, i = 0; i < j; ++i) {
final String message = arrayOfString[i];
msg = String.valueOf(msg) + message + " ";
}
for (final Player p2 : Bukkit.getServer().getOnlinePlayers()) {
if (p2.hasPermission("nieuws.use")) {
Bukkit.broadcastMessage("Β§7[Β§9NieuwsΒ§7] Β§r" + msg);
}
else {
p.sendMessage("Β§cJe hebt hier geen permissions voor!");
}
}
}
return false;
}
}```
Colorcodes are not working, how can i fix that? https://gyazo.com/6cb2d17fded7855c2088a03ccc91928f
please advise flags to start the server, but not the aikar.
@frigid ember which ide do you use?
ChatColor.translateAlternateColorCodes('&', string)
That isnt my question
Use it
Oh thanks
Or just use the ChatColor constants
Donβt use section symbol in source
translate method should only be used for user input, not hard coded values
Alright thanks
Anyone know how frequently the position change packet fires in terms of yaw and pitch?
Like will that fire no matter how small the change in yaw / pitch is
Iβm assuming yes but I figured Iβd double check before I got too deep into what Iβm doing
is there an NMS way to get the amount of ticks needed to mine a block given all the conditions of the player?
well, yes there is lol, but would anyone happen to know how?
afaik that's all determined by a block's hardness. How that's converted into ticks, I'm unsure, but at least you've got that info lol
yeah, I was planning on using the hardness at first, but after some scrolling on the wiki I realized that there is too many conditions
How can I make it so an item can't be used for normal crafting recipes
if some one hase some knowledge about MySQL or mariadb, i would be glad about some help for LP π
you don't know that
but you're doing it while something down the nms was iterating over
im not doing any path finder stuff i promise
show what code?
i dont know which plugin is causing it
you're not a dev?
How can I make it so an item can't be used for normal crafting recipes
i am a dev yeah
a plugin dev or a server dev? π€
server dev we have our own plugin but we have a ton more too
@blissful verge you would have to use nms to iterate through existing recipes and disable any with that item
@green hornet iβm gonna assume itβs solinia3core as issuing that command caused the issue
i think you might be mixed up
somewhere within that plugin a hashmap is being modified while itβs being iterated
You issued a solinia3core command
And then immediately
an error came
but the error stack says entity join world , and that command just stores a string in a hashmap
I didnβt see the join event
i pointed red lines up the stack from where it started
If i were to guess
Iβm gonna go with you tried to send an iamversion command
But reflection couldnβt find your version
Iβm reading the Ticking Entity trace
reflection isnt being used for iamversion
And am going to assume that there was a problem with your iamversion command
all i can think of is that mythic mobs does something with the path finder goals when npcs are activated on login
Do you ever pull version number for any reflection?
You setting the version will mean StateManager will update
iamversion is just a command they type when they login that has a string argument
the server puts what they send in a hashmap against their playerid
where as that error said the entity pathfinder goals had a concurrent modification to it
or something it is reading during goal processing
dont suppose it could be removing an entity?
i can try run next tick
(I don't kwon if i should write this here, if not tell me where I should) i'm trying to sign up into the forum but some errors appear on the side of the field saying for example "The field '48daef6afe775d918478200dd3e0234d' was not recognised." and when i press Sign up i get back to the sign up screen with every field black and i get a red message Login screen:https://imgur.com/DffHz65 Error message screen: https://imgur.com/acjCuI8
What browser are you using?
Hello, can I ask here some help about the groupmanager api?
Sounds stupid but give it a shot with another browser. Even Edge if you have to
GroupManager's dead ;P
It should hook into Vault
In fact, I believe Vault has a default implementation for it
yup ^
I'm making a plugin that sets the prefix of the player in the tablist, our server opens tomorrow ^^"
And we are in 1.8.8
hi
is it possible to put 4g and 500 mega of RAM?
in the script
in the java -Xms10G -Xmx10G
our server opens tomorrow
oh neat
And we are in 1.8.8
OH NEAT
π lmao
Probably just wrote "Killed" in your start.bat or something
screen -S Magictiger java -jar spigot-1.15.2-R0.1-SNAPSHOT.jar
idk but i dont think so
Whatβs that start.bat?
Iβve never seen it befor
Iβve never seen anybody use it before either
Unless ?
run.bat, start.bat. Whatever you call it, a batch file to more easily start your server
I haven't had to touch netty in a hot minute, can someone hear me out real quick
*help
I'm trying to grab the channelpipeline, but NetworkManager no longer carries the channel property?
that's the exact code I got from one of my old listeners
Could be intellij wigging out
Guess I'll clear my cache and see if that fixes it
idk lol
It's kinda annoying when I load in all my files but my cache is corrupted
so all I see is red
but other than that it's not bad
because if they have a cache at least it has to work?
:^)
i always run into cache problems on intellij
No matter the computer I use
idk why
oh crap that was me
I knew something was wrong when she sunk her teeth into my neck like a vampire
It's ok invalidating and regenerating caches fix all problems :^)
yeh it do be like that sometimes
but what's that cache even do?
look it up
watching a movie rn
then why are you here
whatever, am out
because discord is not distracting
is it a heavy task if you read data from files ?
My netty is outdated as hell haha
I just found the function
static Channel a(NetworkManager networkmanager) { return networkmanager.i; }
wait
why did i set every player
to have their own pipeline
every player did have their own pipeline
couldn't tell you why
What does people here use to backup their servers? I have a bungee server, and want to backup all worlds twice a day, and the whole server directort every week. MySQL databases twice aday aswell.
Is cron tasks the way to go?
why do you ask us
its a small currency plugin
even ram is slow for some operations
and idk how to cache it
yeah but like the whole read from files on enable/disable is kidna tricky for me
use a sql database
i've done something here
every player interaction is done async
to prevent lag
while some calls are still done on main thread because vault needs them
Any idea why setNoDamageTicks would not be working? I set the players noDamageTicks to 0 yet getting the value directly after setting it, getNoDamageTicks still returns the same value before it was set.
can we get plugin help on this?
open nms and look
I made a armor with potion effects but i want to make it so only if u have the armor on then u can get the effects, how do u do that?
I guess that could work for debugging purposes, but I can't use nms as the plugin is cross-version compatible
then you probabily should check your code π€
me?
@agile whale you can be cross-version compatible using nms by accessing it through reflection
Yeah but thats not really what I'm looking for. I'm asking why setNoDamageTicks would not be working in the first place
decompile bukkit and look how it handles that number
where are you doing setnodamage ticks? π€