#help-archived
1 messages · Page 165 of 1
wow u made vein miner?
The plugin, not the Forge mod, yes
I tried it and its not, let me just first try and print out what the mob is to make sure it isnt an issue from 'ent'
epic
thanks 😛
o/
oh yeah how do u get comments in ur config
@subtle blade yeah ent is zombie but spawner still spawns default pig
@frigid ember Do you mean how to put them in there, or do you mean how to detect they are there?
blockState.update();```
Those arent the same variable
where can i get auth login plugin for spigot 1.16.1 ?
Enable online mode
We don't support offline servers
how to put them in there
Ok, im sorry
Can all entities be spawned through a spawner or do I have to make my own spawnentity event?
spawner.update();```
It puts a zombie inside the spawner but doesnt actually spawn him
you can spawn just about any entity using a spawner
you need to update the spawners type to spawn a particular entity from it
ent returns ZOMBIE
but you also don't need a spawner to spawn an entity either
since you are not showing much code, not a whole lot we can do to help
it is quite possible that the reference to the spawner you have is incorrect or not what you think it is.
ah, you are trying to change the spawners type in the event. Should try cancelling the event first then change its type.
or don't cancel the event and let the event happen and change it outside of the event
Okok let me try that cause last time I tried to cancel the event it infinite looped the event for whatever reason
well I gave you two ways to do it 😉
@keen compass I mean this, the basic colors of minecraft always java Color[] colors = {new Color(249, 255, 255), new Color(156, 157, 151), new Color(71, 79, 82), new Color(29, 28, 33), new Color(255, 216, 61), new Color(249, 128, 29), new Color(176, 46, 38), new Color(130, 84, 50), new Color(128, 199, 31), new Color(93, 124, 21), new Color(58, 179, 218), new Color(22, 156, 157), new Color(60, 68, 169), new Color(243, 140, 170), new Color(198, 79, 189), new Color(137, 50, 183)};
o i r stupid u can use ChatColor.of(Color color) so u dont have to put hex in
not like its hard to put hex
Java supports Hex
there is a method to convert to it easily
There's always DyeColor#getColor() and ChatColor#getColor()
Both of which return Color objects
Hi, is there a easy way to set() on a YamlConfiguration only if the value doesnt exist?
wait using intelliJ and spigot live debug is it possible to edit live
as i have tod add a if (x contains...) thingy
and make changes to the plugin code while its running
@keen compass I tried public void setSpawnerMob(CreatureSpawner spawner, EntityType mob) { spawner.setSpawnedType(mob); spawner.update(); } but still isnt spawning any mobs
i just write the code and re build and do /reload, which is probably not a good way tbh
@frigid ember if you are going to change the type after the event then you need to create a task that runs a tick or so later from the event method.
like a runable?
yes
gotcha
okay so I followed everything the guide said to do and my test server has no plugins but when i click the hammer it doesn't seem to add the plugin... do I need to start with my plugin already installed?
Hello, what are some permission nodes to chat? I checked my chat format plugin, it doesn’t have it... pls ping me if u have a answer
@fringe cairn need to put plugins in the plugins directory first before starting the server
@west ermine depends on the plugin you are using
@keen compass sorry for mass pings lol im still learning, first time using a runnable but doesnt seem to be working ``` public void setSpawnerMob(CreatureSpawner spawner, EntityType mob) {
Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
public void run() {
spawner.setSpawnedType(mob);
spawner.update();
}
}, 1L);
}```
Hey can someone give me support?
I keep getting this error in console every 30 seconds or so
https://pastebin.com/sgG3UE9n
@frigid ember could try modifying the blockstate directly instead
not entirely sure why it isn't working for you
@west ermine the only permission that plugin has is
vaultchatformatter.reload and that is for the reload command
all that plugin does is formats chat
the only other permission there is for chat is the server permission to private message
bukkit.commands.msg or bukkit.commands.message
[00:01:30 ERROR]: Please report this to PaperSpigot directly!
[00:01:30 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[00:01:30 ERROR]: PaperSpigot version: git-PaperSpigot-"4c7641d" (MC: 1.8.8)
[00:01:30 ERROR]: ------------------------------
[00:01:30 ERROR]: Server thread dump (Look for plugins here before reporting to PaperSpigot!):
[00:01:30 ERROR]: ------------------------------
[00:01:30 ERROR]: Current Thread: Server thread
[00:01:30 ERROR]: PID: 15 | Suspended: false | Native: false | State: RUNNABLE
[00:01:30 ERROR]: Stack:
[00:01:30 ERROR]: java.util.regex.Pattern$5.isSatisfiedBy(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Pattern$5.isSatisfiedBy(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Pattern$5.isSatisfiedBy(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Pattern$CharProperty.match(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Pattern$BmpCharProperty.match(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Pattern$Start.match(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Matcher.search(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Matcher.find(Unknown Source)
[00:01:30 ERROR]: java.util.regex.Matcher.replaceAll(Unknown Source)
[00:01:30 ERROR]: org.bukkit.ChatColor.stripColor(ChatColor.java:310)
ChatColor.stripColor is causing my server to hang and eventually crash
Spigot 1.8.8, assuming paper doesn't modify stripColor
don't expect help for outdated server software
it is on you to fix your problems with it if you refuse to update
Paper:
[00:01:30 ERROR]: Please report this to PaperSpigot directly!
Also Paper:
Look for plugins here before reporting to PaperSpigot!
I’m getting errors that are some how related to paper but I don’t even have paper
@frigid ember some plugins use the paper API library
it’s a world related error
then you are using paper
your right which means your statement is false in that you are not using paper
that’s what I said, i’m not using paper
but I googled my error and it says it was related to paper
which is false or you have a plugin that is trying to use paper API methods
then you are using paper, not magic
All it is complaining about is unsupported keys.
You’re right googling that does bring up paper errors
And spigot errors
And even vanilla ones
However that isn't a paper error. To have paper errors you either are using paper or have a plugin that is trying to use Paper API methods
There isn't really anything to do except go replace the items it is complaining about. It is just a warning
has it in that list you pasted
flower pot?
Did you update your server and not use --forceUpgrade option? Just a though.
That doesn't appear to be the issue
Mojangs Datafixer would have fixed the items appropriately upon the chunk loading
what does --forceUpgrade do?
updates all the chunks/regions in the map before the server starts
not using that setting it will do it on the fly
meaning as chunks are loaded the data will be fixed
used for when you upgrade between major versions
so its for older severs converting to newer versions?
since NBT data tends to change
Yes it is for older versions of a map that get ran on a newer server version
downside is once your map is updated you can't really use it for the older version again
at least not without problems most of the time
It’s probably worldpainter saving old format NBT data
World painter probably used NBT data that isn't supported
as I said, it really isn't much of an error. Rather it is just a warning
So the items should still work as expected
and eventually it will resolve itself
could try using --forceupgrade
to see if that will resolve it
but I doubt it will
EssentialsX does alright for that
there is even ChestShop as well
ChestShop has the ability to just use signs without chests
[buying]
Cookie: 1
1 Diamond(s)
Minecraft IGN here
yeah looking for a plugin that allo2ws you to buy items using in-game items
How about a renting plugin
I'll show you screenshot
FileConfiguration.save(File file) causes my config to lose all its comments except for the top one. is that normal?
Like that
Yes @frigid ember
is there a way to prevent that from happening?
@frigid ember yes
how?
You will have to read the entire file line by line and store the comments in memory, re-apply the comments after you save
I have a utility if you want to give it a try: https://github.com/tchristofferson/Config-Updater
SnakeYaml chooses to ignore comments instead of handling them. Yaml Spec states that is alright to do. Only way around it is to either use your own Yaml implementation that handles comments or go the more traditional route of handling files.
hm ok
Or avoid saving files that have comments in the first place
can't exactly avoid that
could i just put all the comments in one bulk thing at the top
and avoid this altogether?
or is that messy
if I recall, Comments at the top are left alone
I mean you generally don’t need comments on a file that just stores data
hmm yeah
And you generally don’t need to edit a normal config file in game, so I’ve been able to avoid it so far
depends on your plugin
sometimes it is quite handy to use a couple of commands to toggle settings from in game
and not have to restart the server or reload the plugin because you modified the file directly
you could also make it handle modifications to the file directly too, not all that hard to detect such things
Can always make a fancy GUI editor with descriptions built in at that point
But that does take longer
or you know, just keep it simple with commands
In one of my plugins, I use Conversation API for changing the config 😉
tru tho commands are boring
ok i think i found a solution
that works around all of this
problem with GUI's is you introduce more problems that need to be handled
Hello! How to create an empty world completely?
Google hard to help
Then I ask here instead
Just a simple code please?
@keen compass I have clients who's server setup is on 1.8, don't be a dick.
Sometimes legacy software is necessary in the professional world
@frigid ember Addressed that in my initial message, I dont think Paper messes with ChatColor API
So I figured asking here would be best before offficially asking for legacy build support
It's not being a dick if (1) You're on a fork. Whether or not you think it's not an issue, there's a chance that it is. (2) We do not support legacy versions
You can think we're being dicks but don't act entitled to support if your version is not in-line with what we support
I'm not asking for you to support it
PING WHAT WHEN WHY
I'm asking for people to not boldly assume everyone can force people to upgrade to 1.16
Especially since the large majority of servers nowadays are running legacy builds as bases
Citation needed
I'm talking big servers
Not hard to do a quick survey
All my big clients are running 1.8 bases
It's anecdotal true
But I doubt I'm wrong
If you're going to tell everyone running less than cutting edge 1.16 spigot you're alienating conservatively half the user base
Exactly why I said converatively
And yeah trus
true
Its very hypocrtical that so much of spigot development is dedicated to preserving backwards compatibility and yet 1.8 is a curse word when looking for assistance.
Correction, Bukkit strives for forwards compatibility
Not backwards
We don't support 1.8 because we want people to move off of exploit-riddled 5 year old software
Speaking as former lead dev of a large network running one of those 5 year old pieces of software, if you choose to do that to yourself you have to be prepared to support that yourself
You can’t refuse to gain the benefit of years and years of fixed and expect the people who spent time making those fixes to help you
It’s unreasonable
1.8 makes up approximately 13-14% of servers
so, less then half even if you were to be conservative with the numbers
I don't force people to upgrade, just shouldn't be asking for support for something that is outdated. You should have the resources yourself to handle most of the bugs in legacy software. If you don't you shouldn't be using it, in either case it is your fault for using it no one elses.
1.8 is not going to get anymore updates, so whatever bugs you encounter that is on you to handle 😉
And yes I can expect people to be able to upgrade since nothing actually stops anyone from doing that as well. Updated versions contain fixes not just features 😉
What is the best way to update your mca files? I want to view them in mca selector but even after running/save-all they show old information.
the files in my region folder
thats what i have read everywhere but when i copy the folder is shows old chunks before a lot of stuff was built
i have built a lot and the view is over a week old
doesn't necessarily mean the region file you are looking at was recently used
but region files contain many chunks as well
its not that the entire region file gets updated, rather the individual chunks in said region file
and this is assuming the data in the chunk even needs updating
trying to get started with coding, no previous experience at all, just wondering do you need a good pc to code plugins?
no
just use a decent IDE like IntelliJ or Netbeans, can even use Eclipse if you prefer
okay most people use IntelliJ
get the Java JDK. Java 14 is ideal to use and supports all the way back to java 1.8
Is there a way other than save to force them to update?
--forceupgrade
I'm thinking of making a HelloWorld plugin, and then adjusting it from there. Reading docs and stuff, would that be your recommendation?
Generally that is the best way to start
Hey I had a quick question. I have a database storing reports player's have made and I'm trying to get it so that when a player executes /reports list it will display all open reports. I already have a function that gets all the open reports from the database, my question is what is the best way of printing it to the screen and seeing ALL the results. I was thinking like /reports list <#> where # represents the page and have about 5-8 reports per page. However, I don't know how to code it and tell the user something like "there is currently 6 pages of open reports" and if they execute a page that doesn't exist to let them know (i.e. /reports list <9999>). Any help would be much appreciated.
you need to first decide how many you want to list at a given time
--forceupgrade
@keen compass do i run that standalone in console/
okay, i'm just having trouble since I know, and many others have mentioned that videos & docs will most times contain wrong information, or ineffective coding, so how will I know which method to use, and the most efficient one?
yes, but the downside is that it will go through all the chunks before the server starts @errant sluice
Once you have that number, it is a matter of iterating a list that many times per page
and keeping track of the page with a counter
you can make a custom object for this purpose that gets created and keeps the page number and a list of reports
I can take it down for a few minutes, i am not in PROd yet
@keen compass
to clarify, i am on 1.15.2 and this isn't going to upgrade my version correct?
thanks @keen compass I'll give it a try
wow! thats crazy! too bad my hosting provider prohibits me hosting my server on 1.15.2 - 1.16.1 !
its against their tos
how would i save a list of locations in a config file?
how would i save a list of locations in a config file?
@frigid ember wht r u trynna save
specific player's location?
or like
spawn, warps, etc?
Location objects, of special blocks in the world
i mean
if thats the case
i wouldnt save it in a config file
Location variables
easiest way I have found is to serialize the location object @frigid ember
yes, but how would i put that in a list?
far easier to re-obtain it later without having to parse anything 😉
You can just store arrays in yaml
wait so frost you use intellij?
oh okay, so i download intellij idea community right? is that what most people use for itnellij
Yes
hmm im still confused, i would serialize the location first, then put it in the list? then i would put that list in a config?
Yes if its just a bunch of locations
you don't necessarily need to serialize the locations
I do because I just found it easier then obtaining the location as string
and then parsing it to make it a location object
the serializing method, I can just deserialize and create the location object right after the deserializing 🙂
@errant sluice to answer your question, forceupgrade updates the map to whatever version of server you are using
but I mean unless I misunderstood by what you meant by MCA files being updated
if you meant you are not seeing changes when a chunk is modified, its quite possible that you are either not looking in the proper region files or the chunks updated are somewhere in the middle of the region file thus you are not seeing it.
t+\s*e+\s*s+\s*t+ I'm trying to do the regex stuff, you know but I was wondering how do I match every instance of that but I want to also not match testing123 but still match every other instance of that, anyone have any idea?
every other instance of what?
you want to match testing123
I want to match test but if theres testing123 I want to ignore it
if you meant you are not seeing changes when a chunk is modified, its quite possible that you are either not looking in the proper region files or the chunks updated are somewhere in the middle of the region file thus you are not seeing it.
@keen compass I am not seeing the chunks as being modfied and I can tell its old based on things being present that no longer exist and new structures not showing up
test^ should do the trick
That's the one
thanks a lot guys
the other way you can do it is
/\btest\b/
but the first one is more cleaner though 😛
@errant sluice then I am not entirely sure unless you have permission problems but, as I said region files don't get all the chunks updated. So either you are checking the wrong region files or wherever you are looking in the region file isn't the correct spot.
ok, i'll do some more digging. thank you for the help
when i install jdk, do i install the bin or exe version?
exe version if on windows
ok
frostalf, could i get in a call with you?
for the project sdk on intellij startup, on the spigotmc thing it says 1.8 java version, but on the list mine says 14 java version, is 14 just the updated one?
java 14 is just updated. Buildtools and Minecraft are compiled with Java 1.8
Java 14 can run 1.8 coded stuff
so the minimum recommended Java version to have is java 1.8
sure
I could use a hand with what seems like an overly easy task turned insanely complicated by my brain...I'm mostly sure of this!
Good morning i have a problem in my server vilagers an mobs is staing and dont move and in feel time they do something and i see all pluguins and it's still happens any help
just wondering when building buildtools, why do some people recommend adding a pause after java -jar BuildTools.jar --rev 1.15.2, basically on the next line
debug errors?
is there a UUID var type I should be using or is it fine to store uuid's as strings
it is fine to store uuids as strings
there is a method that is part of UUID to get a UUID from string
is there a way of setting a blocks attribute? I want to make a specific chest explosion resistant and unbreakable/unminable
or do I have to go through the block break event and check if its that chest and cancel it
what plugin can i use to discord bungeecord server online players
@fringe cairn well in newer versions chest have PersistentData,simply listen to the explosionevent,check if the chest has that data and easy..
how could i send a message to a player like player.sendMessage with a custom font?
How expensive is listening to every event that could possibly break a block? My idea was check if the chests coordinates were in a database and then if they were cancel the event, but I'm confused about the persistent data and how I would use that
And I also need to protect it in more ways than just explosions (basically every survival way of destroying the chest)
ohhhh you're saying I can store all that data in the chest
You dont there is an event specific to explosion
Instead of a database?
well persistentdata its from 1.13
All it has to do its gonna hold 1 value
declaration: package: org.bukkit.persistence, interface: PersistentDataType
You store a value to act as a trigger,then you do ur own checks on events
And should I not be woried about doing a lot of checks on events? Like I would need to do a check on block break event, explosion events, and other ones
Well there is no other way
Okay. Also do you know if the persistent data carys over in a double chest? Like both sides of the chest have the same persistent data?
You can always lock the checks to be chest specific so there isnt much performance lost
How do I lock the checks to be chest specific?
You mean like just check if it's affecting a chest with an if statement at the start or something else
Okay thanks
And do you know about the double chest thing?
Or should I just try stuff and see what works
how could i send a message to a player like player.sendMessage with a custom font?
What are some good links to open source mods
Does anyone know a shop plugin for barrels
does anyone know if custom blocks are possible with a resource pack such as custommodeldata
how do i make it so if i right click an npc it warps me to somewhere
guys what is the problem
[08:17:05 WARN]: Could not paste timings
java.io.IOException: Server returned HTTP response code: 500 for URL: http://pas
te.ubuntu.com/
@frigid ember https://wiki.citizensnpcs.co/NPC_Commands
I already answered you yesterday...
One of the common things Citizens users want is the ability to have NPCs run a command when right-clicked.
no
stuff like
/spawn and /warp survival
also this happens in console every second https://pastebin.com/LEdfgE95
https://image.prntscr.com/image/y010A3EbRxaAkzACzpDy9w.png
one user of my plugin is reporting some of them player are getting broken format
in chat but not all of them this weird thing should be ","
can some one tell me why is tat happening I can't replicate it on my test server
and this is how I format numbers
https://gyazo.com/a173dae8ebb78194c51888e1c0c51e10
signshop
https://image.prntscr.com/image/y010A3EbRxaAkzACzpDy9w.png
one user of my plugin is reporting some of them player are getting broken format
in chat but not all of them this weird thing should be ","
can some one tell me why is tat happening I can't replicate it on my test server
and this is how I format numbers
https://gyazo.com/a173dae8ebb78194c51888e1c0c51e10
@shy shard
Are there any player sign shops plugin
where to find
yes
mabye that is something to do with the chat type thingy
perhaps doing a chartformat reset thingy before the comma would work
Bruh the plugin i cant the specific plugin im lloking for
I was just reding some people saying could be problem do resourcepack
#UseSpigotSearchEngine
Unsupported 1.15 version sucks thank you tho
guys timing why not working
how dp i make a little compass that can tp you ti oher places
when u click on an itrm inside it
is there a plugin?
like hypixil
Hi there, I'm having a weird bug... In my plugin I've got a list of servers, each of which stores a Set<Player> of the players in them. I've got a method on the Server class to get the server by its player, but unfortunately this seems to fail in the PlayerQuitEvent, because the CraftPlayer instance seems to have "vanished" at that moment in time. Does anyone know a workaround?
Search for "Warp GUI" or "Teleport GUI" @frigid ember
@river cradle Can you please paste your PlayerQuitEvent with the error (NPE I guess)
Well there is no error, the server I'm trying to get is just null
Then we have to check your getServer method
@EventHandler
public void onPlayerQuit(PlayerQuitEvent event) {
Player player = event.getPlayer();
System.out.println("PLAYER QUIT");
for (Server server : ServerList.getServers()) {
System.out.println(server.players.toString());
}
if (ServerList.getByPlayer(player) != null) {
System.out.println("SERVER IS NOT NULL");
ServerList.getByPlayer(player).removePlayer(player);
}
System.out.println(ServerList.getByPlayer(player));
}
But here you go
@frigid ember Just try to /plugins on the server or / + TAB
public static Server getByPlayer(Player player) {
Server server = null;
for (Server potentialServer : servers) {
for (Player possiblyMatchingPlayer : potentialServer.players) {
if (possiblyMatchingPlayer.getName().equals(player.getName())) {
server = potentialServer;
}
}
}
System.out.println("RETURNED SERVER:");
System.out.println(server);
return server;
}
And this is the getter method
Hmm strange. You should maybe try to debug the server.players list to check if it well contains all the players
Try storing and matching UUIDs instead
The output of the getByPlayer() method is tech.jossecottenier.cotteniercraft.games.Server@443bb992 (which is perfect) whenever I try to call it elsewhere, but null when I try to call it from PlayerQuitEvent
Try storing and matching UUIDs instead
^ Better
Hmm strange. You should maybe try to debug the server.players list to check if it well contains all the players
@undone narwhal Yeah, that outputs[CraftPlayer{name=Josse_101}]when called elsewhere and[]in thePlayerQuitEvent
Try storing and matching UUIDs instead
@mellow wave Thank you! I thought of that but that would mean rewriting a lot of code so I was curious if there was a workaround, but I'll go with that then 🙂
Josse try to put a debug message here:
for (Server potentialServer : servers) {
for (Player possiblyMatchingPlayer : potentialServer.players) {
System.out.println(player.getName());
if (possiblyMatchingPlayer.getName().equals(player.getName())) {
server = potentialServer;
}
}
}
Maybe the player instance is destroyed some ms after the event
@frigid ember dm me the server address
Please help me!Can I buy a plugin using something OTHER than paypal?This payment system (in Russia) is terrible, my friend and I have been trying to buy one plugin for THREE DAYS and get a bunch of error messages, and the support team gives out obvious tips instead of helping.
Nop :/
insufficient perms
@frigid ember use /plugins
Please help me!Can I buy a plugin using something OTHER than paypal?This payment system (in Russia) is terrible, my friend and I have been trying to buy one plugin for THREE DAYS and get a bunch of error messages, and the support team gives out obvious tips instead of helping.
@frigid ember use a vpn
Please help me!Can I buy a plugin using something OTHER than paypal?This payment system (in Russia) is terrible, my friend and I have been trying to buy one plugin for THREE DAYS and get a bunch of error messages, and the support team gives out obvious tips instead of helping.
@frigid ember Maybe contact the plugin creator and ask him if you can pay using other payment method
Please help me!Can I buy a plugin using something OTHER than paypal?This payment system (in Russia) is terrible, my friend and I have been trying to buy one plugin for THREE DAYS and get a bunch of error messages, and the support team gives out obvious tips instead of helping.
@frigid ember black spigot and then donate the owner
@hollow thorn good way to get banned or in trouble by recommending people to go there
Just contact the owner and donate him through another system
Yes euan but we can't do anything
Frostalf, I'm considering spigot as a donate platform. You got paid when you work for someone
Donate in exchange of a great plugin
do you donate to the stores when you want their products too?
Donate is a term that means something completely different then paying lol
Donate means to give something without expecting anything in return
?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.
can’t help you
Why ?
Frostalf depending on the context. I agree with the basic term of donating but legally this is way more difficult lmao. That's why I call it a donation
legally in the US donating means what I said
does that mean i can get premium plugins for free
like that veihcles plugin that used a gshn plane model
and the made their plugin premium over using armor stands
I'm trying to set up a firewall, but I can't figure out what my BungeeCord IP is...
With IPWhitelist, the IP I had to whitelist was different from the IP my host told me the bungee was on and different from the IP that I can connect to. I can't connect to the IP I had to whitelist with IPWhitelist.
Would I have to use my connectable IP for the BungeeCord IP or the IP that IPWhitelist had me whitelist for the firewall?
you are not really making sense with this
what is ipwhitelist?
is that a plugin or something?
it's a stupid plugin yeah
connectable IP should be the ip you connect to. the ip in the whitelist is your ip address of your home network
not sure why that would be confusing to you
Is there an event for the upgrade of items in the smithing table (1.16) ?
Alright, the IP I had to whitelist with IPWhitelist was a reserved IP address (https://en.wikipedia.org/wiki/Reserved_IP_addresses)
Yep
which means that is obviously not going to be an ip you are going to connect to
yeah
I meant in the firewall though, would it be the reserved IP address or the connectable one
i mean ipwhitelist has setupmode so just enable that and then connect to server wia bungee server you're gonna use?
well if you are setting up a firewall and the server has a reserved IP address
then its going to be similar to what you do with a home router
or you could just not port forward other ports than bungee one?
IPWhitelist is configured and working Gasper, I'm looking to change it to a firewall
does both bungee and the mc server run on the same host?
I was reading https://www.spigotmc.org/wiki/firewall-guide/ and it has a placeholder for $BUNGEE_IP
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
yep they're both on the same machine
IPTables
then you don't need to mess with that
set the mc server to listen on 127.0.0.1 as the ip address
update your bungee config to reflect the mc server ip change
voila no more iptables needed
Isn't that still bypassable if another person uses the same host, though?
something like that. Shared hosting but it's a really small host so we're the only ones on our machine
vps's are like mini computers running on a computer
in other words while although you are sharing a physical server
your VPS is separate from everyone elses vps
so using 127.0.0.1 is safe to use 😉
I see, in that case no this is not similar to a VPS in that aspect
that is a loopback address. Impossible to connect to that address outside of your vps
It's shared hosting and not a VPS, so another person on the same machine could use 127.0.0.1 to connect to my server
so you can see other peoples servers?
please can someone help me make a server
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
@dreamy dawn I am pretty sure you have a vps
I don't know of any hosting company that would do per-directory hosting to run servers. Only ones that use this methods are webhosts which is for website hosting and nothing more then that.
you wouldn't have access to iptables as well otherwise
Oh, I don't have access to the IPTables
ok thanks
The host does, but we're able to ask the host to do stuff with them since it's a small host
what will the ip be
would highly recommend switching then.
Should ask your host to help you out
since this is a setup that isn't standard
@dreamy dawn just fyi if you are sharing a host like that, there is a whole lot more vulnerabilities then just simply connecting to the mc server
oh so it will be my 1pv4??
@frigid ember
Oh... do you think you can DM me with some of those vulnerabilities?
ipv4
or say it here, both are fine for me but I'm not sure where you would want to say it
or my local ip
Unless the setup is done properly, other users can see your files and processes that you are running
even if they can't see the processes they can most likely see active connections as well
@frigid ember how do i do that
They can even do more malicious things running in the ram as well since they have the same access to said ram
there is a reason that sort of hosting setup is not standard at all
ok thanks
Yikes, I'll put a VPS on the to-do list. Thank you!
is their a 1.16.1 spigot install
yes
where
Our budget's pretty high and we'd be looking for a 9700k or 9900k. Main reason we haven't gotten one yet is because of the additional setup that's associated with them with Pterodactyl and stuff
where do i do that command
Also Frostalf you helped me nearly 3 years or something ago when I was first starting, thanks for that as well :)
Interesting, let me get you a link then
ok thanks
I pay $71 for a dedicated server. Has quad core xeon 3.7ghz, 64GB of ram, 4x2TB HDD's 13IPV4 addresses(have to request more and pay a small fee), an entire ipv6 block which is a /32
hello
atm we're paying something like $110/mo for shared hosting on a 7700k and a 3600x
https://www.soyoustart.com/us/offers/1804sys53.xml
@dreamy dawn
they are a sub company of OVH
Discover the E5-SAT-1-64 server from our Essential range. It is a perfect choice for hosting e-commerce websites, and includes failover IPs.
does this processor is enough to run a server with 10 players?
But peaks of ~110 players/day across servers so the high price is justified
if you want you can get OVH servers
which are of similar cost
of what you are paying now
but a whole lot better
4.9Ghz
4Ghz base
32GB of ram
1Gigabit connection etc
Can even get additional ips if needed t oo
OVH owns soyoustart. Soyoustart has cheaper prices because the servers you rent are not considered top of the line but are still perfectly fine
Isn't singlethreaded performance of a 9700k/9900k still better than that
Minecraft has stuff multithreaded
world generation is multi-threaded
multi-threading isn't the same as multi-coring. Can't specifically target cores with java
The OS dictates if a thread should be ran on another core or not
MC stuff is complicated. I'm just looking to increase TPS :P
There is some plugins that do make use of multi-threading as well
I don't think the xeon offers an upgrade from a 7700k though, right?
Either of the servers I linked you will do just fine
Xeon is a server grade CPU
I7's are not server grade
there is a difference even if performance looks the same
Server grade cpus are designed to run applications for extended periods of time without failing
Desktop CPU's are designed to give performance in short bursts over a short period of time
also there is some extensions present in server cpus that are not available in desktop cpus as well
Makes sense, but I've never had a problem with a CPU failing on me or the current 7700k slowing down every once in a while
There is some plugins that do make use of multi-threading as well
Some, but most don't
If I7-7700k is what you really want though OVH has it
Just telling you Xeon's that are of same period of the I7 you are looking at, will always out perform when it comes to server software
and another fun fact, everything the i7 can do, Xeons have been doing for far longer as well 😛
Weird, so why are the i7 and ryzens in the category "game" but the fast xeon is not?
there was an 8 core Xeon way before there was an 8 core i7 😉
because people like yourself who are only familiar with desktop cpu's and are only familiar with performances of such things seek those out. Mainly from misinformation or from word of mouth from someone else and thus not doing research. Not to offend you btw.
But there is a big difference between server grade cpus and desktop ones. Everything that has been claimed new for the i7 Xeons have already had those things for many years longer 😛
Excuse me but that sounds like bullshit lol
what is new is for the i7 series to have it if that makes sense
not that it is new entirely
haha none taken. I understand what you mean, but i7 and consumer grade hardware has long had better single-threaded performance than xeons since most consumers aren't going to use like 22 cores. Is entity ticking single threaded?
There is single threaded Xeons btw
Almost the entire work a Minecraft server does is single threaded, just because it is a "Minecraft server" doesn't mean it will run better on a lower frequency processor, it's still a single threaded game and it performs horribly on moderately high player counts
not sure where you get that it was claimed lower frequency processor is better
Is someone other getting problems on 1.16.1 with that code (I get nullpointerexceptions)
player.setHealth(player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getDefaultValue());
but I will state that an Xeon that is at a lower frequency can still out perform an i7 at a higher frequency. It might not be able to do stuff faster, but it can handle doing more overall regardless. Frequency of a processor is not the only indicator in what it can do.
To prove this point look no further then your GPU processor
It can't do more tasks if there is only one task omg a multi core processor won't magically split a process into 4 threads
GPU processors run orders slower then CPU's but are still faster
but only doing certain things though and not everything
But those tasks are designed for GPU hardware to take advantage of that
my point is that frequency isn't the end all of things
Second, there is some things in Minecraft that is multi-threaded
And core count doesn't make your server run faster if it has only 1 thread, it's useless
I haven't looked over the 1.16 code, but supposedly chunk loaded was to be multi-threaded
not sure if that made it into 1.16 or not
Yes there are, but entity processing, chunk processing and most plugins out there is single threaded
Second, Java GC performs better if it can have more threads 😉
and the GC threads can run on different cores if the OS allows it
So if TPS is 15 due to entity tick, that'd still benefit more from an 9900k than a Xeon, right?
Also, Running multiple Java applications
means each application can be ran on a separate core
No shit Sherlock
If I have 20 arms I can do more things at a time but that doesn't mean I can eat faster
hey
True, but if those 20 arms were actually split in half and had 2 bodies it can
which is my point
Bungee can be one core and MC server can be on another
But it don't because humans be humans
And we are not talking about humans now are we
scoreboard
scoreboard
Yes that is a scoreboard indeed
Anyways @dreamy dawn I gave you some links. What you decide to choose is up to you. I can only tell you that there is indeed a big difference between server grade cpu's and desktop cpus. Even if you haven't had a bad experience with a desktop cpu.
how hide games ?
Ok, I'll take that into account. Thanks again Frost!!
- ECC memory?
Yes
hmm hello ?
desktop cpus can't handle ECC memory
You think you'll need ECC memory to run a Minecraft server?
You do realize dedicated server boxes are quite handy to run more then minecraft servers o.O
Sounds like using a 100W LED flashlight on broad daylight
Ram is volatile in general
doesn't take much to corrupt a memory address
or even just not have the correct information in that spot
in which case the application or the hardware can fix that
without throwing errors
Intel firmware has microcode to prevent bit flipping due to gamma EM waves
With enough time yes it will be useful
But is it used on a daily basis?
Yes
Have you done the measurements?
Not sure what your point is. ECC is useful for everyone. Reason Desktop cpus don't need it, is because rebooting an application isn't as detrimental as an application failing on a server
your desktop applications from time to time will fail sometimes randomly due to something with ram. Most of the time corrected by just re-launching the application again
On servers that is a detrimental thing sometimes and quite nice if the hardware can just handle that for you
that is, it fixed the memory address problem without you needing to intervene
does anyone know the packet that is sent to update the max health of a player?
I checked there, I found update health which updates the health but not the max
I found another called Entity Properties
Which I'm unsure if that's for players
or just entities that are not players
Oh boy..
what
Have you heard of port fowarding
i have
that's what you need to do
@jaunty night update health is what you want
not entirely sure what you mean by max
You can set the players health either to 0 which they will probably die or you can set it to 20 which is the max
the amount of total hearts you have
@lapis plinth i have
yeah it will be that packet, believe you could send a value greater then 20
@lapis plinth i have
@abstract swallow Start the server and use canyouseeme.org to check. enter 25565 as the port, unless you've changed it
what
A free open port check tool used to detect open ports on your connection. Test if port forwarding is correctly setup or if your port is being blocked by your firewall or ISP.
Essentially this checks to see if your port forwarding worked
you just enter in the port you want to check
and then it will tell you if it works
what model router do you have?
Sky
can you send me a screenshot of the port forwarding screen and make sure to blank out any IPs
don't really need to blank out ips but can if you want, not like anyone is going to connect to your reserved ip
not like reserved ips are secret either
there is only 3 reserved ip spaces that home routers can use XD
Can't someone get your address from an IP that's not a local one
what
you mean as in where you live? most of the time they can only get the a general idea of where you live
not where you live exactly
very rare for an ISP to update the geo-ip of an ip to contain a specific persons address
you mean as in where you live? most of the time they can only get the a general idea of where you live
yeah, I did a geo ip search on my ip and it was way off. Came up in the middle of the city I live.
how do i make it portforward
@abstract swallow Get your router model and look up guides on the internet, google is your best friend for this.
ok thanks
does it give you errors?
[08:17:05 WARN]: Could not paste timings
java.io.IOException: Server returned HTTP response code: 500 for URL: http://pas
te.ubuntu.com/
Probably because a bit in the non ECC memory flipped and disabled timings 🤣
error correction code
Lol never mind
anyways, are you running an outdated version?
1.9.4
that would probably be why
How can i see timings ? Because server has lag spikes, i Want to learn what is the reason
Any plugin or?
Could you use a JVM profiler @cerulean musk
Could use spark
no it is a type of Java tool
Oh i download this plugin ?
My Minecraft-specific JVM profiler of preference, the description will show all it's capable of better than I'm able to explain
Should be noted it is a sampler profiler, not a real JVM profiler. Two different things. It will work for basic problems however.
It samples a bit of almost literally everything lol
It's nowhere near a proper universal JVM profiler, but this, for Minecraft is (in general) more than enough
Better than timings
I agree it is better then timings
Thanks @keen compass @frigid ember iwill try it
Spark is just the continuation of warmroast
It does say it right up front "spark is a performance profiling plugin based on sk89q's WarmRoast profiler" xd
allows for basic viewing of what the server is doing. Doesn't give an accurate idea of what is going on in the heap though. That is, you can see the memory usage, but it isn't broken down to see young, old, surviving generation
@jaunty night didnt work
so because of that, spark isn't useful to diagnose memory leaks
hot do i get people to join my mc server (what is the default ip)
you advertise it in the appropriate places for people to join it 😄
no what is the ip
didnt work
Well, the memory inspection thingy it has, while good, it also does point out "Not intended to be a full replacement of proper memory analysis tools"
Again, it's nowhere near a proper universal JVM profiler
haven't looked at the page in while
at least the author does due diligence in pointing that out
Just use NBT data instead of invisible lore
Yeah, the spigot API implementation uses NamespacedKeys iirc and that's dependent on the plugin so it wouldn't create incompatibilities
declaration: package: org.bukkit.persistence, interface: PersistentDataHolder
https://i.imgur.com/WJSYWRB.png this dosen't work how I want it to
it just launches me in the air 3 miles up and forward
idk if it does anything if I change reduction to a high amount
maybe I should test that
What's it supposed to do?
to basically reduce the knockback by that multiplier
so it decides how much kb does the player take
Your problem is negative numbers
wdym
multiply a negative with a positive and you get a positive
IE, -6 * 4 = 24
er -24
but I don't think it handles negatives very well
you have motx as minusing from the magnitude
which could make it negative
depending on the numbers you are working with
same with motz
what about Y
your Y is adding
so its possible that the numbers for x and z are not ones you are wanting
and y ends up being a large number then expected
should print out the numbers into chat
to see what numbers are being presented so you can get a better idea of what your math is doing
either broadcast it or just print it to the console
for console can just do System.out.println("");
ok
should probably floor your values if anything
if negative numbers are not something you want
motX/Z are negative
and motY is positive
[15:51:35 INFO]: motX: -0.5302055907775519
[15:51:35 INFO]: motY: 1.09
[15:51:35 INFO]: motZ: -0.9523560676060577
so shall I multiply X/Z and divide motY
or divide them all with a negative number except for motY
@keen compass
see, told you it was negative numbers 😛
now the thing is, you are dividing at the end
btw I added // to the knockback reduction codes the last ones, and added the system print thing
what number is the knockback reduction
1.0D
Perhaps a percentage may work better for reducing knockback, unless the multiplier is a percentage and in that case I'll just stfu
yes a percentage might work better
and just fyi 1.0D is still equal to 1
and in math
It means just that and not a reduction of 1
double result = X/Y;
result = result * 100;
hmm?
To decrease a number by a percentage don't you first have to get the percentage of that number and decrease it by that amount?
Ah I see
how am I gonna use the result
so basically result * motZ,motY,motX
Then just subtract that from the total
first you need to identify what is the highest the knockback can be
then you can get the percentage by doing knockbackreduction/highest knockback value
then times that by 100
that gets your percentage for reducing the knockback
Wouldn't it be better just to set a flat rate for reducing knockback in the config, so just I want for reduce knockback by 50% per say
they do set it in the config
I don't know the highest possible value for knockback
1%
I can only tell you the math for how to get what you want 😛
if knock back can be 100, then 1.0D is 1%
knockbackFrictionVertical: 1.5
knockbackFrictionHorizontal: 2.0
knockbackHorizontal: 1.09
knockbackVertical: 1.09
knockbackReduction: 1.0
ok, the highest value for knockback is 8 blocks distance
that is vanilla without plugins interfering
so if we assume 8 is 100, then 1.0D is 12.5%
how can I know what the max distance is
max distance is 8 blocks
my values are not vanilla kb
ok, but does that change what the max possible knockback can be in game though?
Why can't you just decrease motx, motz, and moty by the given percentage
Just because you are reducing it, doesn't mean the max suddenly went away that is possible
now mind you I am speaking of vanilla wise and not setting knockback to some arbitrarily high value lol
each level of knockback, adds 3 blocks distance, and the max distance is 8 blocks
Wouldn't it just be a lot easier to decrease these values like so: mot = mot - ((percentage/100) * mot)
Hey there. In 1.8 I used to replace some Biomes (ex: I don't wanted plains so I replaced it with a desert for example) before the generation (I used a Reflective way by changing a BiomeBase array). But since then they seem to have changed how it work. There isn't anymore the BiomeBase array. Anyone knows something about it?
i'm getting brain fogged here
@undone narwhal biomes are 3 dimensional now
Hey, Any good randomspawn plugins with custom radius that work for 1.16
everything i found doesnt work
I can pay ^
for someone to make it
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
Oh god, how should I proceed then? Is there a biome collection I can change somewhere in the nms stuff?
not entirely sure, it all changed and as far as I am aware it is a pain to hook into it
no one to my knowledge has managed to hook into it perfectly
^ terrible
is there a plugin for making a worp gui becuase i have essentials_warpgui plugin and i can design the gui
Okay thanks, I'll try some stuff, tell you when I get an update
however, you can still use custom world generators
just you won't get vanilla like worlds lol
it isn't so much hooking into the default generator rather you create your own
I succeed in making a HUGE plain but.. not really mc lmao
how do i design the warpgui's gui
- Trees + Caves + Ores ooof
i'm getting brain fogged here
@weak violet alright so let's take it back to the beginning to make it easier
And read the documentation
because I didn't understand almost anything
sorry but I am not from the U.S. or U.K.
@weak violet I know, sometimes math can be hard when you least expect it 😛
Alright so do you know how to get a percentage of a number
wdym by getting a percentage of a number ??
but I think with what you are trying to do, you would be better off using velocities though
velocities?
velocity allows you to get a trajectory to send the player
Are you talking about, let's say removing 20% of a number?
well code wise it is limited in what I can see and only going off what I see, in which case I don't see velocities lol
that is in the EntityLiving.java class
Velocity is the calculated movement after applying a vector strength on an entity
its hard to help you because we can't really tell you what the numbers should be
you will have to figure that out
we can only help you with the proper math
how do i make a custmo gui for making a teleport gui
You could just let Minecraft do it's calculation and just apply your decrease at the end
where exactly at the end
If all you need to do is say decrease the knockback then that will be suffice
Alright
maybe this might help
declaration: package: org.bukkit.event.player, class: PlayerVelocityEvent
My spigot account is stolen/what should I do?😫 😫 😫
?support
email support ^
Thank
The event will also remove the need for a custom spigot fork, which it looks like you are doing
lol
I have no idea when that event was introduced
Pretty sure that event will exist in later versions as well
might want to see if it exists in your version
it dosen't
Earlier versions you mean @jaunty night
Yeah
obviously it will most likely exist in later versions 😛
My English did a dumb
but since you are using outdated software I won't be of much more help then
I don't keep up with old versions
So I have no clue what exists and doesn't exist for old versions
public PlayerVelocityEvent(final Player player, final Vector velocity) {
this right?
That would be it
ok so what do I change here
you don't change it, that is an event you listen for
h
You'll use a plugin for this
Hello Spigotmc discord staff, could you please dunce kick ban or otherwise incapacitate the discord user with the ID 630439552389218313 he’s my friend and his account was compromised (you will see that much from his inappropriate discord name already) and I want to prevent further damage
@jaunty night don't necessarily need a plugin to listen for events lol
you can listen to events in the server as well
PotionMeta#getCustomEffects always returns an empty list for me, can anyone reproducue?
but, since you are making a fork, and need help with changing stuff in the server files themselves. I highly doubt anyone here is really going to be of much help
yeah but I wouldn't use a spigot fork to listen to events though
spigot fork just means you are changing the server code
help the warp gui plugin wont work :(
help me!!
I was bought [AsyncWorldEdit - Premium] by paypal, but not purchased that
yeah
in the server code you can listen for events that are thrown
I know, so essentially you are asking for help in creating a fork here 😛
modifying
still a fork none the less
I have some experience with making a fork but not that much
you modifying it, means it is no longer spigot 😉
it's not really changing spigot itself
but you are
the code you are messing with isn't just minecraft code, there is spigot code there too
If all you plan to do is add knockback reducition I would just use a plugin to listen for that event
There's no need for an entire fork for that
only thing i'm using from spigot is the config
but yeah I did more not only knockbackReduction
help i get this error with warp guihttps://pastebin.com/fspnqZuP
but, anyways my point is. It is poor etiquette to create a fork, and then come to upstream server because you need help in creating said fork.
If you want to create a fork that is fine, but you if you don't know what you are doing at all
@frigid ember this warp GUI? https://www.spigotmc.org/resources/essentials-warp-gui-opensource.13571/
probably not wise to do so 😉