#help-archived

1 messages · Page 165 of 1

subtle blade
#

setSpawnedType() will change the spawner's type

frigid ember
#

wow u made vein miner?

subtle blade
#

The plugin, not the Forge mod, yes

frigid ember
#

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

tiny pebble
#

thanks 😛

subtle blade
#

o/

frigid ember
#

oh yeah how do u get comments in ur config

#

@subtle blade yeah ent is zombie but spawner still spawns default pig

keen compass
#

@frigid ember Do you mean how to put them in there, or do you mean how to detect they are there?

lone fog
#
                     
                     blockState.update();``` 
Those arent the same variable
frigid ember
#

wdym?

#

ohh its spawner.update();

#

let me try that

hushed violet
#

where can i get auth login plugin for spigot 1.16.1 ?

lone fog
#

Enable online mode

subtle blade
#

We don't support offline servers

frigid ember
#

how to put them in there

hushed violet
#

Ok, im sorry

frigid ember
#

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

keen compass
#

you can spawn just about any entity using a spawner

frigid ember
#

Oh bet

#

not sure why its not working then hm

keen compass
#

you need to update the spawners type to spawn a particular entity from it

frigid ember
#

ent returns ZOMBIE

keen compass
#

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.

frigid ember
keen compass
#

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

frigid ember
#

Okok let me try that cause last time I tried to cancel the event it infinite looped the event for whatever reason

keen compass
#

well I gave you two ways to do it 😉

wary spoke
#

@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)};

keen compass
#

alright and what were you wanting to know?

#

what is the range of the numbers?

frigid ember
#

o i r stupid u can use ChatColor.of(Color color) so u dont have to put hex in

keen compass
#

not like its hard to put hex

#

Java supports Hex

#

there is a method to convert to it easily

frigid ember
#

hm yea

#

ill just keep it then ig

subtle blade
#

There's always DyeColor#getColor() and ChatColor#getColor()

#

Both of which return Color objects

bright forge
#

Hi, is there a easy way to set() on a YamlConfiguration only if the value doesnt exist?

fringe cairn
#

wait using intelliJ and spigot live debug is it possible to edit live

bright forge
#

as i have tod add a if (x contains...) thingy

fringe cairn
#

and make changes to the plugin code while its running

frigid ember
#

@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

keen compass
#

@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.

frigid ember
#

like a runable?

keen compass
#

yes

frigid ember
#

gotcha

fringe cairn
#

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?

west ermine
#

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

keen compass
#

@fringe cairn need to put plugins in the plugins directory first before starting the server

#

@west ermine depends on the plugin you are using

frigid ember
#

@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);

}```
west ermine
#

VaultChatFormatter

#

@keen compass

keen compass
#

give me a sec

#

doing some clan wars, will help here in a few minutes lol

frigid ember
keen compass
#

@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

