#help-development
1 messages · Page 1520 of 1
well, you could just make it so that only the player you want can pick it up maybe
but it didnt worked that well
yes, but it isn't cool
😦
but ty
make some cool particles around it make it cool 😄
oh
good idea
or floating villagers
i love villagers
or a holograph saying 'Player's Item'
villagers are gay
ohh
HOW DARE YOU
who says someone hates gay
Gay does not harm us.
sounds like you're a homophobe
ahhh
when i sometimes accidently turn off the internet my ip dont change but when the wifi just randomly go down sometimes it changes my ip like bruhhhhhhh
loll
like this?
if(inventory.getHelmet() != null)
{
if(inventory.firstEmpty() == -1)
{
target.getWorld().dropItemNaturally(target.getLocation(), inventory.getHelmet());
}else
{
inventory.addItem(inventory.getHelmet());
}
inventory.setHelmet(new ItemStack(Material.AIR));
}```
thats because you "turning off the internet" doesn't turn off the internet
you can't turn off the internet
the best you can do is disconnect from it
most likely yea
and you disconnecting your machine from your home network is not disconnecting from the internet
the router is still connected and assigned a valid ip address
use inventory.addItem()
get the returned Map
then drop the items in that map
no i mean turning off the router
;-;
it's possible that the router restarts for the explicit purpose of acquiring a new ip
idk when it was raining and thundering before it kept disconnecting and it changed the ip
it changed like twice
Can we get text show up with a dirt background when we want to go to a server?
Please note that this command is not supported and may cause issues when using some plugins.
If you encounter any issues please use the /stop command to restart your server.
is it possible to remove this message?
like I dont want the player to see it also
why is a player seeing it
ops
also just reload the plugins individually
how?
with a plugin manager
ops can still see it
ops should see it
reload the plugins individually
and it spams my chat
reloading the entire server to test one plugin is dumb
I dont have 3 plugins
My own, protocollib and another of mine
/reload takes like a second
I just want to hide the message
I still need to see other debug messages
don't look at the chat box
fork spigot and make it not send the message
add a filter on the protocol layer that filters the chat message out
or just don't be a tard about it and reload the individual plugin
nah frick Im forking paper and nuking this bitch outta there
guys i am having a problem whith multiverse where if people create a nether portal on the survival map they spawn ate the hub dimension for some reason
doesn't sound like a development question
why do you use prod for testing?
Anyone know how to shift location relative to the rotation? I got it to go forward/back or left/right using only the yaw but I do not know how to also make the pitch work and go up and down.
What should I use to increment a player's counter when they kill an entity ? EntityDamageEvent with a health check or EntityDeathEvent ?
player's counter?
(an internal map)
Basically I want to create a coin counter that increment by x when killing a y entity
Hi, would you know how to link the movements of two players, for example when player A moves, Player B transcribes the movement
Listen for the PlayerMoveEvent and move the other player when one moves
You can use the setVelocity method
since player movement is clientside that will be pretty choppy no matter how you go about it
I tried but I do not succeed, to link the movement Player A must click on an item aiming for player B, which means that I have something very bug
Anyone has an idea ?
use the death event
You can get the killer from it ?
from the entity, yes
Ooooh I forgot about that method, thanks !
nobody knows your problem
Anyone have tips for checking events with world guard api .
I'm trying to make it where someone can't place a custom block I coded anywhere they want.
impossible to tell without seeing the internal error itself
something is probably null
if (random == null)
get the actual error
(it will be printed to console)
If it isn't you have a cursed spigot install and you should abandon your career
Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.bukkit.entity.Player
at UpdatedGameModeCommand.java:56
Don't cast things unsafely
yeah, don't do that
it's the (Player) CommandHelper.getPlayers line
an arraylist is not a player
you can't cast an arraylist to a player
don't cast things at all if you don't know what casting does
clearly you do not
Casting lists to players is a rookie mistake
if (Bukkit.getOnlinePlayers().size() > 1)
but that won't solve your fucking classcast issue
this could be wrong at times
Though it will most often not matter i guess
can someone teach me what instances are but really dumb it down? i'm currently following the CodeAcademy java course but they're talking about instances without explaining what they are
and yes i have searched on google
wasn't very helpful, to me atleast.
have you tried paper discord?
hard to describe
basically if objectA == objectB then objectA and objectB are of the same instance
ok but what is an instance
why the fuck is maven shading and relocating my dependency but not translating the references to it
you create a new instance of an object with the new operator
java.lang.NoClassDefFoundError: dev/dbassett/skullcreator/SkullCreator
this class is literally relocated in the jar
it's also not translating the references to the other dependencies so it's not an issue with the skullcreator class itself
too advanced for me, could you dumb it down?
what the fuck is this shit
as if
im also wondering
im trying to guide him towards paper discord as im sure the members there will help him
does protocollib work with 1.17?
idk
i'll decompile the plugin and see the actual references
alot of startup errors
in short,it doesnt
bummer
not really possible I fear
it is as so much shit relies on it
it worked just now when I built it 5 minutes ago
🤷
changed nothing about the pom, now it's fucked again
Could just do a clean package
i am
wdym
Do you know OOP basics?
no he doesn't
have you asked in paper discord this question? im sure they will help you
"can you dumb it down for me"
i'm confuzled
hmmmm
thats a bit rubbish
If you have two apples each is its own instance
imma have to go back to 1.16.5 now then
You do not need to know what an instance IS, you need to know what an instance DOES
ok then, what does an instance do?
dumb it down for me kemosabe
well, you only know it with experience
how the hell am i supposed to learn this if i don't know a good part of the explanation
the reference is relocated properly
You will make a lot of errors in the future with instances
Just ignore it
In a computer system, any time a new context is created based on some model, it is said that the model has been instantiated.
In practice, this instance usually has a data structure in common with other instances, but the values stored in the instances are separate.
Changing the values in one instance will then not interfere with the values of s...
he will literally not understand half a word of that
i mean - wikipedia is already kinda stupid
In a computer system, any time a new context is created based on some model, it is said that the model has been instantiated. what does this mean?
told you
In object-oriented programming (OOP), an instance is a concrete occurrence of any object is what you need to care about
so every time i use something such as a variable, it is called an instance?
You can also say that instances are references to an object
wtf - event if i go back to 1.16.5 protocollib still dont work
i don't understand
can we ban him yet
yes, but if you use the field = new Object() (where as Object can be anything), the instance of the field is changed, otherwise the instance will stay the same through the variable's lifetime
he has blocked everyone except geolykt
i'm confused again
same - why are you here
well, just stay with your so every time i use something such as a variable, it is called an instance? definition
It isn't per-se wrong
only kind of wrong
Learn. Java.
but, if it makes him shut up about it, right enough
yes but i don't understand how an occurance can be changed or stuff like that ^^^
don't get him started on primitives
none
what the heck do you think i'm doing?
you could do default: {{{ code }}} if you wanted
It isn't an occourence you see
well, it is to some degree
You clearly aren’t following a course, and if you are, you clearly aren’t paying attention to it
the first one has a scope
in this context there is no difference
not really
can you tell him to learn java in a java discord
where do you see here an explanation of what an instance is?
https://i.imgur.com/vlSrYzE.png
use whatever suits your use case
creating scopes can be very usefull though
if you need to combine multiple statements into one, or restrict the scope of a variable, use {}
like if (condition) {statementA; statementB}
shut him up lmao
or
{
int variableThatIsRestrictedToThisScope = 5;
System.out.println(variableThatIsRestrictedToThisScope);
}
{
int variableThatIsRestrictedToThisScope = 72;
System.out.println(variableThatIsRestrictedToThisScope);
}
It can be usefull if you want to reuse the variable name but you are otherwise in the same scope - though the variable is not reused
or just want to group logic inside a method in a way that can easily be collapsed in an ide
wat dis mean
All programs require one or more classes that act as a model for the world.
ugh, where does that come from
the act as a model for the world part
CodeAcademy
does codeacademy have a discord
you see, context matters, a LOT for interpreting the sentence
oh ok sorry
Yeah, it perhaps it is better to ask there; many of us do not have any experience with teaching java basics
not sure where is the correct channel to recruit Staff Members for an upcoming Spigot Server
I for example will end up speaking in circles - which is not helpful to anyone
there is none
?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/
give me admin
and also 5 star reviews
i'll write you a plugin and backdoor your serbur
I can write a shitty rework of the frost-walker enchant in 2 hours
robo has already patented the word serbur
what's the best way how to disable a netherportal lighting up? just blocking the event?
yeah well too bad that patents are for pussies and i don't respect them
aka I wrote the enchant in 20 minutes but it took me 2 hours to find out the inventory manager utility I was using was borked
I don't need help with Development. I've been into Development since 2009. I've even contributed to the kernel of Debian & Ubuntu Operating Systems
I am just the maintainer/triage guy, I am thus not attractive to such stuff
then get out of this channel
I only need help with Management.
this is a development channel tho
^
weird flex
is there an event for lighting up an netherportal? i want to block it
I've made a frost-walker plugin for the spigot server software
there is one for when the destination portal is generated or located
but i don't remember there being one about lighting it, there might be
oh
Meanwhile I am maintaining a fork of a plugin that did this before frost walker was a thing
it's very inactive
You mean you maintain a fork of a plugin
the same thing can be said about IRC, yet many use it
what's IRC
I like forkking, okay
redempt
A satanic cult that does not like discord
why
?
do you worship satan
Sure
i knew it
So if i set the players camera via packets to another entity, they cannot move their existing player. is there a way to allow them to move their character and intercept the movement cause the attempted movement doesnt fire the movement event
Ok
this is a development channel
@ancient plank ban
he broke the rules
wtf

I have ban immunity
you'll need to monitor packets to track the player "vehicle steering" packets or whatever they are called
hey @quaint mantle how is the weather?
i literally have never seen u b4 and u act like the boss
ohhhh - that makes more sense
i hope you are making a mmorpg third person cam
i mean, i could
of course that will introduce some latency
but it may or may not be tolerable
@ancient plank ban this is a development channel
@ancient plank ping
@wraith rapids pong
oh he deleted it xD
can we not troll while people are getting help
he tricked me
:D:D
damn
can this dude stop acting like he owns the place^^
i bet he contributed like a fix to a typo or some shit
was it open source?
its linux

I mean, the kernel has DRM
If anyone has a question, ask it anyways btw - our chatter should not distract you
i discriminate against minorities
bit of fiddling with cam packets
so just testing around?
lemme know if you publish it so i don't have the work to do it by myself
😄
i could cannibalize some parts of it too for my vehicles at some point down the road
were you talking about PacketType.Play.Server.VEHICLE_MOVE
it sounds about right
something about my packet interceptor is wrong i think
a constructor in java is a function that sets variables, right?
public class SteeringInterceptor extends PacketAdapter {
private final Plugin plugin;
public SteeringInterceptor(final Plugin plugin) {
super(plugin, Server.VEHICLE_MOVE);
this.plugin = plugin;
}
@Override
public void onPacketSending(final PacketEvent event) {
System.out.println("hello");
}
}
Anything blatently wrong with this?
do you, uh, need to register it somewhere
yeah
i don't really fuck with pl that often so I don't remember how it goes
this.protocolManager.addPacketListener(new SteeringInterceptor(this));
when would it get called
like boats and shit right?
yeah, at the very least
but iirc the client always sends some sort of steering packets when its riding something
whether the something be a boat or an armor stand
are you mounting the player or something, or are they in spectator mode inside an entity
Is it even possible to somehow get Spring Data JPA to work in a plugin?
And if yes, what i have to do in order to get it working, i know that i will need spring core, spring data jpa and mysql driver as maven dependecies
never tried to make a spring app without using the intizler
i mean - i am just trying to get the interceptor to work first
well, the player needs to be mounted for that to happen
if i change it to Server.MAP_CHUNK it works
i don't know if being in gm3 has the player send those packets
so it just isnt getting called
wait i may have been looking at wrong packet
let me read the wiki more
Hey I need help
Yes but with what
i only have coal and ash
?paste
java.lang.IllegalStateException: Override onPacketReceiving to get notifcations of received packets!
So I need to know if anyone has an idea on how I would like one server, to multiple, like with bungee cord, but retaining all data, (inventory, skill api, etc) basically like pulling from one source
that* @ornate hollow
no need to ping lmao
idk if u were referencing me or not
a central datanase
sorry!
you've implemented onPacketSending
What NNYa
you need onPacketReceiving for serverbound packets
you will need a database server (mysql/mariadb/postgrese)
hm
you will need all of your plugins to support what you're doing
and you'll need them to be designed properly so they don't explode or lag to shit
😮
it sounds like you're trying to shard your server
have one server split across multiple minecraft server instances
yeah, that's difficult
every plugin that holds any kind of data or does certain things will have to be specifically built for it
yeah
even if it doesn't actually move
mhm
the protocol is batshit
god i hate slimefun
I guess that i will need to use the old way with XML contexts...
How do you shift a location relative to its rotation?
well hm
Location::add
for instance how does skyblock on hypixel work? they have multiple servers but all your data is retained
Location::getDirection
getDirection returns a Vector
which is basically a mini location
my runnable dont stop
in particular, it returns an unit vector, which has some direction and a magnitude of 1 (unit)
so if you just add the unit vector you get to the location, you move it by 1 block in that direction
you can literally do the same with loads of custom bunge plugins that can all sync to one database
How would you move the location sideways or upwards though?
yes, but lots of them are written like trash and don't support true sharding
location.add(0,1,0) moves it up by 1
That isn't relative to its rotation though
get the rotation and rotate it 90 degress along the y axis
float pitch = loc.getPitch();
//+ FORWARD - BACKWARD
loc.setX(loc.getX() - forward * Math.sin(Math.toRadians(yaw)));
loc.setY(loc.getY() - forward * Math.sin(Math.toRadians(pitch - 90)));
loc.setZ(loc.getZ() + forward * Math.cos(Math.toRadians(yaw)));
//+ LEFT - RIGHT
loc.setX(loc.getX() - sideways * Math.sin(Math.toRadians(yaw - 90)));
loc.setZ(loc.getZ() + sideways * Math.cos(Math.toRadians(yaw - 90)));```
This is what I have. I just don't know how to add pitch into it.
then add it to the location
The easiest way?
loc.setPitch(loc.getPitch() + someValue);
I find it strange that locations allow you to manipulate pitch and yaw but vectors don't
it's kind of funky yeah i suppose
Hmm i wonder if this is the one time that the client actually has logic to not send packets if it is not moving
If the location has a 90 degree pitch, then forward would be going down on the y axis
And upward would be going forward
yes
just rotate the direction vector
and add it to the location
if you want to go forwards, you don't rotate it
if you want to go backwards, rotate by 180
if you want to go sideways, rotate left/right by 90 degrees
if you want to go up/down, rotate up/down by 90 degrees
you can do the same with just flipping the signs and reversing the order of the vector components as well
#help-development message
Can some1 help me with it
Not if you don't show us the code that's actually doing the math
And what do you mean by "stranger float number"
stranger danger
my problem its because my loop runnable stop
yes
But this will never be true
ah yeah
in the case if the number of less than zero will make the opposite condition
If x is less than 0 it will never be greater than or equal to 0
but ift he number ends up being less than 0
If x is not less than 0 it will only be less than or equal to 0 if x is 0
No your entire ternary statement is the same as x == 0
Anyways
What's probably happening is that your code is making the number get incredibly close to 0
But never actually equal
There's rarely a reason to use == with floats
You should just do if (Math.abs(x) < 0.0001) or something
but and this stranger float
there are times when the runnable cancels, but other times it sends me a message saying that the runnable is over but it continues
Because that's just how very small numbers are displayed
okay
it turns out that the code also ends up having internal influences
basicsally, fractionals
big code =/
You are likely subject to floating point errors here
?paste
I really don't get what this is supposed to do
let me show your self
Hey guys, this is my fluffly recoil system, i'm not using shake cam and spray. It's dynamic with blueprints: curves, timelines, vectors, lerps, rotators, delta, time by handle, custom events, arrays, etc etc
So... i hope you like it
I don't get why you're doing this instead of just using the spigot api
its nms to change your camera position
Hey, I am using the plugin for intelliJ Minecraft Development and noticed I have a paper api to choose from. I would like to ask how is this different from spigot api and which should i use. I am currently using spigot api.
You're trying to add recoil?
yes
Okay that's never gonna look good
huh
It might look fine on your own local server but for anyone with even a few milliseconds of latency it will look terrible
Paper is a fork of spigot
It has some more features and additions to the API
But it's not really a huge difference
there are subtle differences that may be important
oh so i kick the player if there is high latency
?
I just think what you're trying to do isn't going to work
The bigger issue is that you cannot put paper-api plugins on spigot
it's working fine I just need to know how to fix this error in runnable
yes is dont stoping..
Then use if (Math.abs(x) < 0.0001) instead of your current abomination of a ternary statement
xdd
okay.. but
it turns out he's not returning
going back to the camera again
basically imagine you adding 1 in 1 until you get 10, after that you'll subtract that number until you get 0
Right, but it's a float
And from what I can tell
It seems you're raising that number to a certain point
The peak of the recoil
And then you come back down using lerp with 0.17
So it will go 17% the way back to the starting position from where it was
But that's based on the current position, not the original one
So it's less and less each time
And it will never actually reach 0
I'm actually adding to the float
The float will never be 0 is my point
?learnjava
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
someone send yesterday a link for Java learn on intelij
i already have fixed
I was comparing the value of x instead of randomx
This does not seem to work.
i can't see replies
Rotating the vector does not seem to work
you're rotating it wrong
I'm using a function that takes in a forward, up, sideways and location variable and then making that into a vector. Getting the direction of the location and adding the forward, up, and sideways vector to the direction
And I am rotating the direction variable on the y axis 90 degree for up and down and on the z axis 90 degrees for left and right.
the left/right rotation has to happen perpendicular to the relative vertical axis
consider reordering the dimensions and flipping their signs instead of using vector math if it turns out to be too complicated
I'm not sure how to reorder it though. Don't I need to add all of the forward, up, and sideways rotation at once or else the location's direction will keep getting added on to it
here is a 2d vector
it consists of 2 properties
blue and green
by swapping blue and green and flipping their signs we can rotate the vector at 90 degree intervals
consider the vector pointing up-ish
the Y value, the blue line, is very positive
the X value, the green line, is slightly negative
we can rotate it clockwise 90 degrees by swapping X and Y, and flipping the sign of one of them
the very positive Y becomes very positive X
the slightly negative X becomes slightly positive Y
Okay so I see how that rotates. But then how would I do the calculations to put forward into x, y, and z.
you take the principle and apply it to higher dimensions
The closest I got was this
loc.setZ(loc.getZ() + forward * Math.cos(Math.toRadians(yaw)));```
But it doesn't take pitch into account
if you do it that way you need to get into vector math and shit
anyways, i have something to do
Okay. Thanks for the help
does Inventory#getContents() contain the offhand for a PlayerInventory?
how would i rotate a projectile towards a location?
atan2
gradual rotate or direct?
that would be the entity that is being spectated
Hmm - makes sense i guess
Hey! I was wondering if there's any way that I can add my own methods the the Player class (Do something like: player.getPlayerRank())?
You create your own class and add a UUID reference to teh player it represents
or that ^^
Like Ranking ranking = new Ranking(player)?
and then ranking.getPlayerRank()?
I'd nto call it just ranking as it includes more than that
What is the name of your plugin called?
call is User or PlayerWrapper. anything thats indicative of its purpose
E.g. StatsPlayer
Ok, i'll try that - Thanks!
only store the Players UUID in your class, not the full player object
Hey elglarl you familiar with packets?
I've not worked with MC packets much but protocol design in general yes
So there is this packet:
https://wiki.vg/Protocol#Camera
Which sets the players camera to the POV of the entity id you give it
However i would like the player to still be able to control their camera when in this 'Spectating' view
At the moment only the head movement is reflected
However when i read that
The player is unable to move this entity (move packets will act as if they are coming from the other entity).
do you have any idea where the packets would come from?
I'd have no clue.
Hmm yeah
You'd have to test to see if teh client even sends any movement packets to teh server once you are a spectator
server to client its just accepting teh entity movment as the players
i have a packet PacketAdapter for:
super(plugin, Client.POSITION_LOOK, Client.STEER_VEHICLE, Client.POSITION, Client.BOAT_MOVE, Client.LOOK, Client.POSITION_LOOK, Client.CUSTOM_PAYLOAD, Client.SPECTATE, Client.FLYING);
And absolutely nothing comes thru
its either going to be a client state that sets you to the entity and disables all control, or its a server side which ignores client movement packets
im thinking that it is the former
Its most likely
which is a royal pain in the ass
but you never know with MC, it does some odd things
yeah - thats kinda what i was hoping but it doesn't seem too likely
what i was hoping when i read that ^^
was that the server just ignored that packets but i could get my hands on them
but, i dont really know where the packets would come from - ie serverside or client side
Yep, that would have been useable then
i imagine client side
however, I did see someone a few months back using reflection/nms to allow them to control a slime they were mounted on.
steer packets are only sent if you are a passenger on an entity
i think that is different
cause they are mounted
not 'spectating'
Send your build command
You don;t have MV inventories on yoru server
ohhhh
🤣
whats the difference between the build and jar?
are you supposed to be using maven?
I think jar might be run as part of build, I could be wrong though
its gradle
k
so should i run the build or jar
I don;t use gradle
I would assume build
in Maven it would be package and that triggers all teh cycles
yes run build
build consists of resource related tasks, assemble task and also the jar task afaik
Is it better to use a separate tcp socket between bungee cord and server
For example say I want them to always be able to communicate not just when there’s a player on the server
And I want a bunch of servers to be able to send messages to the bungee cord where it can broadcast responses to all servers
Hey is it possible to get all my posts removed from my account?
What can I use instead of getItemInHand
getiteminmainhand
The GDPR should allow you some stuff there.
Just note that the GDPR is a double-edged sword, it can hurt you in the long run
it isn't a bad idea and not that hard to do. In fact you will probably have an easier time with this method when you want to share information between the servers.
If you are not an EU citizen, your options are more limited though
unless you live in Cali
Awesome thanks
what
oh
thats European
It applies for anyone that is subject to EU regulations
well is there a way to delete my account instead of deleting all my forum posts
so even though I live in the US, if the company is bound by EU laws, I can still request information removed under GDPR
someone said that usernames are supposedly categorized as personally identifiable
dont u need to like fill a entire email and wait like 2 weeks
if you request account removed under GDPR, everything gets removed. It does not allow for organizations to be selective.
i don't see why usernames would be personally identifiable
like yes, someone could use their powerword as their username on every service ever
I just want to start fresh on spigot
well, some stuff doesn't need to get removed, but it is sparse
but that's not a valid reason for it being personally identifiable
Yeah Id go for sockets. They're stupidly easy to implement too :"D
Thanks man (:
Alright gtg
they also have less headache if the server is empty
yeah sockets for the win
it is personally identifiable because all the information on the site is tied to your username
plugin messaging is overly complicated and suffers from drawbacks and is gay
that doesn't really tie it to your person, though, does it
what type of data are you trying to serialize?
you shove the result of your serialization method in the file
it does because it is also tied to an email as well.
If you don't agree with that, then go argue for the removal of GDPR
as if me arguing for yay or nay would change anything
i'm just trying to figure out if there's something i missed
Emails count as being personally identifiable
emails specifically? why
because emails are still a way to communicate? I mean guess you never heard of verifiable emails before.
the email providers that many people use are tried to your phone number, which is often tried to you
yeah, in that case (assuming that information is available), I would say it is personally identifiable
ByteBuffers 🌈
the way I see it, something is personally identifiable if it by its nature is something that can be traced to your person
for example a phone number; who owns which phone numbers is public information
Does LivingEntity#setAI(false) make the entity invulnerable?
or a license plate; also public information
unfortunately GDPR doesn't give a lot of freedom for organizations to decide what is or is not personally identifiable
you don't need to tie anything to one specific person to know that it is some person you have met before
but by that definition literally everything is personally identifiable
if a phone number is personal info why isn't a username? both identifiers
what makes a phone number special
that is the thing
because the username isn't tied to your person via a public record
unlike the phone number
if it is tied to your person via a publicly accessible record, then it is personally identifiable
i'm not american
ok, some non-english thing
It is pretty much worldwide
hence why a lot of organizations don't like GDPR lol, but also why it is a double edge sword for someone wanting something removed under GDPR. It is an all or nothing request. Basically if you request removal under GDPR, everything gets removed. Or you don't request anything under that and nothing gets removed 😉
At least in germany that rule also applies
my mobile number isn't tied to me other than through payment information
conversely, if the phone number cannot be linked to your person via a publicly accessible record, I would not qualify it as personally identifiable
for example a prepaid
in the same way my discord is tied to me through payment information
yes, but that isn't publicly available
that isn't something that people other than the payment provider and the payment receiver should have access to, nor should be allowed to cross reference
I was active in a forum where they would delete everything with a GDPR, even mentions would get altered
everything is publicly available if you try hard enough
shouldn't be publicly available
if some service gets hacked and gets my data leaked, that's not grounds for things being personally identifiable
it isn't about it being publicly available, it is about whether or not could you identify someone from the information.
because if it was then again, literally fucking everything would be personally identifiable
The GDPR applies to this case especially well
whether or not you can identify someone from the information is very subjective
i can identify my friend from the way how he writes messages
They WILL need to inform you of this breach
are messages personally identifiable information, then?
then argue that to the bureaucrats lol, we didn't make the rules
they can be yes
I would say so
anything can be
even if you changed your discord name, I could probably still tell it is you by the way you talk
if I posted my powerword in a message, it would be personally identifiable
but that doesn't mean that every message ever sent should be considered as such
except the GDPR doesn't give that distinction
i find the whole GDPR thing to be super vague and incoherent
far too much up for interpretation
yet many organizations are subject to it 😉
if anything that 'could' be personally identifiable to someone in some case is considered personally identifiable, there is literally not a single thing in existence that isn't personally identifiable
the letter a could be personally identifiable
what if I have a secret way to communicate with my friend that involves printing the letter a at every odd minute of every even hour
GDPR applies to organizations not individuals
only me and my friend know about this, so if my friend or I recognize this pattern, we are personally identifiable
since the letters are personally identifiable information, whoever hosts them in any fashion would be subject to having to remove them under GDPR
is that not fucking retarded
I would consider this encryption
depends on the host really. For instance, I live in the US. If I have an organization based in the US, I am not automatically subject to the GDPR unless I am specifically soliciting to those in the EU. So even if I could probably have EU customers, as long as they are not my primary customer base and I am not soliciting to them I am not subject to the GDPR
but if the definition of personally identifiable is that 'someone' can identify your person based on it in 'some' case, then that would qualify
And I am pretty sure that the laws should limit what applies to it either way
as in this case, my friend, the someone, would identify me based on the context of the messages being sent at certain points in time
You cannot remove ban records with it for example
Hey I'm trying if(e.getPlayer().getInventory().getItemInOffHand() != null && !e.getPlayer().getInventory().getItemInOffHand().getData().getItemType().equals(Material.AIR)) { ItemStack offHand = e.getPlayer().getInventory().getItemInOffHand(); if(!(offHand == null && !offHand.getData().getItemType().equals(Material.AIR))) { to check if a player has something in their hands but it's still going thru the if statements any idea how I can make this work?
smh yet another overcomplicated, vague, and at the end of the day damaging legislation put through by the fucks in the eu, under the guise of fixing issues and supporting personal privacy
just like the fucking cookie popups
people should just stop trying to make things better
every time things just get worse
if we are to use discord as an example, your user id is attached to all the messages sent even private messages. Because of this, even if you private messaged someone, if that someone requested their information and account removed under GDPR, those messages you had with that someone, their messages and account would be gone whether you wanted it to or not. Because the GDPR isn't about whether an individual could identify you, but if the organization that collects your information could or not.
anybody knows?
the issue is that the cookie popup shit is done under the guise of supporting personal privacy
but it achieves very little in that regard
even if you forbid cookies, in which case you often can't even use the site, or have to go through some annoying, long dialogue
hey i wanted to add inventories with pages to my plugin but didnt found any good libary but i found this: https://www.mc-market.org/threads/253886/
it works very well but i dont know how exactly to add the items now. Also the developer told another guy in the comments but i didnt get it so i would love to get some solutions <3
they will still track you through other means
it is better than nothing
we have had browser addons like self destructing cookies for years
this was entirely redundant and unnecessary
and has done nothing more than made the internet more annoying to use
this chat is suppose to be for spigot help development 😄
Unfortunately, many people do not realize this
Your code should work
many people do not realize that cookies are only a very narrow subset of the ways employed by sites for tracking
and are lulled into a false sense of security by it
i find the whole ordeal to be pretentious and more harm than it's worth
hypocritical, even
isnt my problem a spigot development problem?
I do not touch mcmarket
I would rather kill than go there
Litterally has the most aggressive CF config
yeah i understand but its the only good thing i found
obviously some people do, otherwise GDPR wouldn't have came about 😉
so what you want to do here is add a ; at the end so it compiles
do you have something else what i could use to get pages?
I know that https://github.com/Phoenix616/InventoryGui supports pagination, but idk further about that
GDPR is good in spirit but based on what little I know of it it falls into the same category of pretension and possibly more harm than good as the cookie bullshit
it doesn't for some reason
Then debug everything
even if i'm not holding anything it still goes thru
Sysouts everwhere
that said I know next to nothing about it and don't really have the effort to find out, either
but, your explanation was enlightening
I always saw the GDPR as the ultimate destruction button, which most often was not worth pressing
i think we should ban ads in their modern form
that would be a considerably large nudge
the only allowed way to advertise would be a monochrome text-only information pamphlet
no videos, no flashing lights, no click here scam bullshit
just the raw information
might work in other Countries, fortunately such things are not allowed in the US lol
ads the way I see it are their whole own sector of science for psychological manipulation
Java 15+ NPEs are useful for such issues
since when was it fine to manipulate people into doing something they didn't want to do in the first place
maybe groupManager is not set
However here it is easily noticeable that groupManager is null
i haven't seen elgar for a bit
or pass in null as an argument
did he die
what is in onCommand method at line 37?
UK according to github
thats basically poland but with more rain
@eternal oxide don't make me get the schwerer gustav
Hello
I try to update an old plugin (1.8) to 1.16.
I've a function to clear some chests, but that doesn't work in 1.16, does someone can explain how to clear chest content ?
get the tile state, cast to chest, get the inventory, clear it, update the tile state
Chest chest = (Chest) location.getBlock().getState(); chest.getBlockInventory().clear(); chest.update(true);
something along those lines, yes
Yes
That doesn't work 😞
Worst case scenario you just destroy the chest, remove all NEW item entities near the chest and replace it
Yeah, this is my last resort
so I'm seeing that InventoryClickEvent#setCursor is deprecated, what should I use instead?
would it be setCurrentItem?
is the chest a double chest by any chance?
pretty sure the inventory is not part of the state
by setting the state back you're overwriting your changes
although I guess that doesn't quite make sense
try just the first two lines
and maybe try getInventory instead of getBlockInventory?
createworld(player.getName)
I will try, thx
why didn't you just say "not set?" when replying to the message
null and not set is the same
var = null wants to know your location
But, are you sure that you are calling your code at the right time?
Ideally you should make everything lazy
In order to make a book that when u open it, it shows an interface that allows u to click somewhere to open anotheter interface for a crafting recipe, do u need to use KnowledgeBookMeta
its set?
That's better 👍
But not perfect on double chest
Factions question. When i do FPlayers.getInstance() it says it can't initialize the instance.
you replied to the message with "." and then said "not set?"
uhhh
okay is something wrong witht hat?
is it a depend?
well i believe it is set
I bet that's the problem
groupManager = inventories.getGroupManager()
you should get it when you instantiate the command class, not when creating the field
Yes, otherwise it may return null
Which is basically the same as not setting the field in the first place
Again, initiate stuff lazily, i. e. only when it is actually needed
How do I get the name of the plugin i need? I'm using SaberFactions btw
it's probably SaberFactions, but you can check their plugin.yml
right
oh okay
Huh. It's still not working. I'm getting a NoClassDefFoundError, if that helps. Do I need to add something in my onEnable to get it to work?
whats in Base.java line 51
players.add(FPlayers.getInstance().getByPlayer(player));
FPlayers.getInstance().getByPlayer is null?
or player is null?
oh wait
FPlayers couldnt be found
it says
NoClassDefFoundError
do u have the massivefactions plugin?
and does it have the FPlayers class
yeah, its in the external JARs and installed on the server
its in my depends as well
Could not initialize class com.massivecraft.factions.FPlayers
the class is there
but some static initializer in clinit fails
and the class can't be initialized
you are probably initializing the class out of order somehow; it probably depends on some other massivefactions class being initialized first
make sure that the plugin is listed as a dependency in your plugin.yml, and that you aren't touching stuff too early
and make sure you're not shading massivefactions into your own plugin jar
._.
uh
the reason your question went unanswered is because it's essentially rhetorical
happens all the time, f3+t
did you tried to restart your minecraft..?
maybe maybe
or your headset did unplug for a sec
no
i have speakers
and i dont have headsets
you are definitely accessing things in the wrong order
Hello!
I did this:
https://gist.github.com/ItzJustNico/ed481d94cf1e3f40f107c27c1e126039
But I get a ConcurrentModificationException because I edit the Hashmap while going through it right?
How could I do that without getting an ConcurrentModificationException ?
Iterator
or use another list with your elements which you loop through instead
Iterator
But I already have so many hashmaps haha
whats that?
here you have examples for both solutions
thank you alot
np - was the first google result
whats the difference between legacy_air and air..?
latter should be used
i thought legacy was for older versions
The first one should NEVER be used under ANY circumstances
it is just there because of spigot's ASM hacks
is it normal for 1.16 to return LEGACY_AIR then as an items type?
oh, no. I didnt set it cause it wouldnt load for 1.8-1.12 if i did would it?
it would
if u set it to 1.13 i think it works for ever version
the api version thing is dumb
not for long
eh but its still here rn
Yeah, the api version was introduced with 1.13, so 1.12 and before will ignore this value
But be wary that you can currently be able to set the minimum api version via the spigot.yml file
hmm, okay. thanks
you made the plugin? lol
paper has 2 builds
but the latest is build 5
XD
theres 4
but wheres 3-1
XD
and maybe 0?
build 1 - 3 were all experimental and as such were built by a staging builder
Sorry, i asked this earlier but had other things to do so forgot about it, but how would i rotate a projectile towards a location?
lol
but why doesnt it start at 1
they should still mark it as 1 and 2
not 4 and 5
even if they were builds before thats experimental
also isnt those builds still experimental?
lol
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeew what's this stinky way c# does switch statements
I feel like I need a shower just by setting my eyes on their documentation
i like the way they do it
EnumPlayerInfoAction.ADD_PLAYER
This no longer works, anyone good with packets know how to spawn and remove a player from player tab list in 1.17?
Using this for maven:
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.17-R0.1-SNAPSHOT</version>
<classifier>remapped-mojang</classifier>
<scope>provided</scope>
</dependency>
yeah I changed it to if and else if
?paste
hello i have an inv here that shows the friends in the inventory now i want the people that are online to be shown first then the ones that are offline can anyone help
code : https://paste.md-5.net/dugabagija.cs
I tried it on an test projet but i dont know how to use it with the spigot api to sort the inventory
Main:
https://paste.md-5.net/okuvitovey.java
Ping:
https://paste.md-5.net/iwesulafam.java
plugin.yml:
https://paste.md-5.net/botoropifu.sql
Whenever i run the command it just returns the usage and nothing else.
@EventHandler
public void onFireballHit(ProjectileHitEvent event) {
Fireball fireball = (Fireball) event.getEntity();
Player player = (Player) fireball.getShooter();
ItemStack item = player.getInventory().getItemInMainHand();
ItemMeta meta = item.getItemMeta();
String name = meta.getDisplayName();
Location fireballLocation = fireball.getLocation();
World world = player.getWorld();
int randomExplosionPower = (int) Math.ceil(Math.random() * 20);
if (name.equals("§6CUSTOM STICK")) {
if (event.getEntity() == fireball) {
if (item != null) {
if (event.getHitEntity() != fireballLocation) {
if (fireball != event.getHitEntity()) {
world.createExplosion(fireballLocation, randomExplosionPower, true, true);
world.playEffect(fireballLocation, Effect.MOBSPAWNER_FLAMES, 10);
world.playEffect(player.getLocation(), Effect.BLAZE_SHOOT, 10);
player.sendTitle("","=" + randomExplosionPower, 1, 2, 1);
}
}
}
}
}
}```
explosion power only happens when the fireball hits another fireball
does anyone know how to use Comparator with inventories
grab the contents into an array and sort
you'll have to implement a sorting function for ItemStack
you can sort by f.e name or whatever
yea this is my main problem
heres the code https://paste.md-5.net/dugabagija.cs
i tried something with an test project
Comparator.comparing((item) -> item.getProperty())
where getProperty should return something that is Comparable
yea did you saw my code?
the image you keep sending? yes
