#help-archived
1 messages · Page 182 of 1
ok thanks again!
You'd compile it just like you do any other plugin
You'd need a pom for that, but sure
I don't know, it depends on the plugin
Because the pom describes all the dependencies and I don't know which dependencies are needed for the plugin in question
I'm fairly certain you can also compile it simply using IntelliJ as well
But I've never used IntelliJ so I don't know how
You can just google for it
No
in theory that shouldnt have any dependencies outside of spigotmc, just a simple boilerplate pom with the added spigotmc repo and dependency should be just fine
I use VS Code
i mean you could also look through the class files and see what exactly is imported
then add dependencies for those
If you decompile it and add it to IntelliJ, it should clearly show which imports are missing. So if it's only bukkit ones, then the spigot dependency would suffice
(Which is another way of saying waht IsabelLomass already said)
what is the errors you're getting from the mc server? @meager hawk
nothing it just dsnt show up in /plugins
so idk
i followed a yt tutorial everything went well till the .yml file
if you check the console is there any error messages from the plugin? or like literally nothing happened
what happened with the yml file?
kk
?paste
?paste
@meager hawk no copy and paste your code into that hastebin and then save it and send us the link.
but it has nothing to do with the code
@meager hawk I know that it’s easier to read if you post it there and send us the link
No key position_predicate in... you're looking for a key in something which doesnt have that key
@bleak osprey it's a vanilla bug, you can safely ignore it
No key position_predicate in MapLike[{input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:dirt"},output_state:{Name:"minecraft:water",Properties:{level:"0"}},location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"}}]```
or i dont see it at least
oh
ok
ok thx 🙂 +
np, here it is btw, https://bugs.mojang.com/browse/MC-191388
@warm stirrup did you see my msg?
i did. im not sure how to help you with it though because im not an eclipse user
ay
anyone knows how to create clickatable text in book?
pretty sure you use TextComponent still
from there you just set the hover and click event
https://cdn.discordapp.com/attachments/733707922147639317/733707930804813845/unknown.png
@warm stirrup anyone has an idea to fix this?
whatever editor you’re using doesn’t support the creation or editing of .yml files. I’d switch over to IntelliJ tbh watch a tutorial on how to set it up and export projects.
no idea. not an eclipse user its @meager hawk's problem they got
whatever editor you’re using doesn’t support the creation or editing of .yml files. I’d switch over to IntelliJ tbh watch a tutorial on how to set it up and export projects.
@balmy sentinel its just eclipse
ye if ur a HS student you can get IntelliJ for free for like a year or two i forgot exactly how long
totally worth it to just use that cuz eclipse is a bit outdated
or college edu email
no it’s not. If you read the error eclipse it trying to find something that is compatible for editing .yml files
does it work in europe?
yes...?
I’d watch a video on IntelliJ far more powerful and there is a free version that works perfectly fine.
okey
Make sure to find one that shows you how to import/export projects.
How do I get or set the item that a fox is holding?
how do i check if the player is building on the PlayerInteractEvent event
@balmy sentinel none of equipment methods work.
@stuck quartz why not use BlockPlaceEvent and BlockBreakEvent?
@balmy sentinel i'm using PlayerInteractEvent to detect when the player tries to open a chest, but now it detects when the player is placing something aside a chest
@spring nexus idk I was reading this thread, https://www.spigotmc.org/threads/sovled-set-mob-held-item.66123/
@stuck quartz There is an event.getAction() in PlayerInteractEvent just check if they’re left or right clicking an item then check if that item is a chest
right clicking
i already checked
RIGHT_CLICK_BLOCK
actually i might check if the player is shifting
Why use PIE
i'm using
PlayerInteractEventto detect when the player tries to open a chest, but now it detects when the player is placing something aside a chest
@stuck quartz
Thats right click a block?
so what’s the problem?
but now it detects when the player is placing something aside a chest, and it cancels the event
but the player is going to be clicking the chest to place something aside it
like a sign
Hello! what do i insert here? do i have to insert my paypal email account or should i use some sort of link?
That’s weird, it would be shift right click block
i know, thats waht i siad
actually i might check if the player is shifting
@stuck quartz
Do that?
https://pastebin.com/pL0NWv2v when loading up my server, I get a bunch of these errors. anyone know why?
plugins
Do that?
@naive goblet i would, if i hadn't to answer questions
its not solved yet, i'm going to try something
Well that part was solved right?
not exactly
there she is 🙂
Overbloxed wth, what’s up with that. Is it solved or whatever say that instead of casually answering my question then? Now, let’s not make this an argument and instead focus on the actual issue.
anybody know a plugin that lets you edit vanilla enchantments and add your own ones? for 1.16
You cant do that as enchantments in the enchanting table are tied to the client rather than the server
If named books/lore are enough there are plenty free ones
Hello ! I would like to know if anyone knows why when I setType a block in Tall grass to Half.TOP it automatically gets depoped?
Try doing it but not applying physics
How can I do that 🤔
declaration: package: org.bukkit.block, interface: Block
👍
now its solved @naive goblet, i checked if the player is sneaking and there is a block in his hand
Try doing it but not applying physics
I do it but my tall_grass remains small :c
Does anyone know looking for a plugin for chestcommands alternative to 1.16?
1.16 is new
just wait
nobody is gonna build an alternative over night
especially if it's a big project
DeluxeMenus is probably going to be updated in a few days
@loud kindle I need your help it's urgent
Ik I am tagging a staff member everyone don't panic
I need this resource to be re-named as soon as possible because It is using a religion god name. Which is mine religion as well. https://www.spigotmc.org/resources/shiva.65014/
You just can't use that name unless for religious purpose
and I am dead serious about this
It's hurting me so much from inside I cant tell right now. Whoever did this ain't gonna be gone forever. Whenever I try contacting the author I get this.
Requested User Not Found
you probabily have a better luck pinging ford imo 🤔
The author most likely will change it back
@wraith thicket
Not sure if they will do
cuz I think it's not a author it's a bot or spammer
it says Resource Posted Today and Author Not found
Also not sure if its gonna be changed at all😂
yeah, the author will just change it back to Shiva
By that i mean i can also go claim Essentials as a religious name and demand it to be changed
how do i check if a Block is a WallSign
Block.gettype == Material.wallsign
gee no way
i want to check if a Block is a WallSign of any type of wood
then check for all the types
oh god
Or check if it implements Sign or smthng
oh i have an idea
from what version
Yeah we got a buncha new ones
idk 1.13 mayb
lol
Block.getBlockData() instanceof WallSign
im playing mc since 2011 and idk about it)
how do you know about blockdata but not about ==
Oh boy
i do know about ==
👌
hey here i have one small problem, i created book with TextComponent - Click and Hover event in book, but it does nothing, only shows that text - https://paste.helpch.at/egiyopofat.cpp https://prnt.sc/tjr01d
cause you're setting the page to NormalMap.getText
you can't create a basecomponent then simplify it to its getText and expect it to still work
anyone know solution?
use BookMeta.spigot().addPage(BaseComponent)
declaration: package: org.bukkit.inventory.meta, interface: BookMeta, class: Spigot
you're improperly using setFormat probably GoDead
i dont want to add new page
then use setPage
oh
look at the javadoc that i linked
how do I use it D:?
what code do you have rn?
1 sec
this
event.setFormat(rank + ChatColor.RED + player.getName() + ChatColor.WHITE + ": " + event.getMessage());
event.setFormat(rank + ChatColor.RED + "%s" + ChatColor.WHITE + ": %s");
should fix it
Format should not include message by default
first one is player name, second is the message
so no
the first %s is the player's name, second %s is of course the message
how can I prevent the player from typing %s and messing it up?
you use the code I gave you
@torn robin i need to set it to List<BaseComponent[]> ?
okay
yes, a Base Component[] per page
or you can specify a page
setPage(page, basecomponents)
ehmmm.... how to do it?
you were looking at setPages
how to create and set taht Base Component?
look at the methods for TextComponent
one of them converts it to a Basecomponent[]
public void onArmorStandInteract(PlayerInteractEntityEvent event) {
Player player = (Player) event.getPlayer();
if ((event.getRightClicked().getType() == EntityType.ARMOR_STAND)) {
player.sendMessage("Success");
player.openInventory(headPose.openInventory(54, "&6Head Pose"));
}
}```
also please learn java conventions
What does this do ?
did you not write it?
no , i found it
im curious, why are you asking?
when you rightclick at armorstand it send you a message success
and opened inventory headpose
it also throws a ton of NPEs
yes xddd
?ask
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.
?help
What NPE could that throw
?ask
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.
headPose only, didn't see it was InteractEntity
Assuming headPose could ever be null at that point
yes
did anyone say java basics
where does it say its free until 2021
It used to say that, no idea where it went
does .create not exist
no
Arrays.asList(
.setExtra(); only
I see I was pinged for something - must have been half an age ago as I can't see it
I need this resource to be re-named as soon as possible because It is using a religion god name. Which is mine religion as well. https://www.spigotmc.org/resources/shiva.65014/
You just can't use that name unless for religious purpose
and I am dead serious about this
It's hurting me so much from inside I cant tell right now. Whoever did this ain't gonna be gone forever. Whenever I try contacting the author I get this.
Requested User Not Found
Fr33stylerToday at 9:56 AM
you probabily have a better luck pinging ford imo 🤔
lmao nice
image is probably better 🤔
too much work
I have the image copied
then send it pog
sounds like some other stuff that's been happening lately...
unfortunately
y'know, list to another type of list
If there's an issue with a resource, use the report button.
@frigid ember Arrays.asList might work
won't that turn it into a List<BaseComponent>
prolly
i forget what the proper method is to convert it to BaseComponent[] (TextComponent -> BaseComponent[])
list.add(components.toArray(new BaseComponent[components.size()]));
has to be done with that I think
I used a lib that required List<BaseComponent[]> (but the component was a list as well)
hideous
yes
List<BaseComponent> list = Arrays.asList(NormalMap);
vb.spigot().setPages(list);
??
i really dont understand you guys i have this code:
and i need that NormalMap get into List<BaseComponent[]>?
and then make vb.spigot().setPages(List<BaseComponent[]>);?
@torn robin
?
I tried this event.setFormat(rank + ChatColor.RED + "%s" + ChatColor.WHITE + ": " + "%s");
but the message is also the name
Hey, does anyone know how to create a custom inventory? I'm confused on how to do it.
rip
nah
that's just a way of referencing an existing inventory i gather?
no?
it would've been a mistake same as how new ItemStack is
public final Inventory createGui(String title, int size) {
return Bukkit.getServer().createInventory(null, size, title);
}
Hello guys, if I want to add a craft with any type of wood, which material should I choose ?
im bad at coding with bukkit
so thx
you’d have to use the class that supports multiple item stack types
RecipeChoice iirc
Ok thanks !
store a item inside another item,itemception
I see wood everywhere 🤪
whos questions are still open?
wasn’t aware we close questions
who still needs help
ME PLEASE
What are you trying to accomplish, break it into pieces
I could actually use some help. question was left unanswered yesterday.
Meat got stuck in toaster,instructions unclear @inland oxide
So I started adding permissions yesterday. yaml permissions: uhcp.*: description: Grants access to all UHCPlus commands default: op children: uhcp.preset.*: true ... uhcp.preset.*: description: Grants the player access to all /uhcp preset <arguments> commands default: op children: uhcp.preset.create: true ... Situation is as follows. Now the question is. do children of uhcplus.preset.* also become children of uhcplus.*?
"%s" is typically using in String.format, so like event.setFormat(rank + ChatColor.RED + String.format("%s", rank) + ChatColor.WHITE + ": " + String.format("%s", player) );
or you can just used the string
keep it as %s
ggtg
spigot formats it after
Hey guys, is there a minimum of mob-spawning-chunks or view-distance chunks for patrols to spawn? Since I lowered it on 5, I didn't found any patrol spawns on my server. (Didn't tried on higher for now)
So I started adding permissions yesterday.
yaml permissions: uhcp.*: description: Grants access to all UHCPlus commands default: op children: uhcp.preset.*: true ... uhcp.preset.*: description: Grants the player access to all /uhcp preset <arguments> commands default: op children: uhcp.preset.create: true ...Situation is as follows. Now the question is. do children of uhcplus.preset.* also become children of uhcplus.*?
@light geyser This is plugin.yml, by the way 🙂 ... indicates there's more there, but its of no importance to the question 🙂
I have not yet. but I will later once I get it implemented in all commands 😄
👍
is it possible that even with pandawire, players still manage to lag the server with redstone so much that the spigot watchdog takes over?
Yes
how can i get the chest Block from Inventory
You can’t explicitly
getHolder()
don't teach people about invholder pls
In this case it’s proper usage
Well it's the only way to get it
You need to do some instanceof checks to make sure its a Chest or DoubleChest
is there any way to set a crop age to 7?
sure
^ i already have the block data and stuff, I tried using metadata, and ageable, but doesn't seem to work
are you doing .setMetaData() after you modify the metadata?
no, i'm using block.setMetadata(<age thingies>)
i'm basically doing this
b.setType(Material.CROPS, true);
b.setMetadata("age", b.getMetadata("age").get(0));
but that doesnt seem to work
no, that's not it. One second
yes, that's it
yeah i saw spigot and stackoverflow, and they used setData but it's now deprecated, so I trieeed doing my own one but it doesnt work
Get it’s blockdata cast it to ageable then setBlockData
Block block = someBlock;
BlockData bd = block.getBlockData()
if(bd instanceof Ageable) {
Ageable ageable = (Ageable) bd;
ageable.setAge(getMaximumAge());
block.setBlockData(ageable);
}
thank you both! I will try with your solution craig
Alright, im tryin to get a custom no permission message, and i dont know where to find the messge for some plugins, anyone know it for ClearLag?
Don’t forget block.setData
o
it's at the end
isn't that deprecated? setBlockData is not resolvable, nor the BlockData type
Does anyone know the replacement for PlayerPickupItemEvent? its depricated
^
in IntelliJ how do I open up the Maven compiler
Thats odd, eclipse shows this The type PlayerPickupItemEvent is deprecated
It is
Is there any kind of plugin that easily allows you to code a minecraft server so that, given any kind of condition, the server will execute a command?
Its changed now to EntityPickupItemEvent
huh, neat
Yeah needed it before saw its deprecated so i checked javadoc
And it pointed to it
oh mb i should have said my version, i'm using spigot-1.8.8-R0.1 maybe thats why?
Reading java docs help ( ͡° ͜ʖ ͡°)
Yeah that would have helped lol
Thank you, ill change it over then 😄
Ikr wtf only nerds read javadoc😂
They didn't do it that way back then
Ugh 1.8
Is MaterialData available?
yeah it is available
Not sure dont think we have docs for 1.8 anymore
I mean you can just do setData(7), but
There's a "nice" way to do it with MaterialData
Boy 1.8 was quite a mess from 1.16 pov
ah nice, it seems to be working with b.setData((byte) 7); thanks!
here's now
Block block = someBlock;
MaterialData md = block.getData;
if(md instanceof Crops) {
Crops crops = (Crops) md;
crops.setState(CropState.RIPE);
block.setData(crops);
}
monkaS
Are there any ways to optimize elytra flight other than limit the speed?
Decrease durability faster forcing to repair often Kappa
I mean something that is not affecting the gameplay
Want to be a dick? Do as a friend requested,getting hunger while flying,have fun flying more than 30se without starving
is there like changing PerPlayer RenderDistance? if there is, you could try do that while on elytra
Chunka still get loaded
but not that much
Its client sided
rip then
is there like changing PerPlayer RenderDistance? if there is, you could try do that while on elytra
@sinful spire that's what I want. Not sure how to do that
So basically I can connect to other servers fine but I can't connect to my hosted server, I join, does nothing then kicks me for client side peer or something like that
If a player sets render distance to 1 it still loads 6 chunks or config number
^ i mean overwritting the config but to one player
Dont think its possible without breaking some logic
ProtocolLib could do that probably
Still sketchy..
If a player sets render distance to 1 it still loads 6 chunks or config number
@vernal spruce there are one chunk trails from elytras on 2b2t. I want something similar
hm
Thats a custom made chunk loading/unloading plugin
oh, go for it then
Thanks
So basically I can connect to other servers fine but I can't connect to my hosted server, I join, does nothing then kicks me for client side peer or something like that
:)
seems like it just takes the player and int ```java
player.setViewDistance(d);
So if I set the distance to 1 would it load only one chunk and not the chunks around?
An actual error or log drom the kick message would be more helpfull than "or something like that'
seems like it
is there a way to get what hand the player used to damage? 🤔
Ok, I'm gonna try that then, thx
I mean dont think you can damage someone with offhand(unless bow)
Like you seem to only be able to use the item rather than hit with it
i think you can with bow, trident, crossbow and thats all
Is it possible to select the server connection destination with the BungeeCord API?
and change it in real-time
But they are not directly tied to hand used afik
what do you mean select?
that's good to hear
make the proxy decide the server that the player will connect to upon connecting to the proxy
would i have to cancel ClientConnectEvent?
and immediatly send him to another one or something
you could probably take a join event and then ```java
ServerInfo target = ProxyServer.getInstance().getServerInfo("servername");
player.connect(target);
cancelling it would probably disconnect you
why not just change the priorities and connect him to a server?
does anyone know the replacement of PlayerCommandPreprocessEvent#getRecipients? spigot's javadoc wasnt of any help
since that method is depricated
since that method is depricated
@light geyser if its deprecated it has a reason next to it
Usually pointing to the new method
getOfflinePlayer(String) tho
yeah
Hmm post the link
Hello ! I want to place TALL_GRASS, with a half top, problem is when I set the half to top, my block is broken, someone have an idea ? :c
Wat
That doesn’t make sense
What are the recipients to a command
What are you trying to do
Ahh its one of the "dont touch events"
I need to reread myself on thato ne MSWS lol, just going through the projects replacing depricated events
I don’t understand why you’re trying to look at it
Its most likely deprecated but still there as some old plugins still use it
Mkay I see, I wanted to block spectators from messaging survival-ers, using /msg etc
Only recipient that would make sense would be Console
I would probably just set permissions per game mode then
Though I could just do event.getMessage().split(" ")[1] and then Bukkit.getPlayer(whateverIsTheOutputOfThePRevious)
pseudocode^
Spaghetti to it’s extreme I think
Possibly 😇
Id just make a custom /msg command
That way you don’t have to mess with permission injection
well I dont want to modify the entire command, just this one party
Yah but it’s pretty simple to recreate
And it’d be a lot easier
Otherwise you have to listen to all commands
Listening to all commands isn’t that bad if you bail out quickly
I can’t imagine they are run that often
if(Bukkit.getPlayer(commandParts[1]).getGameMode().equals(GameMode.SURVIVAL)) {
event.getPlayer().sendMessage(ChatColor.RED + "You may not whisper to players who are still playing!");
return;
}``` does the trick I think
And I need to listen anyways, because I have to listen for other commands as well
Md once said there are methods wich shouldnt exist but they were so used theycant just be erased
@col ive got a length check above, so shouldnt be necessary
is there way to use NMS (BlockPosition or Vec3D) to get the type of a block?
I'm trying to avoid using Block or Location
Y
Both of those don’t store the world
I think at least
@light geyser he means Bukkit#getPlayer
I remember using these somehow to get block type like 3 years ago, but I forgot how to do it
ahh, yes thats a good one
Guys
I need a plugin that let's me explode obsidian with TNT but one that works on 1.16
Because ObsidianDestroyer is for 1.15
ok back
it would probably work
Can someone please help me with my bungeecord server showing this error: Could not connect to a default or fallback server, please try again later: io.netty.channel.ConnectTimeoutException
The spigot server IS online & running
This is only happening to some servers on one host, but when I try on a different host it works completely fine. Can someone explain why this is happening?
I've tried everything even re-installing the spigot server
checked firewall?
How can I do that?
if youre on Ubuntu, use sudo ufw status
just to be sure, are the spigot server(s) and bungee servers on the same host?
do you have Windows or Ubuntu on there?
just to be sure, are the spigot server(s) and bungee servers on the same host?
@light geyser yes
do you have Windows or Ubuntu on there?
@sinful spire ubuntu
18.04
and I have installed pterodactyl panel
Bukkit.getPluginManager().callEvent(new EntityDamageEvent(player, DamageCause.ENTITY_ATTACK, baseCase));
is this the proper way to damage a player?
if youre on Ubuntu, use
sudo ufw status
@light geyser https://imgur.com/a/RwcZr9N
you need to allow ports that you use
on spigot
wait nvm
pterodactyl uses docker containers
since you use pterodactyl. have you assigned the ports to the servers?
since its one host UFW doesnt do anything with the traffic
since you use pterodactyl. have you assigned the ports to the servers?
@light geyser uhm you mean this? https://imgur.com/a/3m0LcAn
I cant load the image due to my network speed, unfortunately. Could you explain in words?
I use pterodactly myself as well, so I can follow 😄
you could try ufw allow 25564 then 25563...
can you disable ufw? what
i think in the node settings
@sinful spire here? https://imgur.com/a/5665FlF
but I recommend against it
@frigid ember can't just use player.damage(amount, source) ?
also really do you type 0.0.0.0 in pterodactyl? is it really that why it didnt work
Which recommend? Eclipse - Visual Studio - IntellIde
dammit i used 127.0.0.1 and the node was dead
@trim lodge I use Eclipse
also really do you type
0.0.0.0in pterodactyl? is it really that why it didnt work
@sinful spire i don't think that's the issue. I've had pterodactyl panel on other vps and it worked with 0.0.0.0
127.0.0.1 probably would mess things up because docker
@inland oxide What do I put in for source
uhm so what can I try?
You cant use 0.0.0.0 for the container IP, since well thats not how it works, but you can for IP allocation for the node
i tried making pterodactyl for 2 months and i get the response why it didnt work after i made it with screen on ubuntu -.-
time to change to pterodactyl
also Real try ufw allow it
also Real try ufw allow it
@sinful spire every port?
@frigid ember an entity
yeah, you could try
No, dont open every port, just open the ports you need to
yes
on a server
though I Dont think itll affect much, since its all on one host
well yes
and if its not open rip
do i need to restart the vps after or no?
i dont think so
if your bungee is on port 25565, and a server on 25500, then you only need to open 25565
there was something like ufw reload
i needed to open 25564 for hub etc
with pterodactyl
yes, but not through UFW
if your bungee is on port 25565, and a server on 25500, then you only need to open 25565
@light geyser bungee is on 25565 and that was already open
I didnt 🤷♂️ think you messed something else up then
Then you shouldnt have to modify UFW
docker is kinda useless when you host only yourself and not like a public host
not really imo
@stone patio Figure out the IP of your docker container, put that in the bungee config
it has some cool features, but why
how do i do that?
I dont remmeber the exact syntax, but sudo docker ps mightshow something
docker ip showed up after i ssh'd into my server, if you didnt change the startmessage
I dont remmeber the exact syntax, but
sudo docker psmightshow something
@light geyser it just shows some 0.0.0.0 and ports and ids
you'll have to google some then, I would but my connection is painfully slow
google what exactly?
Usually on the VPS, all the ports need to be opened that will be used by the containers. On each container, in Ptero, you need to assign the ports accordingly in order for the port to work with the bridged interface on the VPS. The other containers should be able be accessed by the IP of the VPS bridged. 0.0.0.0 just means listen on any interface, which works well for when you are on a container and the IP is assigned by the bridge. The problem is that on a container 127.0.0.1, refers to just in that container, and if you are trying to setup bungeecord with multiple servers each on a container, then none of the IP addresses for the servers should be 127.0.0.1, but probably should be either the IP of the bridge device or WAN port.
'get docker container ip' or something
docker inspect <container_id>
Usually on the VPS, all the ports need to be opened that will be used by the containers. On each container, in Ptero, you need to assign the ports accordingly in order for the port to work with the bridged interface on the VPS. The other containers should be able be accessed by the IP of the VPS bridged. 0.0.0.0 just means listen on any interface, which works well for when you are on a container and the IP is assigned by the bridge. The problem is that on a container 127.0.0.1, refers to just in that container, and if you are trying to setup bungeecord with multiple servers each on a container, then none of the IP addresses for the servers should be 127.0.0.1, but probably should be either the IP of the bridge device or WAN port.
@inland oxide uhm maybe if it matters, i used a script to install pterodactyl as i'm really new to these things
well, most stuff on ptero is setup with a script (egg)
you used this right? https://github.com/vilhelmprytz/pterodactyl-installer
but you would install bungee on ptero, then assign it the port 25565, then you would create the other ptero instances for each minecraft server and assign them different ports.
i'm thinking it's the vps provider because it worked perfectly with other ones
I need a plugin that let's me explode obsidian with TNT but one that works on 1.16
Can anyone help me with this?
why did you change then
reasons
Janny, ObsidianDestroyer should work it doesnt have anything that isnt in 1.16
But key point is on the BungeeCord ptero/docker container, you need to make sure the IPs in the config.yml are not localhost, since that refers to the bungecord container.
nice
The need to point at the WAN address or at the Bridge Interface address.
Thank you @light geyser @sinful spire & anyone who helped 😄
i need to install pterodactyl now.. dammit
I wouldnt say you have to but
i wonder if my laptop will handle it
Ptero adds some performance penalty
no i just dont like the screen interface
I notice that primarily with iowait
it limits the logs to like 10 lines
cant you like > log.log or something?
nope
damn
looked a tmux yet? ive heard good stuff about it
ok nvm that code is 1024 long
i did
but i cant find anything about it, because theres a android app named like it
and 10 lines logs as in 10 lines of scrolling back up?
no you cant scroll
oh wait, its tmux not termux? dam
yeah tmux is screen but different, termux is the android app
tmux is better because its has ids like "minecraft-bungee"
not "129512.minecraft-bungee"
and you can automate stuff with scripts
Good land clamining plugins?
uhhh GriefPRevention I think
^ i've used it for years, never had an issue with it
^^ yeah its good
Ok i am of confusion:
timesRan++;
System.out.println("RANTWO: " + timesRan);``` timesRan was 0, then I increment, then its still 0 🤔
its an Integer
uh what
yup
Code is ran inside a BukkitRunnable, static int timesRan
log is as follows lol: [22:09:10 INFO]: 0 [22:09:10 INFO]: RANTWO: 0 [22:09:11 INFO]: 0 [22:09:11 INFO]: RANTWO: 0 [22:09:12 INFO]: 0 [22:09:12 INFO]: RANTWO: 0 [22:09:13 INFO]: 0 [22:09:13 INFO]: RANTWO: 0
seems like its working
full code block: ```java
System.out.println(timesRan);
if(timesRan >= 10) {
player.damage(0.1);
} else if(timesRan >= 50) {
player.damage(0.5);
} else if(timesRan >= 100)
timesRan++;
System.out.println("RANTWO: " + timesRan);```
What is going on here then 🤔
oh god discord formatting
?paste
please
Of course
wait thats just a copy of hastebin 😄
And you cant shift-tab >.>
rip
it took it as a readme.md file lol
why you damaging the player for not doing runs?
oh nvm
now that i think about it
it makes sense
nah timesRan just means how often this BukkitRunnable has ran
its a runTaskTimer
i was thinking if it was some sort of minigame plugin
and it aint working like I want it to 😂
well, its a sort of easter egg
if a player has diorite in their inventory, they get damaged
my guy
is there a way to get block types from x,y,z without using Location or Block?
The community I develop this plugin for, has a certain grudge against diorite xd
do it for polished_diorite, diorite_stairs etc. i want to be in that community too lmao
ie 'birdpoop'
not checking for the stairs etc, since its inside a uhc plugin, i dont exepct people to craft that lol
you shouldn't damage someone for mining a block on uhc i think
hm getting block types wait
that, and I originally wrote the module in 1.15 when diorite stairs where it wasnt a thing yet 👀
ok that sentence is borked, but you get the gist
nah its just damage for picking it up ^_^
the longer they hold onto it, the more evil it gets
i mean the
is there a way to get block types from x,y,z without using Location or Block?
Is it possible to activate the tab completion only for the commands for which you have permissions? If I set tab-complete: 0 in spigot.yml all users can see all commands and if I set -1 nobody can see anything.
so ```java
p.getLocation().getWorld().getBlock(0, 0, 0).getType();
dont have to 🙂
I just want the damage to progressivly get worse if they hold on to the block longer
it is an item 🙂
That stuff all works, its just the incremental counter for the loop that doesnt, lol
oh maybe too many questions floating around right now
wish folks would just list the entire code rather than snippets
yeah
.... [20:18:12 ERROR] [LiteBans]: litebans-pool - Exception during pool initialization.
.... [20:18:12 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://localhost:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
.... [20:18:12 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)
.... [20:18:12 INFO]: Failed to connect to database.
pls help
https://paste.md-5.net/nugiheyeso.cs @inland oxide @sinful spire
@keen holly make sure your DB server is running
i declare it earlier in the class 🙂
ohh
public class ModuleDioriteDamage implements Listener {
static List<UUID> playersWithDiorite = new ArrayList<>();
static int timesRan;
static boolean warningGiven;
@EventHandler
public void onPlayerPickupItemEvent(EntityPickupItemEvent event) {
Item item = event.getItem();```
I am certain that my DB server is running
thats the top
@sinful spire
timesRan = timesRan + 1;
this can be written like this instead
timesRan += 1;
he starts with timesRan = 0
Just trying more simple things to get it figured out lol
But I'll let it rest for tonight and look at it tomorrow
Before the BukkitRunnable
Could you help me?
I declare them at the top of the class, initialize them above the BukkitRunnable
is there a reason you need timesRan nand warningGive outside of the runnable?
No
Uts just if I do it inside, it gets set to 0 every time
Everytime it loops that is
So I solved it like this
don't initialize it in the run method
thatt isn't what I meant
Just below runnable and just above run()
should work for you then 😉
Aren't the variables passed to the runnable going to be final unless they are threadsafe?
Thank you for that O.o
You are creating an anonymous inner class is what is happening
what is timesRan anyway, you don't show what kind of object it is.
don't make it static =/
Did you try AtomicInteger?
Nope, didn't know that was a thing
But I'll try Frostalfs solution tomorrow when I'm at my computer again, else I'll report again in here xd
your issue is that your objects are not public
therefore like any other class
you can't grab them
not sure if it will make a difference, but it's threadsafe
Well that's interesting, since it did work in my other class XD
BukkitRunnable() is being created as an anonymous inner class
random question: is minecraft single-threaded only for the sake of the world block/entity operations? or is there more
so basically you have 2 classes in one but the same rules between classes still apply 😉
(also yes i am aware there are more threads for netty and chat, but im talking about the core aspects of minecraft)
In this class it does work, so thats odd https://www.github.com/TheDutchMC/uhcplus/tree/master/src%2Fmain%2Fjava%2Fnl%2Fthedutchmc%2Fuhcplus%2Fworld%2FChunkGenerator.java
if so, what if there was a thread per world? this is more of a vanilla/nms thing not necessarily a spigot thing
Primarily for chunk initialization. Not sure about world/block operations.
i dont think minecraft supports multithreading
because the they are initialized at the top @light geyser and static
the ones you do use
i know, but i just have ideas if they did
Fair 🤔 ill implement your solution tomorrow
is there any way to pass outdated client errors to the player on a bungeecord network? I had a player get disconnected from both servers for being outdated, but all it said was failed to connect to default or fallback
the only multithreaded thing is lightning engine 😄
I thought it would be super convenient if each world had its own thread lmfao
it would be
then for 1v1s, i can spin up another world rather than another server
@sinful spire chatting is async as well
the problem is not creating threads, but syncronizing events and state.
basically what you want is another server started inside the already running server o.O
not inside the same jvm
some other server does this
i think it is cubemc or something
whenever you enter a 1v1, it will spin up another server (not world)
then i think it does some magic with bungee
Oh you want a method to spin up another server for worlds
hypixel has a lot of bungee servers when you play skyblock and other minigames
This is actually fairly easy to create. It is a bit of a tedious setup though before of things you will need to make this possible. But it is doable
yeah
what you need is to create a master VM image with all the things you want setup the services etc, then you just use some API methods for the VM to make a copy of the master image, launch the VM and then you need a plugin to add it to the server list 😉
I dont know bungee at all, but for now I will just make separate worlds
so*
@keen compass calling a subprocess?
I made this library like a year ago that allows you to spin up a sub-jvm and talk to it using its input/output streams
depends which VM software you use. Virtualbox you can run commands to get everything setup, and Java allows running commands 😉
Well can always make multiple new worlds run on different servers, and bridge them through bungee, but not sure there is something to handle separating the existing dimensions (world, nether, the_end) and provide a revised dimension manager.
the input/output streams would use something i made called a 'splitoutputstream' and 'splitinputstream' and it basically lets each side switch channels in the stream
If you just want custom worlds, can also look at MySQL Player Data Bridge to allow moving player data when moving between servers
and you can dynamically set the IP addresses on the VM without having to worry about setting that in the server configs 😛
then i would system.setout, system.setin to mimick the expected behaviour
after all that is done, a securitymanager can be activated
thanks for the advice
I think I will just stick to making different worlds
or just use the same world and make glass arena boxes LOL
well, what you are wanting is already possible. Just a lot more involved in the before hand setup stuff then what you are probably wanting 😉
it sounds really cool, but I dont need it. I was just wondering if there was a convenient way to do it
then there is always Slime World Manager
I was looking into this: https://www.spigotmc.org/resources/myworlds.39594/
the only problem with post startup world generation is lag in the main thread
at least with 1.16.x
if you decide to launch the worlds in the server. Generally not the ideal way to do it if you are creating worlds for the purpose of arenas lol
generally a lot better to just launch additional server instances instead 😉
arenas can be pregenerated and just reloaded, though.
if you want something like another survival world, yeh, maybe another jvm instance would fit the bill
.... [20:18:12 ERROR] [LiteBans]: litebans-pool - Exception during pool initialization.
.... [20:18:12 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://localhost:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
.... [20:18:12 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)
.... [20:18:12 INFO]: Failed to connect to database.
still need help. my database works, this same configuration worked on my old server.
say you wanted to spin up multiple private servers in jvm containers for players to access
This actually was done on a server in the past that I've played on
@keen holly just because it world on your old server doesn't mean it works everywhere
is the mysql server up?
yes
Then change the part of localhost to point to 127.0.0.1
i did that, no dice
then the server is not up
how did you migrate the database to the new server?
I dumped the databases and then imported it to the new server
and the users?
yes
[root@keen holly-panel ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.2.32 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Fri 2020-07-17 14:03:39 CDT; 1h 49min ago
then check the user credentials
How many minecraft servers would you guys recommend for a bungeecord network?
check that you can connect over 3306 to the mariadb server
you mean hub servers? like if one gets down etc
My friend has a dedicated machine, and he's willing to offer me a couple servers, im wondering how many to ask for
Its not going to have any minigames like skywars where you need tons of servers
oh skywars
The minecraft server is on the same server as the mariadb server
if you have an active community skywars need like 30 servers to be good
There shouldn't be a port issue
@keen holly what os?
CentOS 7
hey, is this discord for spigot in general or any plugin within spigot?
CentOS blocks ports by default, however it shouldn't affect the loopback address though =/
I'm not talking about skywars
mostly Spigot and BungeeCord, but some people may now plugins
Its going to have mainly core gamemodes
oh, depends on how many gamemodes you are going to have
I'll try doing that
@sinful spire but what would you recommend for like general, idk how many gamemodes im gonna have
Then how do you know how many servers you will need?
I'm saying an estimate of how many a good server should have in ur opinion :/
as many as you can run, there is no good amount or bad amount
So... is 3 regular servers and 1 bungee ok?
How many separate servers is "good" depends on the use case. You generally want 1 server per game mode you want to support. But depending on game modes, you might need multiple for one game mode as well.
hub servers don't need to be dedicated hub servers
your hub server can also be a survival server
😉
Oh yeahhhh
It's sort of like asking "What's the best laptop?" - it depends on what you want to use it for
depends on what he is offering.
Smart move, but won't the tablist show the players in the ENTIRE server?
is he offering a couple containers or a couple pterodactyl instances?
I mean if all you have is a bungee and survival not going to be an issue XD
Multicraft :/
eeew multicraft
Yeah
well, be gracious, say you will take 3 to start, one for bungee, one for a hub and one for a survival server, but let him know that after you get those up and running, might consider more if there are enough players
bungee doesn't need a lot of ram btw
at most just needs 1GB
giving it more ram isn't going to do anything for it XD
1gb per 250 players is what people usually do
Oki
key point is don't ask for more than you can handle, and be gracious
He gave me a 2gb bungee server :/
then its going to run smooth + 1gb of ram
Is that a good thing or overkill/not needed?
@storm sparrow I guess that is a way to look at it, wouldn't necessarily agree on that though lol
if you dont have like a thousand players it probably not needed
it is a bit of overkill but it is fine @wind dock
hub servers typically only need 2-4GB as well
depending on what you have going on there
it is honey
honeycomb on the side, honey jar
thanks
sometimes clicking those images makes them larger too btw
not sure if it helps you with being colorblind, but at least you can make out more details that way
i guess i can change some stuff in discords css to get images to be normal in colorblind
I finally got my 20w29a working
gg
was there something wrong with it?
yeh, there is a vanilla bug with the new angle argument
it's not getting registered, so bungee will choke on it
its weird because when i run f.lux which makes a night mode with yellowish screen, it shows images as if i wasn't colorblind
yellow-green i think
R-G or B-Y or complete
there are 7 types in total
what do you mean
you're colorblind?
🤔
the default color scheme should be able to distinguish all the individual colors
wdym
why would he need flux
F.lux is making images somehow so i see them like norma,l and not colorblind
http://www.lagom.nl/lcd-test/contrast.php what do you see here without flux?
maybe your contrast is off the charts
you should be able to see all the separated gradients
bruh 35
Too bad that's a 74, chief
Does adding maven dependencies work for plugins?
no thats 71
is there a org.reflections jar file?
If you can't see 74, there's a possibility that you may be colour blind
Which some people are but don't know
I drew around it lol