wheat mirage
#
[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

keen compass
#

don't expect help for outdated server software

#

it is on you to fix your problems with it if you refuse to update

frigid ember
#

Paper:

[00:01:30 ERROR]: Please report this to PaperSpigot directly!
Also Paper:
Look for plugins here before reporting to PaperSpigot!

subtle blade
#

Also Paper:

lol 1.8

#

To be fair, that's me as well.

#

lol 1.8

frigid ember
#

I’m getting errors that are some how related to paper but I don’t even have paper

keen compass
#

@frigid ember some plugins use the paper API library

frigid ember
#

it’s a world related error

keen compass
#

then you are using paper

frigid ember
#

well that’s simply impossible

#

my jar is from build tools

keen compass
#

your right which means your statement is false in that you are not using paper

frigid ember
#

that’s what I said, i’m not using paper

#

but I googled my error and it says it was related to paper

keen compass
#

which is false or you have a plugin that is trying to use paper API methods

frigid ember
#

it’s not a plugin error

#

it’s a world error

keen compass
#

then you are using paper, not magic

frigid ember
#

I said I’m not using paper

#

god damn

keen compass
#

All it is complaining about is unsupported keys.

lone fog
#

You’re right googling that does bring up paper errors

#

And spigot errors

#

And even vanilla ones

keen compass
#

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

frigid ember
#

Alright then forget I said paper

#

Can you help me with my problem?

keen compass
#

There isn't really anything to do except go replace the items it is complaining about. It is just a warning

frigid ember
#

nvm I'm stupid

#

What are the items?

keen compass
#

has it in that list you pasted

frigid ember
#

flower pot?

kindred bane
#

Did you update your server and not use --forceUpgrade option? Just a though.

keen compass
#

That doesn't appear to be the issue

#

Mojangs Datafixer would have fixed the items appropriately upon the chunk loading

frigid ember
#

what does --forceUpgrade do?

keen compass
#

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

frigid ember
#

so its for older severs converting to newer versions?

keen compass
#

since NBT data tends to change

frigid ember
#

yea

#

I updated spigot recently and this map is brand new off of world painter

keen compass
#

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

lone fog
#

It’s probably worldpainter saving old format NBT data

keen compass
#

World painter probably used NBT data that isn't supported

frigid ember
#

hmm

#

is that a question I should defer to WP

keen compass
#

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

frigid ember
#

ya nothing seems wrong in game

#

I just want them to stop spamming console

keen compass
#

easiest way is to go around replacing those items

#

destroy them, place them back

frigid ember
#

hundreds of them

#

maybe even a thousand

keen compass
#

could try using --forceupgrade

#

to see if that will resolve it

#

but I doubt it will

frigid ember
#

Anyone know a good

#

sell/buy sign plugin

keen compass
#

EssentialsX does alright for that

#

there is even ChestShop as well

#

ChestShop has the ability to just use signs without chests

frigid ember
#

[buying]
Cookie: 1
1 Diamond(s)
Minecraft IGN here

#

yeah looking for a plugin that allo2ws you to buy items using in-game items

keen compass
#

Chestshop does that

#

so does EssentialsX

frigid ember
#

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

kindred bane
#

Yes @frigid ember

frigid ember
#

is there a way to prevent that from happening?

keen compass
#

@frigid ember yes

frigid ember
#

how?

keen compass
#

You will have to read the entire file line by line and store the comments in memory, re-apply the comments after you save

kindred bane
keen compass
#

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.

frigid ember
#

hm ok

keen compass
#

or use a yaml library that does it too

#

one of the three

lone fog
#

Or avoid saving files that have comments in the first place

keen compass
#

can't exactly avoid that

frigid ember
#

could i just put all the comments in one bulk thing at the top

#

and avoid this altogether?

#

or is that messy

keen compass
#

if I recall, Comments at the top are left alone

lone fog
#

I mean you generally don’t need comments on a file that just stores data

frigid ember
#

hmm yeah

lone fog
#

And you generally don’t need to edit a normal config file in game, so I’ve been able to avoid it so far

keen compass
#

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

lone fog
#

Can always make a fancy GUI editor with descriptions built in at that point

#

But that does take longer

keen compass
#

or you know, just keep it simple with commands

lone fog
#

Commands are boring

#

Who likes typing :p

keen compass
#

In one of my plugins, I use Conversation API for changing the config 😉

frigid ember
#

tru tho commands are boring

#

ok i think i found a solution

#

that works around all of this

keen compass
#

problem with GUI's is you introduce more problems that need to be handled

lofty meadow
#

Hello! How to create an empty world completely?

#

Google hard to help

#

Then I ask here instead

#

Just a simple code please?

wheat mirage
#

@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

subtle blade
#

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

wheat mirage
#

I'm not asking for you to support it

frigid ember
#

PING WHAT WHEN WHY

wheat mirage
#

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

lone fog
#

Citation needed

wheat mirage
#

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

frigid ember
#

I would say even more than 50%

#

Would need to check bstats

wheat mirage
#

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.

subtle blade
#

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

nimble stump
#

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

keen compass
#

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 😉

errant sluice
#

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.

keen compass
#

what do you mean update the mca files?

#

normally the server does it automatically

errant sluice
#

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

keen compass
#

if you don't use --forceupgrade

#

the files are updated as they are needed/loaded

errant sluice
#

i have built a lot and the view is over a week old

keen compass
#

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

frigid ember
#

trying to get started with coding, no previous experience at all, just wondering do you need a good pc to code plugins?

keen compass
#

no

#

just use a decent IDE like IntelliJ or Netbeans, can even use Eclipse if you prefer

frigid ember
#

okay most people use IntelliJ

keen compass
#

get the Java JDK. Java 14 is ideal to use and supports all the way back to java 1.8

frigid ember
#

nowadays

#

ok

errant sluice
#

Is there a way other than save to force them to update?

keen compass
#

--forceupgrade

frigid ember
#

I'm thinking of making a HelloWorld plugin, and then adjusting it from there. Reading docs and stuff, would that be your recommendation?

keen compass
#

Generally that is the best way to start

balmy sentinel
#

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.

keen compass
#

you need to first decide how many you want to list at a given time

errant sluice
#

--forceupgrade
@keen compass do i run that standalone in console/

frigid ember
#

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?

keen compass
#

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

errant sluice
#

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?

balmy sentinel
#

thanks @keen compass I'll give it a try

grave narwhal
#

wow! thats crazy! too bad my hosting provider prohibits me hosting my server on 1.15.2 - 1.16.1 !

#

its against their tos

frigid ember
#

how would i save a list of locations in a config file?

grave narwhal
#

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?

frigid ember
#

Location objects, of special blocks in the world

grave narwhal
#

i mean

#

if thats the case

#

i wouldnt save it in a config file

#

Location variables

keen compass
#

easiest way I have found is to serialize the location object @frigid ember

frigid ember
#

yes, but how would i put that in a list?

keen compass
#

far easier to re-obtain it later without having to parse anything 😉

#

You can just store arrays in yaml

frigid ember
#

wait so frost you use intellij?

keen compass
#

No

#

I use Netbeans

frigid ember
#

oh okay, so i download intellij idea community right? is that what most people use for itnellij

grave narwhal
#

yes

#

community

keen compass
#

Yes

frigid ember
#

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?

keen compass
#

Yes if its just a bunch of locations

frigid ember
#

oh ok

#

thanks ill try that

keen compass
#

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.

opal bay
#

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?

keen compass
#

every other instance of what?

opal bay
#

sorry I meant like

#

every othe match

#

i need sleep

keen compass
#

you want to match testing123

opal bay
#

I want to match test but if theres testing123 I want to ignore it

errant sluice
#

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

subtle blade
#

testing\s+

#

actually isn't there a negative look-ahead?

keen compass
#

test^ should do the trick

subtle blade
#

That's the one

keen compass
#

^test$ @opal bay

#

^ means start of boundary and $ means end of boundary

opal bay
#

thanks a lot guys

keen compass
#

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.

errant sluice
#

ok, i'll do some more digging. thank you for the help

frigid ember
#

when i install jdk, do i install the bin or exe version?

keen compass
#

exe version if on windows

frigid ember
#

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?

keen compass
#

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

frigid ember
#

oh okay

#

would you be fine if i dm u some stuff i need help on?

keen compass
#

sure

fervent mortar
#

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!

frigid ember
#

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

fervent mortar
#

I imagine there's nobod here

#

oh!

frigid ember
#

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?

keen compass
#

to see what the outcome is I guess

#

really isn't necessary

fringe cairn
#

is there a UUID var type I should be using or is it fine to store uuid's as strings

keen compass
#

it is fine to store uuids as strings

#

there is a method that is part of UUID to get a UUID from string

fringe cairn
#

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

jolly sierra
#

what plugin can i use to discord bungeecord server online players

vernal spruce
#

@fringe cairn well in newer versions chest have PersistentData,simply listen to the explosionevent,check if the chest has that data and easy..

hasty crag
#

how could i send a message to a player like player.sendMessage with a custom font?

fringe cairn
#

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

vernal spruce
#

You dont there is an event specific to explosion

fringe cairn
#

Instead of a database?

vernal spruce
#

well persistentdata its from 1.13

fringe cairn
#

I know but I want to make it unbreakable

#

Yeah that's fine this is a 1.16 plugin

vernal spruce
#

All it has to do its gonna hold 1 value

fringe cairn
#

Wait what values can it hold?

#

Just one variable?

vernal spruce
fringe cairn
#

So like unbreakable in every way including mining

#

Okay thanks

vernal spruce
#

You store a value to act as a trigger,then you do ur own checks on events

fringe cairn
#

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

vernal spruce
#

Well there is no other way

fringe cairn
#

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?

vernal spruce
#

You can always lock the checks to be chest specific so there isnt much performance lost

fringe cairn
#

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

vernal spruce
#

You just check if a block its a chest

#

Before getting the persistentdata

fringe cairn
#

Okay thanks

#

And do you know about the double chest thing?

#

Or should I just try stuff and see what works

hasty crag
#

how could i send a message to a player like player.sendMessage with a custom font?

proper cairn
#

What are some good links to open source mods

frigid ember
#

Does anyone know a shop plugin for barrels

granite spade
#

so for Bedrock edition

#

Any samples on how one can program its plugins?

teal oasis
#

does anyone know if custom blocks are possible with a resource pack such as custommodeldata

frigid ember
#

how do i make it so if i right click an npc it warps me to somewhere

cerulean musk
#

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/

wraith thicket
frigid ember
#

i did it but

#

it only works on me and noone else

#

pls help i want like hypixel

cerulean musk
#

@frigid ember you want with menus ?

#

use command panels -(or)- chest commands

frigid ember
#

no

#

stuff like

#

/spawn and /warp survival

shy shard
frigid ember
#

still looking for this plugin

rare prairie
#

signshop

hollow thorn
frigid ember
#

Are there any player sign shops plugin

hollow thorn
#

that text is obfuscated

#

Are there any player sign shops plugin
@frigid ember many

frigid ember
#

where to find

hollow thorn
shy shard
#

@hollow thorn that text is obfuscated

#

that was for me or what

hollow thorn
#

yes

#

mabye that is something to do with the chat type thingy

#

perhaps doing a chartformat reset thingy before the comma would work

frigid ember
#

Bruh the plugin i cant the specific plugin im lloking for

shy shard
#

I was just reding some people saying could be problem do resourcepack

frigid ember
#

im looking for that type of sign shop plugin

#

cant find it

rare prairie
#

#UseSpigotSearchEngine

inland oxide
#

@frigid ember areashop

#

i think

frigid ember
#

Unsupported 1.15 version sucks thank you tho

hollow thorn
#

@frigid ember do /plugins on the server

#

that will give you all the plugins

cerulean musk
#

guys timing why not working

frigid ember
#

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

river cradle
#

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?

undone narwhal
#

Search for "Warp GUI" or "Teleport GUI" @frigid ember

frigid ember
#

insufficient perms

#

anyone what plugin was used ^

undone narwhal
#

@river cradle Can you please paste your PlayerQuitEvent with the error (NPE I guess)

river cradle
#

Well there is no error, the server I'm trying to get is just null

undone narwhal
#

Then we have to check your getServer method

river cradle
#
@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

undone narwhal
#

@frigid ember Just try to /plugins on the server or / + TAB

river cradle
#
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

undone narwhal
#

Hmm strange. You should maybe try to debug the server.players list to check if it well contains all the players

mellow wave
#

Try storing and matching UUIDs instead

river cradle
#

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

undone narwhal
#

Try storing and matching UUIDs instead
^ Better

river cradle
#

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 the PlayerQuitEvent

#

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 🙂

undone narwhal
#

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;
                }
            }
        }
