#help-archived
1 messages ยท Page 131 of 1
yeah I can't code
wh y do you say it
but I do have a github with my code
Yes I have to cancel the event Idriz
trust me
nice profile pic
@frigid ember Now you need to open a custom inventory with more rows
BlockPlaceEvent
@frigid ember what about it? it's an empty fork
I wanted to make a change but got lazy
Are you implying that an empty fork is skidding
no>
ur having real fun
Good
with an empty fork
bruhhh
๐
I just am trying to prove he can code
why tho
no i can't code
He says he can't
ask kevin
God dammit @steady cedar if you had just SHUT THE FUCK UP I would have had another one
you really went
2 years back
huh
It's not an empty fork
I made a commit there
Yeah see this is why I'm not showing him mine
kevin do you have an anticheat
Because he'll go 6 years back and straw man the shit out of me
?????
that is what u are basically doing to me lmao
But I am not like that
Look I am saying it here
My messages
my word
you literally avoided
my pinned projects
and my newest ones
i wonder why that happened
Because they're actually good
paper
the popularest
the empty fork
is my popularesy
lmao
click the repositories tab
Kevin_ please stop overthinking, what you are saying is false, Iam not going to ruin you because of your past or whateve
I am interested to see what you have developed
what are you on about mate LOL
Maybe support it also
"ruin you because of your past"
Oscilloscope music generator
(That you'll definitely skid to write your game)
No
Simulation tool for developing robotic control algorithms
Optimizing bridges with monte carlo
uhh and then the shitshow starts
@frigid ember What's your github
my name
you did some multi media stuff kevin?
wdym by that
idk like next year we can choose variants, one of them sounds similar to that kinda stuff
huh....
ok nvm then xd
with a high probability
hey frank u speak bit german?
public void cancelOpenOnPlacement(BlockPlaceEvent event) {
Player player = event.getPlayer();
if (player.)
event.setCancelled(true);
}"
How do I say if a player places block Enderchest
dutch and german similar
ayee
Ich spreche deustche
eh
event.getBlock @frigid ember
dutch skidded german
I dropped german after 2yrs in hs lol
LOL
nicht gut ๐
so no i dont speak german
ok
public void cancelOpenOnPlacement(BlockPlaceEvent event) {
Player player = event.getPlayer();
if (x);
onOpenEnderChest(null);
event.setCancelled(true);
}
still dont get what exactly to put in x
wdym
if player places an enderchest
when do you wanna cancel block placements
oh
you might want to start by learning java properly
yes
check if the event's block type is an ENDER_CHEST
if(!(event.getBlock().getType() == Material.ENDER_CHEST)) return;
yea !
if(event.getBlock().getType() != Material.ENDER_CHEST) return;
if it's not an ender chest
not return
if it is NOT
How do I make it so when a player joins the server it teleports them to a certain world?
don't call the method
the return
This is my preferred method of doing things
you tried to clown me but you got clowned yourself
?????
@frigid ember No, if it is an ender chest, cancel
just stop throwing random accusations
Prevents runaway indentation
If it's not an ender chest, stop calling the method do you not know
what return does
@frigid ember No, if it is an ender chest, cancel
i said that
Kevin I started learning java using codecademy
yeah, and i used !=
yes
@frigid ember You don't seem to have grasped it very well
LOL, i fell for that before LOL
it was java xd
I remember lng ago I was learning js instead of java LOL, damn ๐ข
I believed it was java as the mc people were doing the tutorials
:/
Idk that guys name, but mineraft staff
Why are you passing null in onOpenEnderChest?
it has an event
......... no. Learn java first.
@frigid ember onOpenEnderChest should pass in the "event", not null.
I think you should definitely look up some basic java tutorials
yeah
I mean who am I to talk I can't write code lol.
I mean who am I to talk I can't write code lol.
yesu can
you can't just tell the computer to do something. You have to understand the language the computer speaks.
no I can't lol
you can't just tell the computer to do something. You have to understand the language the computer speaks.
computer dont speak java
lol
The computer always does exactly what you tell it to do. Nothing more.
okay then fucking binary dude
lmao
java is an abstraction
So I should put PlayerInteractEvent in brackets
@frigid ember I don't think you understand
@frigid ember I'm making an analogy for a beginner but if you want to go into low level I can guarantee I have way more knowledge there than you do
This is a little futile
ok assembly
It's difficult to help you because you don't know the basics of the java programming language
You should learn those first.
lets go, 1v1
Learn English before writing a Thesis
jk lmao
Actually @frigid ember lowest level software is machine code
i don't know much assembly at all
Assembled assembly
i know, i know lmao
@undone narwhal me?
do u know machine code?
Oh you were making an analogy
No @steady cedar just a metaphore
why tf would u code in machine code
The spec is public
no human even uses that anymore, no nOrMal PerSon
Yeah analogy ^^ ahah
No human writes machine code by hand
i know
if you really want the vibe go convert ur assembly manually into machine code lol
@frigid ember retrooper you didn't know what my return; statement did
please stop trying to get into a dick measuring competition
????
@bronze marten it's not actually incredibly difficult to do
yeah afaik just a lookup table
^
^^
Shut the fuck up @frigid ember as if you've ever heard of a linker
^
So nice isn't it
so do the ones of us who don't live in china
In computing, a linker or link editor is a computer system program that takes one or more object files generated by a compiler or an assembler and combines them into a single executable file, library file, or another 'object' file.
Cool so you can copy and paste off of google?
WOW so intelligent
you probs also learned it from google
I wish I had as many brain cells as you
Yeah but he didn't act like he knew what it was lol
Oh so I am not allowed to learn anymore?
No, you're not allowed to act as if you know something you don't
I never said I know what a linker is
^^
it's a good thing you're learning
yes
but it's a bad thing you're pretending to know already
I never said I know, i just pasted what it is
....
lol
i said you probably also leanred it from google
Most of the rest of the people here know what a linker is
meaning I learned it rn
You don't need to remind us
no that's not how you use that joke
I asked
why?
#general
How can get a String from Keys of ConfigurationSection
Eg config:
Categories:
key:
item: "APPLE"
name: "Foods"
location: 5
So I want to get String item, name and int lcoation
Categories.key.item
any guides available for setting up centos 8 linux firewall for a single spigot server? all i see online is on bungeecord/spigot combo
Just look up a normal firewall setup @polar wigeon
i did it that way b4
Firewall everything except your spigot port and your ssh port and whatever else you need
cool thanks ๐
I didnt get it how??
How is keys defined
config.getString("Categories." + key + ".item");
kevin whats your github username
why?
so i see ur projects
no, why do you seem to think I asked
but if there are multiple keys
Categories:
key:
item: "APPLE"
name: "Foods"
location: 5
key1:
item: "SAPLING"
name: "Trees"
location: 6
What do you actually want ?
?xy
Asking about your attempted solution rather than your actual problem
Get all the keys ?
yea
rolyn whats ur github
and then get the rest like keys.item
retrooper can you please shut the fuck up
replace true by false
Why ?
so i see cool projects
My github is useless I only use private stuff
?
YOU MISSED YOUR CHANCE
rolyn no public?
"No, why do you think I asked"
dont people hve public here lmao
lmaoooo
would this be the right way?
depends on how you define keys and cs_category
(Which, by the way, doesn't follow naming convention, you'll piss off more people than a mob boss)
So iterate over keys
You need a loop
for (String key : keys) {
Retrooper send your credit card info
np
Retrooper send your credit card info
no wtf is wrong w you
btw I am underage to have a credit card
long way to go ๐
Is like I see your "send your github gngn"
clearly
?
github username won't harm you
you'll gain respect from me how awesome right lol
your respect is worth negative
there are banks who give credit cards to students
Right
atleast theres one I know
credit cards are 18+
in my country atleast
you can have credit cards when you're 10..
^
ye no one giving credit to a 10 year old....
md_5 whats good
i donated
hitler really messed up that country, ngl
ur so pro man
theres only one bank giving credit cards to students in india
Wait @fleet crane why?
because why tf would you loan a 10 year old money
No, why do you think I asked
LOL
I asked
only the coolest
java -Xmx4G -jar spigot-1.15.2.jar nogui
what about the launch options
i forgot how to kill processes so ๐
shuold i click that or virus ๐ฆ
its not a virus
aikar's optimized launch options are pretty nice
ok
md_5 fam, when i older idonate 1000
cos rn broke lol
only had 10$
btw make donation message longer
I can't tell if this is a bizzare form of simping or what
are u on linux
yeye
i know there are some lit scripts for starting ur minecraft servers out there
I got a monster of a script myself
add permissions to your commands
you are only shown commands you have permission for
harass the authors for writing bad plugins
GET EM
I want to make it so when the player, for example, runs the command /tpWorld it teleports them to a world that is specified in the config as a string. How would I do this?
yo am i missing anything vital/essential for setting up a brand new server? these are my notes/cheatsheet https://hastebin.com/befecenuxi.shell
Why do you need both nano and vim
yes it is
idk tbh I don't do sysadmin stuff
but I do know someone who does
@gleaming helm get in here
https://hastebin.com/befecenuxi.shell you think this is enough
yee
Don't see any monitoring system
what for?
for... monitoring if your server catches on fire?
hmmm i see
i'll look into it
anything else?
also, any guides for learning sys admin stuff that are most relevant for minecraft servers?
well, I all learned from internet searches. Each time I had to do something I developed this step reading a lot of tutorials. Then you'll learn many other things realted
Like a graph
Can anyone tell me how to add lore to an item in ASkyblock? This is the current code or whatever people call it lmao
1:
material: SKULL_ITEM
description: '&b&lList team members'
command: '[island] team'
nextsection:
ok i just wanna know if i got all the basic ideas down on those notes and now i can research them all
How do you make a clickable image on a spigot resource with a discord for instance
Discord image when you click on it you get a link to the support disc
Ok ty
How can i do when a player reach a specific XYZ then send a message?
(Java)
Listen for PlayerMoveEvent i guess
Alright i will try, thanks ๐
public void cancelOpenOnPlacement(BlockPlaceEvent event) {
if(event.getBlock().getType() == (Material.ENDER_CHEST)) {
onOpenEnderChest(null);
event.setCancelled(true);
}
}```
could any1 pls tell me what should be in the brackets instead of null
What's the "onOpenEnderChest" ??
@EventHandler
public void onOpenEnderChest(PlayerInteractEvent event) {
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (event.getClickedBlock().getType() == (Material.ENDER_CHEST)) {
event.setCancelled(true);
Location location = event.getClickedBlock().getLocation();
changeChestState(location, true);
openEnderChests.put(event.getPlayer().getUniqueId(), location);
}
Player player = event.getPlayer();
if (extrainv.containsKey(player.getUniqueId())) {
// already has a saved inventory
player.playSound(player.getLocation(), Sound.CHEST_OPEN, 1.0F, 0.8F);
player.openInventory(extrainv.get(player.getUniqueId()));
return;
}```
there is some more after
idk if you need it?
w
What do you exactly want ?
the ec shouldn't open on placement
or if you just hit something with the ec in ur hand
You're first code do: if the player place an enderchest, it cancel it
What else do you want to do ?
does it already cancel it?
Yes but remove the "onOpenEc(null)" because it will throw a NullPointer Exception
your welcome
still opens the ec on placement
ohh wtf
everything I right click now opens the ec lol
but than something is wrong with my code in onOpen
Cause on your interact event there is :
Player player = event.getPlayer();
if (extrainv.containsKey(player.getUniqueId())) {
// already has a saved inventory
player.playSound(player.getLocation(), Sound.CHEST_OPEN, 1.0F, 0.8F);
player.openInventory(extrainv.get(player.getUniqueId()));
return;
}
Cause Interract event is called when you rightclick/leftclick on block or not
so I should remove if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
Put the part I sent you INSIDE the if (block is EC) block
it works now after I removed it
Put the part I sent you INSIDE the if (block is EC) block
that doesn't work
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.
Would InstantiationException be the proper exception to throw in a failed constructor context?
That's the one I would use
ty
How can I get the server a player disconnected from with the bungeecord api?
PlayerDisconnectEvent lol
you can't from that event
Just e.getPlayer().getServer().getInfo().getName()?
no
Well dont say PlayerDisconnectEvent then?
I'm not sure but I don't think there's an event for that
all events regarding disconnection are fired after the player has left
So just cache the server the player was last on then go from there?
nvm
problem still exists xd
if I cclick a block it opens the ec
@EventHandler
public void onOpenEnderChest(PlayerInteractEvent event) {
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (event.getClickedBlock().getType() == (Material.ENDER_CHEST)) {
event.setCancelled(true);
Location location = event.getClickedBlock().getLocation();
changeChestState(location, true);
openEnderChests.put(event.getPlayer().getUniqueId(), location);
}
Player player = event.getPlayer();
if (extrainv.containsKey(player.getUniqueId())) {
// already has a saved inventory
player.playSound(player.getLocation(), Sound.CHEST_OPEN, 1.0F, 0.8F);
player.openInventory(extrainv.get(player.getUniqueId()));
return;
}
// doesn't have a saved inventory - so create one
Inventory inventory = Bukkit.createInventory(player, 54, player.getName() + "'s EnderChest");
fillSlots(inventory, new ItemStack(Material.BARRIER), 27, 35);
fillSlots(inventory, new ItemStack(Material.BARRIER), 36, 44);
fillSlots(inventory, new ItemStack(Material.BARRIER), 45, 53);
player.openInventory(inventory);
player.playSound(player.getLocation(), Sound.CHEST_OPEN, 1.0F, 0.8F);
}
}
public void cancelOpenOnPlacement(BlockPlaceEvent event) {
if(event.getBlock().getType() == (Material.ENDER_CHEST)) {
event.setCancelled(true);
}
}
public void cancelOpenOnPlacement() doesnt do anything to this either
I personally don't see why you made a whole new method to cancel
Removed it already
Hello, I need some help
I host my MC server from my rack server which is then connected via a VPN to a cheap VPS so I do not have to port forward and so I don't get DDOSed. However, Spipgot's website has blacklisted the VPS' IP so whenever I try to go to Spigot's Website this error occurs (and it is only with spigot, other cloudflare-protected websites are fine):
'Error 1020
Access denied
What happened?
This website is using a security service to protect itself from online attacks.'
I am hoping my VPS' IP can get whitelisted
Browse the website from your computer, not on the server.
Access the website from your home connection, upload plugins via ftp/scp
I know I saw a certain md_5 talk about this in some thread on the forums also, but I can't find it right now ๐
Lol mine is solved
It's in the faq
I knew I saw it somewhere ๐
If I have a sign place by PacketPlayOutBlockChange the TileEntitySign from the sign position is always null, right?
Yes
You can change the sign with a packet as well though
PacketPlayOutSignChange or something like that
Actually thereโs a method for it on Player that I think does exactly that without accessing the tile entity
The implementation creates a new TileEntitySign and uses that to create an updated packet
Hi! I've been tasked with creating a server for a small/medium group of people. Could someone DM me with instructions on how to set one up? Ideally I'd like an authentication system that requires the user to enter an email and/or password to play
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Though requiring an email & password to play can be handled by some authentication plugin
Or, rather, just whitelist specific individuals
https://cdn.discordapp.com/attachments/265499790324793344/722771946604855326/unknown.png
https://cdn.discordapp.com/attachments/265499790324793344/722772102582763590/unknown.png
Is it because I run my test server on paperspigot?
Are the errors I experience, is that because I use craftb
I have no clue what that error meanjs
I've never seen it.
It means you've created an abnormal plugin
The issue is you've created a constructor (with arguments) for the JavaPlugin extension. But the Bukkit API assumes a no-argument constructor.
@wraith thicket if i'd send my main class, could you tell me what to delete? Sorry , I didn't really understand what u mean
You created a constructor in your plugin's class that accepts an argument
You can't do that. You can't have an argumented constructor in your main class
Well, I suppose you can but you have to also have a no-arg constructor and you won't be able to call the argumented one because the classloader prevents instances of your class from being created lol. So for simplicity's sake, remove your constructor
Alright, i'll take a look
I've gotten a custom entity done though I want it to be a monster type that isn't zombie (So it basically make pig sounds) and I've gotten pretty far though for some reason when I start converting a copy of the EntityZombie class in NMS I see that they have something like GroupDataZombie and it is in the maven it looks like though IntelliJ thinks it isn't, I can also middle click it to get to its methods
Does anyone know how would i get a reliable velocity from the player?
i try to use physics but results are pretty inaccurate
space / time taken
produces extremely high delta in values
I've already considered that various factor could influence the graph, however i checked and TPS were 20.00 al time, and mspt were extremely good as well
so at this point I don't know what I'm doing wrong
according to the Minecraft wiki, the walking speed should be 4.317 blocks/s , but I get really unstable values that jump between 4.0 and 5.1
this does not matter with the fact that I'm making an anticheat
i'm just kidding, also check the minecraft client yourself
I can even share code that I use to calculate speed from received packets, but I think this is a pretty simple task to do and I don't do anything wrong there
is this on a local server
yes
I even thought this could be since im Using Windows 10
but Arch Linux produces basically same results
If you average the results you've presented, you'll likely get something around 4.3
How are you getting the velocity values exactly?
so each time a packet is received i save millis from System, the i compare the last packet with the one received and get the distance, i then divide distance by the time passed between the two packets being received, and I get velocity
something like this
right now I'm trying to use nanoTime() and see if it makes any difference
Most likely the time at which you receive the packet doesn't align with the time at which the player actually moves.
The player moves once every 50ms. But you might get a packet sooner (or later) than that.
yeah but would just offset the graph?
not mess up it entirely and have a 1,0 block/s delta
i calculate distance this way, which should be correct
Is there a way to go to a multi world through a portal if yes how to do it .?
The time after which a player can "be" in a new location (compared to the old one) is always constant - 50ms. If you get two packets that are instead (i.e) 45ms apart, you're going to get a larger velocity.
yeah but the PlayerMoveEvent had the same thing
But since the server runs at a 50m tick, they'll still only move every 50ms
Exactly the same or somewhat similar?
Is there a way to go to a multi world through a portal if yes how to do it .?
@lament mason
https://dev.bukkit.org/projects/multiverse-portals ? (first thing that comes up on Google anyway)
Ok
Hello. I have a bungeecord server, with 4 servers linked to it. But is there a plugin that allowes one chat for the whole network?
there are many
Which one do you prefer?
Okay. What is the name of that plugin?
any protocollib pro here
im trying to get a field which is a List from a PacketContainer
Does anyone know what dependencies you need for redis? Got it working on maven but can't with?
Only the client you use, e.g. jedis
but then you get errors for not finding some apache classes
like org.sl4j.LoggerFactory
then something inside of commonspool
somebody much knowledge about entities and velocity please dm me
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.
@frigid ember
I want to move multiple armorstand
at once
I have a control system with Wasd for 1 stand but I want to move multiple
Its like a car system
@wanton delta
loop over all armor stands and move them accordingly?
for loop?
you're not asking the right questions. Show what you have, what you want and whats not working
Why u should send my code in public
that's why a ask dm
that I can start a conversation with u
cuz otherwise we cant help you
and not some kids that gonna scream trough it with his problems
thats what I mean darkeyedragon
i'm not going out of my way to help you, and i doubt many others will, if you dont want to post your code here thats fine, but then i cant help you
What about them?
#general
Setting up a panel like ptero?
he wants to start a host
and knows 0
he blocked me when i told him its a bad idea lol
lol
i'd suggest learning the basics of virtualization first then :p
@frigid ember lol
Is there a way to join different servers from my server??
In spigot server ??
Bungeecord?
Bungeecord yeah
DarkEyeDragon
I a now move the armorstand.in the direction of the eularangle
like the direction the armorstand is looking to
yep
real
what are you gonna do when everything goes down and you dont know how to fix it
Does anyone know what dependencies you need for redis? Got it working on maven but can't without it?
@gleaming totem
well like it or not, you are going to have an outage at some point
bungeecord only @lament mason
if you have such a great qualified team, why not get a qualified sysadmin from your team to handle servers
If you have no experience whatsoever with dedicated servers, do not start a host. You are going to invest money in something that will make you a net loss and ultimately screw over and scam people
Learn properly something before you publish it to the world
@frigid ember idk bruh, math isnt my alley ๐
Can we do it on spigot ?? @gleaming totem
Btw does the spigot plugins work on bungee cord??
bugeecord is a system that links other (spigot) servers together
its not an actual playable server
Bungee and Spigot have two different APIs and serve two different purposes
it just redirects players to the right ones
bungeecord links the servers you still have the spigot servers running separately as normal.
You don't have to agree but I'm telling you now, you are going to fuck people over
We are not going to help you with the basics
You should be doing this research yourself
we are not going to help you fuck people over*
Are you starting a hosting service
if you're starting a network you shouldnt start with paying $60/m for dedicated servers
Or are you looking to start a server on a dedicated server
If you're purchasing a server from a host to use, that's fine.
start small and grow over time
"well im also going to start a hosting company which will be advertised through the minecraft network so im looking for someone with experience to learn from"
we are happy to help you set up minecraft servers
Okay, then do it
if your own minecraft servers go down, thats fine
but if you run a host and cause other peoples stuff to go down and dont know how to fix it
we have an issue
theres plenty of tutorials on it on yt, you'd probably want to start with linux, (debian, centOS, whatever other billion distros there are) and start understanding that first
@wraith thicket I followed your tip and it seems like it fixed
then go from there
If one assumes that the time passed between each packet is a constant
ubuntu
the graph stabilises
I think many in this discord recommend centos
That's why youtube exists
lol
@frigid ember there are a million online resources taht do just that lmfao
then learn to google, its a critical skill every dev/sys admin should have
if you need that level of support, get someone onboard with your project properly
He probably has other things to do.
@frigid ember whatever you're smoking I want it bro
LOL
get someone actually working on your project
@frigid ember all of us got our info from google lol
get*
True ^
...past tense too
Google is your pest friend...
@sturdy oar hating on centos ๐ค
not hating... just don't see why one would use it for game hosting
250โฌ and it's done
i just named a few distro's ยฏ_(ใ)_/ยฏ
@sturdy oar u use ubuntu?
I'll do it for 6000 dollars
youre not fitting thousands of players on a single dedicated server on 1.15
What do you use as your main driver
my main driver?
odds on he'll ask your to install pirated whmcs too and then ghost you
i UsE ArCh BtW
My preferred distro when installing fresh server is prob. Debian buster minimal
i used to be a debian guy
but then i got bored of installing sudo
so i am now ubuntu man
yes ubuntu
i never got ubuntu to boot on my system
how?
you just install?
Idk the difference
always some hardware error or missing drivers
Just trying new things lol
I always got errrors with ubuntu on this old windows pc bc of the drivers for my internet lol
Then I bought a card and it legit used the same drivers...
@gleaming totem
@gleaming totem
is there an event plugin that makes it so you have to have an empty inventory to join the event
Does anyone know the Redis/Jedis dependencies needed? I keep on getting NoClassDefFoundErrors for org.sl4f.LoggerFactory or something like that/
Do I have to reinstall my server to bungee cord??
no
but you have to install bungeecord on your vps/dedi or get a seperate server with your host for bungeecord.
make new server with that host to host bungeecord
Hello ! I've been trying for an hour to import an open-source plugin, parties (by AlessioDP / Source code is here: https://github.com/AlessioDP/Parties) from the source code, in my IDE, Eclipse, to be able to modify it and then export it as a jar and use it on my server. I've already done this with other open source plugins simply by importing the files into Eclipse but I can't do it with this one (I mean I can't find the actual source code in it). Could somebody help me? Available in PM if it's easier. here's a screen of how that looks like when I try to import it in Eclipse anyway: https://i.imgur.com/5Gn1VcR.png
Parties uses a gradle build system
File -> Import...
Import all its modules as well
Yep! I tried to import it with Gradle too. But then I'm not sure what can I edit and export as a jar
api, bukkit, bungeecord and common seem to be its modules. You'd edit whichever one you want to modify
You can ignore "parties", that's the parent project (though you would use that one to build the project with gradle)
Choco u know dependencies I'd add for redis without using maven?
If its structure is anything like any other project, api is the module that developers would interact with independent of their platform, bungeecord is the plugin that runs on the bungee proxy, bukkit is the bukkit-exclusive code and common is shared code between bungee and bukkit (no code from either API, just common Java code)
@gleaming totem I have 7356 mg of ram in total
I'm using half of it for my bedrock server and half of it for my java server
I'd imagine the common module is shaded into both the bukkit and bungeecord binaries
I keep getting noclassdeffound errors for some LoggerFactory
can someone suggest me a server hosting with a asian proxy?
Oh without Maven
Surely you can just download Jedis and add the dependency to the classpath
._.
Accomplishes the same goal, only it's not done automatically through a build system
I did, but I get an error about some sort of LoggerFactory.
@gleaming totem can I host the bungee cord server on another host??
From which my bedrock and java server r there in 1 host and the bungee cord server is in the other host??
yeah this is what I get
http://i.s1ant.club/4wH3ke.png
wtf why is that redirecting
Oh, well Jedis isn't being loaded at runtime by the classloader
It should be shaded into your plugin using some sort of build system
intellij http://s1ant.club/i/PYCMxJ.png
anyone know an events plugin that makes you have an empty inventory before joining?
Hi.
I have my plugin:
(linked in file).
Only argument "reload" work. The "info" argument and else arguments don't work. Anyone know why?
Okay @subtle blade ig only JedisPool didn;t work
yeah this is what I get
http://i.s1ant.club/4wH3ke.png
@gleaming totem huh
S1ant can I host the bungee cord server on another host??
From which my bedrock and java server r there in 1 host and the bungee cord server is in the other host??
Can I do it?? @gleaming totem
@gleaming totem
Plz tell yes or no
yeah
make a new server with a bungeecord.jar
watch youtube and find a video to set up bungeecord
how to let something execute every tick?
Ok
@gleaming totem after creating the bungee cord server how to join different servers from my spigot server
@frigid ember search BukkitTask and Scheduler
@lament mason You need to configure Bungeecord to connect all your servers between each other. And then connect to the bungeecord
If you find it too difficult I recommend using VelocityPowered (or even if you want more security or performance
)
Hi
@undone narwhal how
hi
Hello, I am new to making plugins, I wanted to know if you could help me on how to put a list in the config, I am doing a filter of insults and that they are not sent, and I wanted to see if they could help me to put the list in the config :D
@undone narwhal help me with the bungee cord server plz
You can check online videos on YouTube or wait someone who can help you
Plz someone help me with configuration of my bungee cord server
How can I format the player's balance on my scoreboard?
The usual way
@subtle blade thanks
Handy enough, there's a nice utility method. NumberFormat.getCurrencyInstance(Locale)
@undone narwhal Thank you for follow on GitHub
Hi guys. So, I'm very new to running Spigot (like today!) but I wanted to create a really cool server for my kiddos to play with their friends. I've already decided that I need to brush up on java (or some sort of programming language. I'd tell you what I learned back in the day, but that would totally date me). I've been running them a vanilla server. And I seem to have gotten everything up and running, but when I try to make myself an op, the server crashes, even with no plugins. My google-fu is totally failing me too. Could anyone direct me to a good site so I can debug?
Well maybe if you paste the crash stacktrace here we can figure out the issue for you
?paste
Let me go grab that. I'm on my desktop and running the server on a dedicated nuk. (Really trying to be a cool mom ๐ )
Hubby works for Intel, so it seemed like a nice solution!
Hey guys Im tryna create a custom enderchest plugin, my hashmap now saves the whole inv but it should only save the rows given. Can any1 help me with this?
yes they're cool, they're kinda similar to a Mac Mini
Hey guys Im tryna create a custom enderchest plugin, my hashmap now saves the whole inv but it should only save the rows given. Can any1 help me with this?
@frigid ember Could you give some more context to your code
What exactly are you trying to do and what's your objective
@EventHandler
public void onCloseEnderChest(InventoryCloseEvent event) {
changeChestState(openEnderChests.get(event.getPlayer().getUniqueId()), false);
openEnderChests.remove(event.getPlayer().getUniqueId());
if (event.getView().getTitle().contains(event.getPlayer().getName() + "'s EnderChest")) {
// save inventory to hashmap
extrainv.put(event.getPlayer().getUniqueId(), event.getInventory());
}
}
public HashMap<UUID, Inventory> extrainv = new HashMap<>();
public void loadInventories()
{
for (String str : plugin.getConfig().getConfigurationSection("").getKeys(false))
{
UUID uuid = UUID.fromString(str);
OfflinePlayer player = Bukkit.getOfflinePlayer(uuid);
Inventory inventory = Bukkit.createInventory(null, 54, player.getName()+ "'s EnderChest");
for (String itemslot : plugin.getConfig().getConfigurationSection(uuid.toString()+".enderchest").getKeys(false))
{
ItemStack i = ItemStack.deserialize(plugin.getConfig().getConfigurationSection(uuid.toString()+".enderchest."+itemslot).getValues(false));
inventory.setItem(Integer.parseInt(itemslot), i);
}
extrainv.put(uuid, inventory);
}
}
public void saveInventories()
{
for (UUID uuid : extrainv.keySet())
{
plugin.getConfig().set(uuid.toString(), null);
Inventory current = extrainv.get(uuid);
for (int i = 0 ; i < current.getSize(); i++)
{
ItemStack currentItem = current.getItem(i);
if (currentItem == null)
{
continue;
}
plugin.getConfig().set(uuid+".enderchest."+i, currentItem.serialize());
}
}
plugin.saveConfig();
}```
the ec is an extension plugin
so the ec gets 6 rows instead of 3
but in this file is the default ec
and they have 6 rows but can only access 3
so the hashmap should only save the first 3 instead of the whole inventory
the last 3 are just barriers
I mean you could put as value the desired objects instead of the whole inventory'
hmm
Okay, I re-ran it, just to make sure this server won't make a liar out of me.
So here's the crash report. https://paste.md-5.net/ratewokumu.rb
It crashes the server
But as long as I don't make myself an op, it runs fine. Which is fine, but I wanted more control in case the kiddos wanted something
Okay, this is a new ec plugin which has 6 enderchest rows instead of the normal 3 rows. But this is the default enderchest; default players dont get more than 3 rows. They get the 6 rows but can only access 3 rows; the last 3 rows are barriers with text. The hashmap now saves the whole inventory, it needs to only save the first 3 rows
Well another option (which wouldn't solve the /op) issue is installing a Permission plugin
Okay, that was going to be my next step, which would at least let them change their gamemode back and forth
๐
Could totally overwrite someones extrastorage by naming a chest othername's EnderChest and using that
To be honest I've never seen a crash of that kind in 3 years of minecraft experience
I'm just that cool. ๐
My other question was going to be if I should try a complete reinstall
Okay, this is a new ec plugin which has 6 enderchest rows instead of the normal 3 rows. But this is the default enderchest; default players dont get more than 3 rows. They get the 6 rows but can only access 3 rows; the last 3 rows are barriers with text. The hashmap now saves the whole inventory, it needs to only save the first 3 rows
Another thing i see is that there's very little Heap space reserved for the java virtual machine
i see 1024Megabytes, am I right?
your issue could be also related with the fact that the machine has very little heap space
Ah! That's what I was running on the vanilla server. 1024. Thinking up it?
Try gradually upgrading it
increasing*
like 3072M is generally fine for small servers
unless its a hub or proxy
... it's not a proxy lol
what are you saying lol?
@peak reef @sturdy oar What I see is a method which call another method which call the same method etc in a loop
Recurrent function ???
ur talking about ram right
I'll go try increasing it and report back. See if that fixes it. It's not a bad little system and we run a DCS server on it (but not during the same time as the Minecraft server).
Yeah @undone narwhal StackOverflowExceptions can happen when recursive methods end up in a infinite, or very huge loop. Although i don't think there have been bugs of that kind in recent updates
Can't even understand why it's in a client report ^^
idk
@undone narwhal
It's me
Can ubhelp me config my bungee cord server plz
These are nice screenshots
@lament mason What's wrong with it? What do you need? Can't help you if I don't know what you need...
This is a new ec plugin im tryna make which has 6 enderchest rows instead of the normal 3 rows. But this is the default enderchest; default players dont get more than 3 rows. They get the 6 rows but can only access 3 rows; the last 3 rows are barriers with text. The hashmap now saves the whole inventory, it needs to only save the first 3 rows
you already asked this dude
just change your logic and don't save the whole inventory
@undone narwhal after creating the bungee cord server how to join different servers from my spigot server
/server <name>
The install a NPC plugin?
he has better things to do
Ik
Well, it's still being fussy, so I'm going to do a complete reinstall and see what I can come up with. Thanks for the suggestions so far, and I'll let you know if I figure out what the ID-10-t error could be. (I'm sure I'm just missing something or installled something wrong!)
I still don't get why your error looked like a client error though
My guess is that I missed a step or something. It's been coughs at least 20 years since I even looked at code.
Hmm, doens't seem so look in #general Choco also has the issue
oh lol
let me try if this happens on latest Paper build as well
it may be a version-related issue
lol and thanks for "girl" you make me feel young
damn Craftbukkit
I mean no one updates Paper every day
So, I feel slightly better that I'm not a complete loser and screwing up the install
Hah, just download a slightly older version for now Lapis
Lapis download a older version and it will fix
Thanks so much JanTuck!
or... wait for the one that will fix this I guess
Y'all are the bestest for helping me be the "cool mom"
For now, use BuildTools to --rev 2694
That will be the second most recent version which does not have this issue
for now blame Bukkit developers ๐คฃ
Guys can u help me I want the NPC plugin and I want to join multiverse worlds through a NPC
No, blame a PR from a user that didn't bother testing
who is he ๐
You literally can't have missed this issue lol
I'd create a PR to revert commit but it's not worth it. For now, I'm going to @fleet crane. cb701f6b6321ac3cf1d7ccc2c1245dee736d786a has a Stackoverflow as a result of the changes to command nodes
A PR to fix is pointless. Either md will have his own fix for the SOE or he can revert commit
Either way, he has to be awake lol
Guys can u help me I want the NPC plugin and I want to join multiverse worlds through a NPC
install Citizens
SaadAhmed we're glad to help you, but some of your questions only requires a little search on google
what's google
Hey everyone can someone help me to fix those kinds of inventory display bug, i dont know where it comes from:
https://www.youtube.com/watch?v=0mSJ6bagIuk
https://www.youtube.com/watch?v=zRTvUL11EwY
๐ฆ ๐ฆ ๐ฌ ๐ด
Looks like I'm building an old rev :((
Just gonna temp pin that for easy access in case anyone comes in with the same issue
๐ฆ
@sturdy oar buy wht
Most server owners don't update often enough to see the issue I'm guessing
Isn't there a free NPC plugin??
Citizens
but you don't get support from them if you don't buy it ๐คทโโ๏ธ
like dude literally google
they have a spigot page and a jenkins
Don't link that shit, refer to the spigot page
Its from there only
I second that, get it from the source
I got it for free
What Citizens is paid now?
Yes and anybody else should also retrieve it from there
Not a mirror from Discord ;P
Huh
No one wants to download sketchy jars that you say you "supposedly" got from there.
Instead just link to where you got it, in this case the Citizens resource, and tell people how to download it.
People keep getting sketchy Spigot jars from random websites.
So I don't think the "nobody wants to download sketchy jars" bit really works.
Yeah, it's fine just don't download and upload the jars on here.
don't*
dont
Citizens is free and gives support for non-paying users
Just read the full description
citizens is paid on spigotmc because they use it to accept donations
paying for it on spigot mc is basically donating
[20:35:02 ERROR]: [WaveyMT-Vehicles] Unhandled exception number 32 occured in onPacketReceiving(PacketEvent) for WaveyMT-Vehicles
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.entity.CraftArmorStand cannot be cast to net.minecraft.server.v1_12_R1.EntityArmorStand
at me.xabi.waveymtvehicles.SteerVehicle.onPacketReceiving(SteerVehicle.java:72) ~[WaveyMT-Vehicles-1.0-SNAPSHOT.jar:?]
at com.comphenix.protocol.injector.SortedPacketListenerList.invokeReceivingListener(SortedPacketListenerList.java:114)
EntityArmorStand mc = (EntityArmorStand) player.getVehicle();
Hey, im using LeaderHeads, but although gtsm-dust is listed as a placeholder it says it doesnt recognize it
do you need the NMS armor stand? there is a bukkit interface for it, but I guess it depends what you're doing with it
is there a way to disable some essentials commands
like instead of perms just get rid of the command completely
how to do a task every tick?
@twilit orchid The config has a section called disabled-commands
@frigid ember If you mean in code, then https://bukkit.gamepedia.com/Scheduler_Programming
how do I send a player to the lobby when the server he is playing on goes down?
In code or with an existing plugin etc ?
can someone help me out with setting up my server? i use spigot with server.pro and i've been crashing whenever i load terrain
IM ARE FIRST
ok
I've not seen anyone ask Skript questions here before. If I were to guess, there's not many skript developers in here.
wtf
help my
And there's no "order" in which people get helped lol
Step 1 to asking a question: Don't act entitled, because you're not.
this go over spigot
And anna - if you have a specific problem, you'll need to describe it in detail
lmao
"help me" is pretty detailed
maybe help this
๐ฎ
Asking about your attempted solution rather than your actual problem