frigid ember
#

nop plugins not showing up onn tba

#

tab

undone narwhal
#

Maybe the player instance is destroyed some ms after the event

#

@frigid ember dm me the server address

frigid ember
#

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.

undone narwhal
#

Nop :/

hollow thorn
#

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

frigid ember
#

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

hollow thorn
#

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

mellow wave
#

no

#

Don't use that site

undone narwhal
#

^

#

NEVER use it

keen compass
#

@hollow thorn good way to get banned or in trouble by recommending people to go there

hollow thorn
#

oh okay

#

have you reported it for piracy

undone narwhal
#

Just contact the owner and donate him through another system

#

Yes euan but we can't do anything

keen compass
#

donate lol, you mean pay 😉

#

two different things

undone narwhal
#

Frostalf, I'm considering spigot as a donate platform. You got paid when you work for someone

#

Donate in exchange of a great plugin

keen compass
#

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

peak glade
#

hey

#

can help me

torn robin
#

?ask

worldly heathBOT
#

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.

torn robin
#

can’t help you

peak glade
#

Why ?

torn robin
#

u no ask question

#

you ask asking asking questions

undone narwhal
#

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

keen compass
#

legally in the US donating means what I said

hollow thorn
#

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

dreamy dawn
#

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?

keen compass
#

you are not really making sense with this

#

what is ipwhitelist?

#

is that a plugin or something?

sturdy oar
#

it's a stupid plugin yeah

keen compass
#

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

quasi seal
#

Is there an event for the upgrade of items in the smithing table (1.16) ?

dreamy dawn
keen compass
#

And if you read that page

#

you can't connect to reserved ips from the outside

dreamy dawn
#

Yep

keen compass
#

which means that is obviously not going to be an ip you are going to connect to

dreamy dawn
#

yeah

#

I meant in the firewall though, would it be the reserved IP address or the connectable one

fervent bone
#

i mean ipwhitelist has setupmode so just enable that and then connect to server wia bungee server you're gonna use?

keen compass
#

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

fervent bone
#

or you could just not port forward other ports than bungee one?

dreamy dawn
#

IPWhitelist is configured and working Gasper, I'm looking to change it to a firewall

keen compass
#

does both bungee and the mc server run on the same host?

dreamy dawn
#

yep they're both on the same machine

keen compass
#

now are you configuring a hardware firewall

#

or iptables

dreamy dawn
#

IPTables

keen compass
#

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

dreamy dawn
#

Isn't that still bypassable if another person uses the same host, though?

keen compass
#

no

#

I am assuming you are renting a vps right?

dreamy dawn
#

something like that. Shared hosting but it's a really small host so we're the only ones on our machine

keen compass
#

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 😉

dreamy dawn
#

I see, in that case no this is not similar to a VPS in that aspect

keen compass
#

that is a loopback address. Impossible to connect to that address outside of your vps

dreamy dawn
#

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

keen compass
#

so you can see other peoples servers?

abstract swallow
#

please can someone help me make a server

keen compass
#

?bt

worldly heathBOT
abstract swallow
#

thanks

#

is this for 1.16.1

keen compass
#

@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

dreamy dawn
#

Oh, I don't have access to the IPTables

abstract swallow
#

ok thanks

dreamy dawn
#

The host does, but we're able to ask the host to do stuff with them since it's a small host

abstract swallow
#

what will the ip be

keen compass
#

would highly recommend switching then.

#

Should ask your host to help you out

#

since this is a setup that isn't standard

abstract swallow
#

what will my server ip be

#

on my pc

keen compass
#

@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

abstract swallow
#

oh so it will be my 1pv4??
@frigid ember

dreamy dawn
#

Oh... do you think you can DM me with some of those vulnerabilities?

abstract swallow
#

ipv4

dreamy dawn
#

or say it here, both are fine for me but I'm not sure where you would want to say it

abstract swallow
#

or my local ip

keen compass
#

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

abstract swallow
#

@frigid ember how do i do that

keen compass
#

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

abstract swallow
#

ok thanks

dreamy dawn
#

Yikes, I'll put a VPS on the to-do list. Thank you!

keen compass
#

not sure what your budget is

#

but Dedicated servers are cheap too

abstract swallow
#

is their a 1.16.1 spigot install

keen compass
#

yes

abstract swallow
#

where

keen compass
#

get buildtools

#

run java -jar buildtools.jar --rev 1.16.1

dreamy dawn
#

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

abstract swallow
#

where do i do that command

dreamy dawn
#

Also Frostalf you helped me nearly 3 years or something ago when I was first starting, thanks for that as well :)

keen compass
#

Interesting, let me get you a link then

abstract swallow
#

ok thanks

keen compass
#

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

abstract swallow
#

do i have to cd into the folder

#

ok thnaks

#

oh ok thanks for that

neat pulsar
#

hello

dreamy dawn
#

atm we're paying something like $110/mo for shared hosting on a 7700k and a 3600x

keen compass
neat pulsar
dreamy dawn
#

But peaks of ~110 players/day across servers so the high price is justified

keen compass
#

if you want you can get OVH servers

#

which are of similar cost

#

of what you are paying now

#

but a whole lot better

brisk barn
#

e5

#

big yikes

keen compass
#

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

dreamy dawn
#

Isn't singlethreaded performance of a 9700k/9900k still better than that

keen compass
#

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

dreamy dawn
#

MC stuff is complicated. I'm just looking to increase TPS :P

keen compass
#

There is some plugins that do make use of multi-threading as well

dreamy dawn
#

I don't think the xeon offers an upgrade from a 7700k though, right?

keen compass
#

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

dreamy dawn
#

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

keen compass
#

Also server grade cpu's tend to have a larger L cache as well

#

unlike desktop cpu's

frigid ember
#

There is some plugins that do make use of multi-threading as well
Some, but most don't

keen compass
#

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 😛

dreamy dawn
#

Weird, so why are the i7 and ryzens in the category "game" but the fast xeon is not?

keen compass
#

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 😛

frigid ember
#

Excuse me but that sounds like bullshit lol

keen compass
#

what is new is for the i7 series to have it if that makes sense

#

not that it is new entirely

dreamy dawn
#

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?

keen compass
#

There is single threaded Xeons btw

frigid ember
#

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

keen compass
#

not sure where you get that it was claimed lower frequency processor is better

misty pine
#

Is someone other getting problems on 1.16.1 with that code (I get nullpointerexceptions)
player.setHealth(player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getDefaultValue());

keen compass
#

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

frigid ember
#

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

keen compass
#

GPU processors run orders slower then CPU's but are still faster

#

but only doing certain things though and not everything

frigid ember
#

But those tasks are designed for GPU hardware to take advantage of that

keen compass
#

my point is that frequency isn't the end all of things

#

Second, there is some things in Minecraft that is multi-threaded

frigid ember
#

And core count doesn't make your server run faster if it has only 1 thread, it's useless

keen compass
#

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

frigid ember
#

Yes there are, but entity processing, chunk processing and most plugins out there is single threaded

keen compass
#

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

dreamy dawn
#

So if TPS is 15 due to entity tick, that'd still benefit more from an 9900k than a Xeon, right?

keen compass
#

Also, Running multiple Java applications

#

means each application can be ran on a separate core

frigid ember
#

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

peak glade
#

hey

keen compass
#

True, but if those 20 arms were actually split in half and had 2 bodies it can

#

which is my point

peak glade
keen compass
#

Bungee can be one core and MC server can be on another

frigid ember
#

But it don't because humans be humans

keen compass
#

And we are not talking about humans now are we

peak glade
#

scoreboard

frigid ember
#

scoreboard
Yes that is a scoreboard indeed

peak glade
keen compass
#

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.

peak glade
#

how hide games ?

dreamy dawn
#

Ok, I'll take that into account. Thanks again Frost!!

keen compass
#

Oh

#

Server grade cpus support error correction code

#

desktop cpus do not

wraith thicket
#
  • ECC memory?
keen compass
#

Yes

peak glade
#

hmm hello ?

keen compass
#

desktop cpus can't handle ECC memory

frigid ember
#

You think you'll need ECC memory to run a Minecraft server?

keen compass
#

You do realize dedicated server boxes are quite handy to run more then minecraft servers o.O

frigid ember
#

Sounds like using a 100W LED flashlight on broad daylight

keen compass
#

MySQL DB can make use of ECC memory

#

just fyi

frigid ember
#

ECC is only useful if things go wrong

#

I mean, it's in the name

keen compass
#

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

frigid ember
#

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?

keen compass
#

Yes

frigid ember
#

Have you done the measurements?

keen compass
#

laboratories do exist

#

that do gamma radiation testing

frigid ember
#

.... outside laboratories

#

End users, consumers

keen compass
#

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

jaunty night
#

does anyone know the packet that is sent to update the max health of a player?

keen compass
#

contains everything related to packets for minecraft

jaunty night
#

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

abstract swallow
#

how do i add a ip to my server

#

and how will my friends join accross the sea

vernal spruce
#

Oh boy..

abstract swallow
#

what

jaunty night
#

Have you heard of port fowarding

abstract swallow
#

i have

jaunty night
#

that's what you need to do

keen compass
#

@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

jaunty night
#

the amount of total hearts you have

abstract swallow
#

@lapis plinth i have

jaunty night
#

that's what I mean by max

#

effectively the generic.maxHealth attribute

keen compass
#

yeah it will be that packet, believe you could send a value greater then 20

jaunty night
#

@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

abstract swallow
#

what

jaunty night
#

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

abstract swallow
#

it didnt

#

can u help me

jaunty night
#

what model router do you have?

abstract swallow
#

Sky

jaunty night
#

can you send me a screenshot of the port forwarding screen and make sure to blank out any IPs

abstract swallow
#

ok

#

1 min

keen compass
#

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

jaunty night
#

Can't someone get your address from an IP that's not a local one

abstract swallow
#

what

keen compass
#

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

abstract swallow
#

it isnt showing now

#

how do i make it portforward

#

@jaunty night

jaunty night
#

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.

abstract swallow
#

ok thanks

cerulean musk
#

Guys

#

Timings not working why ?

keen compass
#

does it give you errors?

cerulean musk
#

[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
#

Probably because a bit in the non ECC memory flipped and disabled timings 🤣

cerulean musk
#

What is ecc :D

#

Sorry for my english

keen compass
#

error correction code

frigid ember
#

Lol never mind

keen compass
#

anyways, are you running an outdated version?

cerulean musk
#

1.9.4

keen compass
#

that would probably be why

cerulean musk
#

How can i see timings ? Because server has lag spikes, i Want to learn what is the reason

#

Any plugin or?

keen compass
#

Could you use a JVM profiler @cerulean musk

frigid ember
#

Could use spark

cerulean musk
#

@keen compass what is it :D ? Plugin?

#

İm new

keen compass
#

no it is a type of Java tool

cerulean musk
#

How can i ise jvm ?

#

Use*

keen compass
#

can always do a heap dump

#

and then use a heap dump viewer too

frigid ember
cerulean musk
#

Oh i download this plugin ?

frigid ember
#

My Minecraft-specific JVM profiler of preference, the description will show all it's capable of better than I'm able to explain

keen compass
#

Should be noted it is a sampler profiler, not a real JVM profiler. Two different things. It will work for basic problems however.

frigid ember
#

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

keen compass
#

sometimes

#

And it doesn't sample everything

frigid ember
#

Better than timings

keen compass
#

I agree it is better then timings

cerulean musk
#

Thanks @keen compass @frigid ember iwill try it

keen compass
#

Spark is just the continuation of warmroast

frigid ember
#

It does say it right up front "spark is a performance profiling plugin based on sk89q's WarmRoast profiler" xd

keen compass
#

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

abstract swallow
#

@jaunty night didnt work

keen compass
#

so because of that, spark isn't useful to diagnose memory leaks

abstract swallow
#

hot do i get people to join my mc server (what is the default ip)

keen compass
#

you advertise it in the appropriate places for people to join it 😄

abstract swallow
#

no what is the ip

keen compass
abstract swallow
#

didnt work

frigid ember
#

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

keen compass
#

haven't looked at the page in while

#

at least the author does due diligence in pointing that out

sturdy oar
#

@abstract swallow are you on a VPS or shared server

#

Linux\MacOS or Windows?

jaunty night
#

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

weak violet
#

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

jaunty night
#

What's it supposed to do?

weak violet
#

to basically reduce the knockback by that multiplier

#

so it decides how much kb does the player take

keen compass
#

Your problem is negative numbers

weak violet
#

wdym

keen compass
#

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

weak violet
#

wait so motZ,X,Y are negatives

#

?

keen compass
#

you have motx as minusing from the magnitude

#

which could make it negative

#

depending on the numbers you are working with

#

same with motz

weak violet
#

what about Y

keen compass
#

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

weak violet
#

ok

#

where is the print method located

#

in the spigot

keen compass
#

either broadcast it or just print it to the console

#

for console can just do System.out.println("");

weak violet
#

ok

keen compass
#

should probably floor your values if anything

#

if negative numbers are not something you want

weak violet
#

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

keen compass
#

see, told you it was negative numbers 😛

#

now the thing is, you are dividing at the end

weak violet
#

btw I added // to the knockback reduction codes the last ones, and added the system print thing

keen compass
#

what number is the knockback reduction

weak violet
#

1.0D

jaunty night
#

Perhaps a percentage may work better for reducing knockback, unless the multiplier is a percentage and in that case I'll just stfu

keen compass
#

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

weak violet
#

percentage?

#

any ideas of how can I do that

keen compass
#
double result = X/Y;
result = result * 100;
weak violet
#

hmm?

jaunty night
#

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?

keen compass
#

Yes you first need to get the percentage

#

and then you can reduce

jaunty night
#

Ah I see

weak violet
#

how am I gonna use the result

jaunty night
#

result * knockback

#

And then that gives X percent of knockback

weak violet
#

so basically result * motZ,motY,motX

jaunty night
#

Then just subtract that from the total

keen compass
#

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

jaunty night
#

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

keen compass
#

they do set it in the config

weak violet
#

wait

#

so 1.0D is 10% reduction?

#

or 1%

keen compass
#

I don't know the highest possible value for knockback

weak violet
#

well depends

#

horizontal/vertical

jaunty night
#

1%

keen compass
#

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%

weak violet
#
knockbackFrictionVertical: 1.5
knockbackFrictionHorizontal: 2.0
knockbackHorizontal: 1.09
knockbackVertical: 1.09
knockbackReduction: 1.0
keen compass
#

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%

weak violet
#

how can I know what the max distance is

keen compass
#

max distance is 8 blocks

weak violet
#

my values are not vanilla kb

keen compass
#

ok, but does that change what the max possible knockback can be in game though?

jaunty night
#

Why can't you just decrease motx, motz, and moty by the given percentage

keen compass
#

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

jaunty night
#

Wouldn't it just be a lot easier to decrease these values like so: mot = mot - ((percentage/100) * mot)

undone narwhal
#

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?

weak violet
#

i'm getting brain fogged here

keen compass
#

@undone narwhal biomes are 3 dimensional now

proven sinew
#

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

keen compass
#

?services

worldly heathBOT
undone narwhal
#

Oh god, how should I proceed then? Is there a biome collection I can change somewhere in the nms stuff?

keen compass
#

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

undone narwhal
#

^ terrible

frigid ember
#

is there a plugin for making a worp gui becuase i have essentials_warpgui plugin and i can design the gui

undone narwhal
#

Okay thanks, I'll try some stuff, tell you when I get an update

keen compass
#

however, you can still use custom world generators

#

just you won't get vanilla like worlds lol

undone narwhal
#

The fact is I don't know how to hook into the default generator

#

yeah

keen compass
#

it isn't so much hooking into the default generator rather you create your own

undone narwhal
#

I succeed in making a HUGE plain but.. not really mc lmao

keen compass
#

just add some perlin noise 😛

#

its what MC does

frigid ember
#

how do i design the warpgui's gui

undone narwhal
#
  • Trees + Caves + Ores ooof
frigid ember
#

hello?

#

:(

jaunty night
#

i'm getting brain fogged here
@weak violet alright so let's take it back to the beginning to make it easier

undone narwhal
#

@frigid ember There are bunch of WarpGUI plugins

#

Just download one

frigid ember
#

?

#

ok

undone narwhal
#

And read the documentation

weak violet
#

because I didn't understand almost anything

#

sorry but I am not from the U.S. or U.K.

keen compass
#

@weak violet I know, sometimes math can be hard when you least expect it 😛

jaunty night
#

Alright so do you know how to get a percentage of a number

undone narwhal
#

wdym by getting a percentage of a number ??

keen compass
#

but I think with what you are trying to do, you would be better off using velocities though

weak violet
#

velocities?

keen compass
#

velocity allows you to get a trajectory to send the player

weak violet
#

these are velocities

#

that I provided

undone narwhal
#

Are you talking about, let's say removing 20% of a number?

keen compass
#

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

weak violet
#

that is in the EntityLiving.java class

undone narwhal
#

Velocity is the calculated movement after applying a vector strength on an entity

keen compass
#

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

weak violet
#

this is in the EntityHuman.java class

frigid ember
#

how do i make a custmo gui for making a teleport gui

undone narwhal
#

bicxter, search a plugin called Teleport / Warp GUI

#

Download

#

Read the page

jaunty night
#

You could just let Minecraft do it's calculation and just apply your decrease at the end

keen compass
#

you end up with less control though doing it that way

#

but that is a solution

weak violet
#

where exactly at the end

jaunty night
#

If all you need to do is say decrease the knockback then that will be suffice

weak violet
#

can you tell me exactly where do I need to do this

#

since I am oblivious

jaunty night
#

Alright

keen compass
#

maybe this might help

pastel needle
#

My spigot account is stolen/what should I do?😫 😫 😫

keen compass
#

?support

worldly heathBOT
keen compass
#

email support ^

pastel needle
#

Thank

jaunty night
#

The event will also remove the need for a custom spigot fork, which it looks like you are doing

keen compass
#

lol

weak violet
#

one little problem

#

I am not using 1.16.1

keen compass
#

I have no idea when that event was introduced

jaunty night
#

Pretty sure that event will exist in later versions as well

keen compass
#

might want to see if it exists in your version

weak violet
#

it dosen't

keen compass
#

Earlier versions you mean @jaunty night

jaunty night
#

Yeah

keen compass
#

obviously it will most likely exist in later versions 😛

jaunty night
#

My English did a dumb

keen compass
#

but since you are using outdated software I won't be of much more help then

#

I don't keep up with old versions

weak violet
#

oh

#

I think I found it

keen compass
#

So I have no clue what exists and doesn't exist for old versions

weak violet
#

public PlayerVelocityEvent(final Player player, final Vector velocity) {

#

this right?

jaunty night
#

That would be it

weak violet
#

ok so what do I change here

jaunty night
#

Nothing

#

It's an event

keen compass
#

you don't change it, that is an event you listen for

weak violet
#

h

jaunty night
#

You'll use a plugin for this

weak violet
#

oh no

#

non

#

ono

rugged pebble
#

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

keen compass
#

@jaunty night don't necessarily need a plugin to listen for events lol

#

you can listen to events in the server as well

fossil shoal
#

PotionMeta#getCustomEffects always returns an empty list for me, can anyone reproducue?

keen compass
#

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

jaunty night
#

yeah but I wouldn't use a spigot fork to listen to events though

keen compass
#

spigot fork just means you are changing the server code

frigid ember
#

help the warp gui plugin wont work :(

split carbon
#

help me!!
I was bought [AsyncWorldEdit - Premium] by paypal, but not purchased that

weak violet
#

yeah

keen compass
#

in the server code you can listen for events that are thrown

weak violet
#

well that's what i'm doing

#

changing the server code

keen compass
#

I know, so essentially you are asking for help in creating a fork here 😛

weak violet
#

modifying

keen compass
#

still a fork none the less

jaunty night
#

I have some experience with making a fork but not that much

keen compass
#

you modifying it, means it is no longer spigot 😉

weak violet
#

it's not really changing spigot itself

keen compass
#

but you are

weak violet
#

but changing the minecraft server

#

the minecraft code

#

minecraft server code

keen compass
#

the code you are messing with isn't just minecraft code, there is spigot code there too

jaunty night
#

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

weak violet
#

only thing i'm using from spigot is the config

#

but yeah I did more not only knockbackReduction

frigid ember
keen compass
#

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

odd knoll
keen compass
#

probably not wise to do so 😉