#help-archived
1 messages · Page 18 of 1
would anybody know why Entity::setVelocity only works on flying or swimming entities?
phantoms, fish, bees, etc work but not for cows, skeletons, etc
@keen compass but when i try it in game it says i dont have access to that command
does it happen what you press tab
discord is great software
it doesn't resend your message 100 times
lol
I'm having an issue with the -Djansi.passthrough=true tag not working on craftbukkit... would anyone know why that is?
it works on a test jansi application ive made
but not on spigot
@tender mango you never specified a command you were trying to do. You want the default group to have access to a particular command or you want yourself to have access to it?
https://timings.spigotmc.org/?url=ijunazehep my server lag because hoppers, are there any ways to reduce the hopper lags?
are you doing that test using windows @wanton delta
if I recall Jansi gets disabled on spigot if ran through windows command line
okay further testing, it looks like Entity::setVelocity only applies if the entity is not on the ground. i hit a mob on the fence and it went flying, but the same mob on the ground does nothing
is if ansi is disabled on your machine (its not on mine, ive tested it) spigot will skip applying jansi
but the intellij debug console acts differently than cmd in windows
so the error 2020-04-14 21:51:32,141 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream persists
and im assuming that means spigot will not use ansi
@keen compass i want default group to have access to the commands that i put in the permissions
what permission plugin are you using?
yes, that means spigot will not attempt to create a console on windows @wanton delta
that's jansi tryna enable it's natives and getting upset for some reason, windows is a /really/ odd environment for printing ansi out afaik
What causes this error?
net.minecraft.server.v1_15_R1.ItemStack nmsApple = CraftItemStack.asNMSCopy(newItem);
NBTTagCompound applecompound = (nmsApple.hasTag()) ? nmsApple.getTag() : new NBTTagCompound();
applecompound.set("seller", NBTTagString.a(p.getUniqueId().toString()));
nmsApple.setTag(applecompound);
msg(p, p.getUniqueId().toString());
ItemStack soldItem = CraftItemStack.asBukkitCopy(nmsApple);
items.add(soldItem);
net.minecraft.server.v1_15_R1.ItemStack nmsApple = CraftItemStack.asNMSCopy(i);
NBTTagCompound applecompound = (nmsApple.hasTag()) ? nmsApple.getTag() : new NBTTagCompound();
String string = applecompound.getString("seller");
msg(p, string);
if (string == null) {
error(p, "No seller found for this item");
return;
}
UUID uuid = UUID.fromString(string);
I get sent my UUID
its odd to me because the normal JANSI program i have runs fine with color
but theres something with spigot that just disabled it
Phaze, ItemMeta extends PersistentDataHolder. No reason to be using NMS for this
Though I don't understand. You are the seller, why would it not return your UUID? This looks like it's functional to me
java.util.UUID. That's the right one
Ok, I thought there was a bukkit one for a second
@wanton delta seems like it breaks only when using the debugger in intellij, works completely fine when using the actual terminal from within intellij
my test jansi project works with debugger
@subtle blade but for some reason I'm getting this error in the console https://pastebin.com/wSSeGGCU
real quick does anybody know why setVelocity only actually works on mobs that arent standing on the ground?
is no colours in your debug terminal really a problem lol
bro dont judge me
broman i tried it and can get it to work with other mobs on the ground
it would probably help to see how you have coded it @jovial trout
^
this works for me on sheep and zombies and such standing on grass
launches them straight up lol
which event?
idk i just did out of habit
sometimes it is necessary to cancel the event so that you can apply your physics but it depends which event you are acting upon
hahaha i hate that event these two would know from last night hahahaha
tldr ```scala
event.getDamager match {
case p: Player =>
event.getEntity match {
case l: LivingEntity =>
l.setVelocity(l.getVelocity.add(new Vector(0,5,0))
this but java
he might be running into the problem i had yesterday?
do physics reset if you cancel entitydamagebyentity?
might make sense
the physics get canceled when you cancel the event
Hii, how can I know the distance x, y, z between a block and a player?
im not cancelling the event in my code
I have tried in many ways but I cannot
I want to use the 3d positions
its possible that the physics they are trying to apply are getting overridden by the event, so cancelling the event could fix it, but it could also be their code block not being ran as well depending on how it is done.
lol
@keen compass the code block is ran, i added the setVelocity method to another part of my code i know to be run
wow this is so reminiscent of what i experienced yesterady
the full code including unnecessary parts is at https://hastebin.com/yarosocoze.cs
broman are you cancelling damagebyentity event
the code in my paste works, it does not work if i comment out the setcancelled method
odd
oh you know why probably?
the weapon calls setVelocity and ignores the current velocity
just this year I started to make Pythagoras haha
i would wager
what frostalf said
its possible that the physics they are trying to apply are getting overridden by the event, so cancelling the event could fix it, but it could also be their code block not being ran as well depending on how it is done.
@keen compass
@keen compass i have no clue what that means but that is the standard equation for distance lol
lemme repackage and let you know how it goes
okay haha
that works
odd
but by setting the damage event to cancelled you wont see the entity go red
i can lower its health but it wont go red like youre actually swinging
or no
Entity::damage exists
Isn't there an easier way to know the distance x, y, z between 2 locations?
you can cancel the event and then run the event again after you applied your physics @jovial trout
Location::distance(Location other)
@hot fable
@keen compass wont my listener get called again
?
@jovial trout set the damage cause to CUSTOM
that way you will know if it was caused by you
mm
yep what @wanton delta said
@hot fable im giving you a link
read this
that is how you get distance of two locations
I don't see any that are useful to me
Location#distance
double distance = location1.distance(location2);
dont make us spoonfeed
Okay ok, I think I know how it was then
So I have to do 3 "for" if I want to get the blocks around
@jovial trout This seems to work https://paste.md-5.net/iqacabikix.cs
launching sheep is hilarious, my wife is unsure
the reason for cancelling the event works to be technical is because all of the processing of what is to happen is done before the event fires. So if you change anything in the event, the server doesn't care because no processing is done after the event.
ya
:(( Those poor sheep
can i just runTaskLater(Plugin, 0)?
(a scheduler would be more condensed in this case)
there is wool eeeeevvvverywhere
Bukkit.getScheduler().runTaskLater(() -> event.getEntity().setVelocity(new Vector(0, 10, 0)), plugin, 1L);
you and your fancy lambdas
Would also make that vector constant and values above 4.0 are sketchy for velocities
@any devs:
having an issue building a plugin that one of my developers wrote and he's offline. it can't resolve a dependency (spark) but spark builds with gradle and I don't know how to install a non-maven-generated jar. https://paste.ubuntu.com/p/H4mvzsx4GS/
In fact, some forks cap that to 4.0
Bukkit.getScheduler.runTaskLater {_ => event.getEntity.setVelocity(Vector(0,10,0), plugin,1)} would be the scalafied version
looks fancier
uwu
scala > java
on the gang
on god
on jesus
on my mom
and then kotlin trash ofc
Likes scala but hates kotlin. I'm so conflicted
On one hand, you hate Kotlin. But on the other, Sc- Scala... 
operator overloading isn't really necessary
YES IT IS :((
I want ChatColor constants to override + so I can ChatColor.BOLD + ChatColor.RED
it makes it easier reading code in java sometimes instead of having lines of magical code happening because it isn't obvious lol
i figured out how to apply jansi.passthrough to craftbukkit
it was not worth my time but
whatever
and what was the problem?
Location loc1 = Bukkit.getPlayer("player1").getLocation();
Location loc2 = Bukkit.getPlayer("plsyer2").getLocation();
for (Double x = loc1.getX(); x <= loc2.getX(); x++) {
for (Double y = loc1.getY(); y <= loc2.getY(); y++) {
for (Double z = loc1.getZ(); z <= loc2.getZ(); z++) {
}
}
}
This should work, but it does nothing to me
you cant just show us code
and say "this doesnt work"
what are you trying to accomplish
for some reason they need to iterate over the coords between the locations
(1) use primitives (double > Double)
(2) Why do you not have player objects?
(3) min/max your coordinates
The amount of terminology (that I should know, i'm just an idiot) I learn from Choco is amazing
lol
hastebin link?
@keen compass the problem i was running into is that intellij's terminal is not recognized as "jansi compatible" (but it kinda is)
Keep just looking up what in the world you're saying and going "ooooohhhhh"
so i was trying to enable coloring in the intellij terminal to better read what i needed
so you had to trick it into thinking it is completely compatible?
I am currently running my server on windows. Would it be better to run it on a CentOS VM on my Windows machine?
i just added that check to the ColouredConsoleSender
you might get a slight performance boost in doing so @storm vessel
Ok
- you dont know what coordinates are bigger.
@wanton delta That's true, it kept adding
So again, you would have to
(3) min/max your coordinates
idek if its worth a PR, tbh. it was just me being silly
Martoph sent an example for one of the 6 coordinates. You should max 3 and min 3
(even though it should 100% respect the jansi passthrough variable!)
What if I create a variable and take the small one for example?
if(x < x1){
x = small;
x1 = bigger;
}
i provided an example
That's exactly what min/max will do for you in a single line
you should use that
Math#min() will grab the least of two values, Math#max() will grab the greatest of two values
I don't know how that is used
I just told you how it's used ;P
double maxX = Math.max(loc1.getX(), loc2.getX());
@wanton delta
a okay
if you dont know how to use something
minX = min(loc1.x, loc2.x)
minY = min(loc1.y, loc2.y)
minZ = min(loc1.z, loc2.z)```
its better to google it
Same for the max
double minX = Math.min(loc1.getX(), loc2.getX());
double maxY = Math.max(loc1.getY(), loc2.getY());
double minY = Math.min(loc1.getY(), loc2.getY());
double maxZ = Math.max(loc1.getZ(), loc2.getZ());
double minZ = Math.min(loc1.getZ(), loc2.getZ());
Location newLocation = new Location(((maxX-minX)), ((maxY-minY)), ((maxZ-minY));```
Or just be Frostalf :((
what is newLocation supposed to be
I don't really understand why they're doing what they're doing anyways
iterating over the difference?
if I remember, they wanted the distance between two points
distance between points can be called with location#distance which we already provided
but Location#distanceSquared() is a thing
Why don't we ask. What's your goal, iTz?
does anyone know how to fix hopper lags?
Have less hoppers
@buoyant lodge composters on hoppers is proved to be the best way
Wow that name is horrible
cuz players in my server are using afk fish
Not related to the Spigot API itself, but is it a bad practice to develop a resource that has some similar features to an already pre-existing paid resource?
i say go for it
no
All yours for the taking, friend
as long as you are not directly stealing their code and you do it yourself, by all means go for it
if said resource hasnt been updated in a while i would encourage it lol
tru
would it be silly to create PR for adding a jansi.passthrough check
Choco's commas are scary.
"All yours for the taking, f̋̕͡r̉̉̽ỉ̚͘ẽ̋̕ń͂͞d̛͝͡"
Depends on what that purpose is for @wanton delta I mean, currently it works fine with the exception of the debugging problem you had
@wanton delta how do you use composter on hopper?
well if you have a terminal deemed "unsupported" according to jansi
but can support it
you wont be able to get colors in your console... which is really my main point
but how would you determine it can support it?
bukkit already does so
im detecting for the flag -Djansi.passthrough (which jansi uses as well)
which forces support
Location loc1 = Bukkit.getPlayer(player1).getLocation();
Location loc2 = Bukkit.getPlayer(player2).getLocation();
double maxX = Math.max(loc1.getX(), loc2.getX());
double minX = Math.min(loc1.getX(), loc2.getX());
double maxY = Math.max(loc1.getY(), loc2.getY());
double minY = Math.min(loc1.getY(), loc2.getY());
double maxZ = Math.max(loc1.getZ(), loc2.getZ());
double minZ = Math.min(loc1.getZ(), loc2.getZ());
for(double x= minX; x >= maxX; x++) {
for(double y= minY; y >= maxY; y++) {
for(double z= minZ; z >= maxZ; z++) {
Bukkit.broadcastMessage(x+" " + y+ " " + z);
}
}
}
oh ok, I guess you could add it, but I see it being abused by those that are trying to use command prompt with that flag though
and then wondering why its not working XD
well i mean
you can add flags all the time and them not working
fuck
idk if theyre designed to garuntee work
iTz what are you trying to do
it looks like get all coordinates in a cuboid region of two locations
aka worldedit
oh, cuboid
there is already a method in the API for getting that
its called axisAlignedBB();
AxisAlignedBB is the nms right
Correct
I want to save the blocks from point A to B and then get the distance x, y, z of all the blocks @upper hearth
Choco is correct on the API name
get the distance of them? huh?
Get the distance of the blocks from what
and what do you plan to use all this information for
the code for schematics loops through the way it does because of how the information is stored about the blocks in NBT format
But I'm not interested in doing that
I want to save the blocks from point A to B and save them in a list, later for example a player puts //paste returns to put the blocks from another location
ok, but why would you need the distance?
what you are wanting to does not require knowing the distance of the blocks from the player at all.
Pasting relative I guess?
if you were to paste relative using distance that seems like a bad idea
you could, but essentially all you do just mark a coordinate as 0,0 and you start from there.
well 0,0,0. The block right in front the player when pasting would be considered 0,0,0 as well.
for(double x= minX; x <= maxX; x++) {
for(double y= minY; y <= maxY; y++) {
for(double z= minZ; z <= maxZ; z++) {
Location l = new Location(Bukkit.getPlayer(player1).getWorld(), x, y, z);
Block block = l.getBlock().getState().getBlock();
Bukkit.broadcastMessage(block.getType()+":"+block.getData());
}
}
}
And with this I already get all the id of the blocks
Thank you very much for your help
when running applyPatches, should i add the src/main/java/net/minecraft/server/ directory to .gitignore? how does stash handle this?
no, the scripts handle that using the decompiled sources folder and patch
so i should commit as-is, correct?
after you run the applyPatches yes, you should commit the changes.
great
o.O
anyone have experience with multi verse?
is there any 1.8 combat fix for 1.15
is changing server type from spigot to paper isn't correct?
im trying to change spigot to paper, but the result make my server wont be turn on
15.04 05:57:33 [Server] ERROR Could not load paper.yml, please correct your syntax errors
ERROR Unable to load server configuration
WARN Advanced terminal features are not available in this environment
@buoyant lodge read the error. It says paper.yml cant be read. Is it there? Is it maybe corrupt?
If you didn't edit paper.yml, back it up or delete it and try again
before i edit paper.yml server can run well, but after i edit paper.yml, bukkit.yml, spigot.yml and server properties then i restart the server, it made the server crash
You may have removed spaces in the configs
.yaml files depend heavily on spaces as indents
i did the server on after deleting paper.yml and paper jar
is it possible to be crash again after i edit paper.yml?
if you misformat it, then the server will not start
oh, okay thanks for that 😀
is there any way i can get my friend to join my server rn?
since he not on localhost
@fossil jetty you need to portforward the port 25565 then give him your public IP
there is no other way, other than purchasing from a host
15.04 06:30:20 [Server] INFO 2020-04-15 06:30:20,702 main WARN Advanced terminal features are not available in this environment
after i setting paper.yml
server crashed again
something wrong with this settings
idk what caused it, show us the log file by pasting it somewhere like https://hastebin.com/
thx
if anyone is willing to help me setup a fully customized server that is really easy to do a matter of fact with the knowledge they know and set everything up for me and teach me id be more than happy to pay them please dm me if you are interested
ur site appears to be having issues.
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
in 'string', line 114, column 11:
hard: 96
^
The logs are telling you what's wrong
maybe do something about that :v
@fossil jetty you could use ngrok, then you don't need to port forward
yeah that "hard" thingy made my server crash, thank you so much guys 😉
now i can turn on my server😋
if anyone is willing to help me setup a fully customized server that is really easy to do a matter of fact with the knowledge they know and set everything up for me and teach me id be more than happy to pay them please dm me if you are interested
you need to use a host
Just use a host @fossil jetty
if you can pay already
people will just be taking your money
@frigid ember its not just about that
h
@fossil jetty You want a fully customized server then don't buy from those Minecraft Server Resllers. Those are scams. Go with a company that has decent virtual machines. 1 I can recommend is Digital Ocean. I think for $20/m you can get a 4 GB, 80 GB SSD, and 4 TB transfer.
From there you setup the FTP/SSH from their control panel, download something like Putty so you can run the server from your computer. You can download/buy one of those minecraft control panels that will in the long run make it so you don't have to run it through putty.
In the end what you are left with is a server you can customize to your liking whenever/however you want. The transfer rate of 4 tb is not bad at all, and that is only for inbound, outbound is free. The numbers have run that Minecraft is typically an average of 0.1Gb/hr/user can probably handle 56 concurrent users for a whole month. If your getting 56 concurrent users for a whole month you can dish out some more money to upgrade the server.
Hello, i want to create a minecraft server with some plugins on Athernos (Athernos is the host) but, i'm new and i don't know how to do ? someone can help me ? Thank you.
aternos only allows plugins that are pre approved, so that makes it easier to set up if they're already on there. The have a lot of tutorials on their website. You can also join their discord and ask in the Aternos help section, i'm over there.
^^^ @fossil jetty example #1 why you shouldn't go for a Minecraft Server Reseller lol.
aternos has free server and takes no payments
so it's a really good option for people who aren't very tech savvy
I mean you really don’t have to be tech savvy to install a Minecraft plugin
you'd think so, but some people have no idea what they are doing
the aternos help channel is a mess sometimes
@haughty stag thanks for the info man ❤️
Didn't know it was free. I guess you get what you paid for.
it's able to handle vanilla fairly well for being a free server host, but once you start adding mods and stuff it really goes downhill. A few plugins is safe though
it's meant to play with some friends, mostly vanilla
Can someone help me?
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.
in skript? no idea personally
no, java
yh i got that
PlayerInventory inv = p.getInventory();
ItemStack[] pop = inv.getContents();
for(ItemStack item : pop){
if(AEAPI.isASoulGem(item)){
if(pop.length > 1){
basically it's a gem, you have more than 1 in your inv it's disables
you dont want pop.length
you want item.getAmount
note that applies to any single stack, not two stacks of 1
yh i'm looking if their is 2 stacks of 1
One of the reasons why you should name your variables right, so you don't run into issues like calling pop instead of item.
pop.length is always going to give you the size of the inventory
Arrays.stream( player.getInventory().getContents() ).filter( AEAPI::isASoulGem ).mapToInt( ItemStack::getAmount ).anyMatch( (amount) -> amount > 1 );
something like that would work using streams
or rather
Arrays.stream( player.getInventory().getContents() ).filter( AEAPI::isASoulGem ).mapToInt(ItemStack::getAmount ).sum() > 1
oh wait
theres a method for that
player.getInventory().containsAtLeast( soulgemItem, 2)
that also works
Oh
@iron ravine my bad, fixing
unsurprisingly 9/10 donations are $10
no
getting specific medals is not the aim of the system
so it can be very hard to do so
they work like currency so 225 is I think the lowst amount that could get nether star
and 375 after that
basically everything has a value and your badges+medals add up to the total using the fewest number possible
So basically it sort of works but when i put in an inventory slot anywhere other than my hotbar both gems will go to slot 0 & 1 and start consuming souls
Well, what's not working?
new Command(this);
this
idk why
i am trash
so expect me to ask you stupid questions
Why are you trying to directly initialize a new Command instance?
Commands should generally be made in their own class using extends CommandExecutor
Can't see a reason why you'd ever want to register commands dynamically?
Unless, say, reflection-based command registration for kit commands or something
But that's done through command registry
how about we solve the problem instead of making it more complicated
@narrow basin did you make a new classs for the command
thre are plenty of reasons why you would want to do it dinamically
@leaden heath ya i did
https://hastebin.com/erimukadin.java This is what I do
onCommand(CommandSender sender, Command command, String label, String[] args)
ok i did it
Ok, so what else is next. Did you register the command
Does your main class have an onEnable() method
uhhh no
well, that's the first step hahaha
Okay, so do you have your command class with the onCommand method, and the class implements CommandExecutor?
well now i broke everything
Lmao
it means you're trying to use a paramter that's not of the same type
or something like that
i fixed it
but now i have a bigger problem
omg why is so hard
The type Command must implement the inherited abstract method CommandExecutor.onCommand(CommandSender, Command, String, String[])
why
what private Main plugin; does?
Initializes a variable
thats your main plugin instance
Does Spigot sending emails usually take longer than ~10 minutes? 🤨
ugh
Command is an abstract class
it seems like he is adding whatever the compiler is telling him to do to remove compiling errors
lol
Also this (https://i.imgur.com/gwFLb8d.png) should be updated to have Discord too
I feel many more people would use Discord > IRC
@atomic rapids are forum mods able to mark accounts as verified?
Please use the bot when possible.
Sorry?
Use the bot how?
My Discord account is linked/verified: https://i.imgur.com/BWjXypr.png
Nevermind - what exactly are you referring to
I had to change my email, and I've been waiting ~25 minutes for the confirmation email to be sent.
That is out of my hands - sorry
Riighto
Why are there some classes missing in the source file outputs of buildtools?
which classes?
They exist in the jar ofc but not in the source files given
classes which aren't modified are not in the source tree, otherwise you'd need to fix every decompiled class with issues which gets a bit of a PITA
Is there any way I could get all usages of a class or something then?
We have some tricks elsewhere, basically the idea would be that you'd get a folder with every class not in the server jar, IDEA lets you add that as a source path, so you can use standard IDE features properly
aye
i love this web its helping me alot of making my dream
i already made the hub
got the skywars map but for some thing its making the /sw setspawn Map and /sw setmainlobby
How can I open a ContainerWorkbench?
I tried doing this but e.getPlayer().openInventory(workbench.getBukkitView()); throws an EventException
@EventHandler
public void onInventoryOpen(InventoryOpenEvent e) {
if (!(e.getInventory() instanceof CraftingInventory)) return;
ContainerWorkbench workbench = new ContainerWorkbench(1, ((CraftInventoryPlayer) e.getPlayer().getInventory()).getInventory(), ContainerAccess.a);
e.setCancelled(true);
workbench.setTitle(new ChatComponentText("Crafting"));
e.getPlayer().openInventory(workbench.getBukkitView());
}```
i have no idea i just joined yesterday
I can confirm that workbench.getBukkitView() is not null
Use Bukkit.createInventory() and InventoryType.WORKBENCH
Okay
Sure
i dont know what file to do /sw setmainlobby or /sw setspawn Map
You could use the getConfig() That's the easiest way to write to a file in spigot
Uh
That's not a very complete way to describe doing that.
Make a new file, next to your plugin.yml
called config.yml
and you can define it however you please
then use saveDefaultConfig(), etc
There are plenty of documentations out there that explain that . Because of that I thought that it'd be enough sry. First day writing here for me
me to jay
Yeah, there are plenty of docs, it just helps to describe a little better. getConfig() is how you would use it, but it doesn't help when they dont know how to use it possibly, lol.
and thanks @dusky herald
But I'm a dev for 6 years. You sounded like you started programming recently
Sorry if my assumption is wrong
me?
Yeah 😅
yeah i just started yesterday and i already made my hub 🙂
Nice. My progress wasn't that fast in my early days 😂
Eh, it's all relative. Usually when you start you go back and change everything because you know better later, lmao.
can i join ur server pls
@frigid ember don't have one atm sry
ok
I definitely have not been doing it for 6 years.
Eh, it's all relative. Usually when you start you go back and change everything because you know better later, lmao.
@dusky herald that's always amazing
I only started back up a few days ago.
pretty much was like I forgot everything anyways
So i've tried this
for (RegisteredListener li : PlayerJoinEvent.getHandlerList().getRegisteredListeners()) {
Listener listen = li.getListener();
if (listen instanceof EssentialsPlayerListener) {
PlayerJoinEvent.getHandlerList().unregister(listen);
break;
}
}
But it seems doesnt work, i tried to unregister Essentials PlayerJoinEvent listener
Why can't I use the event
AreaEffectCloudApplyEvent ?
you can, you're probably just doing it wrong
HandlerList.unregisterAll(listener);
EventObject.getHandlerList().unregisterAll(Listener)
The thing that i dont have the listener instance
I can't import AreaEffectCloudApplyEvent, why?
And i need the listener instance from that method, like get all listeners, and if its instance of a class, i will store it to a field and then unregister the listener
can i load a 1.15.2 world in a 1.14.4 server and just have it delete the 1.15.2 stuff?
i have some questions
how can i disable compass teleport
and is there any working compass navigator plugin in spigot for 1.15,2?
ok
remove worldedit
if you don't want the tp
ok so i have been working on a tcp / ip java server
and i asked my friends to try attack it and absolutely fuck it up
They're all TCP though?
i need to protect this bad boy
Lol
they managed to slow down my whole pc*where i hosted it from)
to 2fps
i had 2fps
with mc open
you can disable it, that's what permissions are for
You have to be able to understand how they slowed it down
Who Can DM Me A Good Faction Plugin 1.8
I couldn't give you an answer, you have to know how they're doing it.
Factions?
lol
thx guys now i have sky wars 🙂
is a basic tcp server safe
is it good if i say i made a game
like if Minecraft sent packets using tcp
alright
i made a server for minigames
we have skywars bedwars kitpvp buildbattle parkour skyblock survival and skyblock
all of that made by 3 people
lol
Hi can someone help me with logblock;(
@vernal lance dm?
Can phone verification be added to spigot 2fa?
You can access the email via phone 🙃
Hey guys I've been busy for a few months but I've noticed my plugin has been removed from SpigotMC, it was originally at https://www.spigotmc.org/resources/chests-chest-linking-hopper-filtering-remote-chests-menus.71355/ I'm not sure if it's possible to get it back or not - otherwise I'll just have to stick to CurseForge I guess 😦
hi is there any compass navigator plugin for 1.15?
You can't even do a google search? https://www.spigotmc.org/resources/serverselectorx-free.32853/
That or you could code one. It takes 5 minutes
thx
Who Can Send Me A Shop Link Like Any Sign Show What Ever 1.8
Is there any way to get spigot permissions from a bungee plugin?
Skrump you could use luckperms, install luckperms bungee and luckperms spigot on your servers. connect them with a db and you should be good to go
Used it for a while now seems decent
hii.. im just made a gui... but im dont know how to put commands when he clicked on skull/withersukull, helpme thankyou 😄
player.chat(“/command”);
okay thankyou
i think it was without / but i might be wrong
disconnected with: DecoderException : java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: PooledUnsafeDirectByteBuf(ridx: 2, widx: 2, cap: 4096)) @ io.netty.handler.codec.MessageToMessageDecoder:98
What does this mean? Error I was getting with WorldEdit/Guard commands on BungeeCord (1487). Moved to Waterfall and the issue isn't present anymore?
@subtle blade Was U Talking To Me ????
@kindred vector Whats The Commands
Because we have a dedicated method to perform commands. Chat forces the player to send a message
performCommand does not
so you prevent the player from sending messages when using performCommand with an invalid command
Or you use the boolean result from performCommand()
but the logical difference is the same other than that?
because sometimes Ive seen plugins using ChatEvent for some command listeners, those won't be called with performCommand, right?
You shouldn't ever be using the chat event to listen for commands. Ever. Period.
The PlayerCommandPreprocessEvent should be called and listened to in order to prevent unwanted commands (and it too shouldn't be used to execute command logic)
^
Why Do i Have To pay 100 in game with https://www.spigotmc.org/resources/factions.1900/
And Can I Stop Cus I Dont Want To Have To Pay For My faction Server
Bascily When I Test /f claim square It Says Dont Have Enough Money ???
You should contact the author themselves if you have any issues.
Also, please write proper sentences. You don't have to capitalize every word ;P Just the start of a sentence and proper names
If you don't get support then don't use the plugin.
🤦
Lewis you really need to learn to be patient
@pale plaza https://lmgtfy.com/?q=spigot+factions+plugin
and u know have manners
Factions should have a wiki that shows you how to set it up.
If you need support when you have configuration information on the internet, freely available at any time then you should reconsider running your own server.
@velvet halo HA
@pale plaza Are you done?
No XD
"econCostCreate": 100.0,
@dusky herald I Cant Find That
Did you even bother reading the guides?
YEs
wdym? Just open the config 🤔
wym find the plugin
ctrl + f
alt + f4
^^
press the power button on your pc and hold it down
Dig up the side walk and unplug the power cable
just pull the plug
Nuke the local power station
go to your ISP and ask them how to setup minecraft plugins
they run the internets they should know
@sullen plank In The Plugins Folder
ask trump’s wife
ask his 17th brain cell
@velvet halo i got the one u said
confused unga bunga
best solution
(don't joke about that, he might actually do it)
Windows by default doesn't allow you to delete that folder nowadays
the OS protects it
sudo the crap out of it
You'll have to go above and beyond with CMD to get rid of it
I am gonna neck myself if he actually does it
¯_(ツ)_/¯
Still better than starting your laptop one day and getting:
"WINDOWS FAILED TO BOOT"
wtf
bot is being a hoe
How to detect a minecart chest
block.getType() == Material.CHEST_MINECART
Doesn't seem to do the trick on a PlayerInteractEvent
I'll give that a try
Hello i need to find plugin like that. Śmierci-deaths Gracze-players can some body tell me when i can find plugin like that please
@dusky herald BlackveiledToday at 15:34
"econEnabled": true, I Cant it I Is jar file
Ok Send Me Link
@dusky herald Could I Screen Share U Dont Need To Talk ????
@tranquil yoke It's most likely to be a custom coded plugin.
@dusky herald How Would I Oppen While ITs On Me Desctop
I really dont wanna be a dick but, how could you run a server if you cant figure out how to configure it lol
I dont have time to walk you through these things
Its Just This One Plugin I Cant Find The EconEnabled
@dusky herald What if I Sent U The jar UDownload Edit It Then Send Me Back
What is better to save player first join date at mongodb: java date object formatted or System.currentTimeMillis ?
You dont have to send me the jar
It's not in the JAR
It's in the configuration files for the plugin.
I Cant Find Legit
@runic turret Either way, it's going to be a current time. Date object is merely just a wrapper if anything for current time.
But, the Date Object could store the data
@pale plaza, are you looking in the /mstore directory?
in the format you prefer
ah ok thank you
That's the folder, that I told you about 45 minutes ago to look at
It's where the factions config is.
There Is None
/mstore/factions_mconf/instance.json
Did you start your server?
It should create itself when you start it
I don't remember if /mstore generates in the plugins folder or the main server directory, but you need to check there
Yeah I've told him multiple times what to do
I'm not trying to baby sit how to navigate through folders
Im in game and i did /f config But Still Cant See it
Well My Server Support Told me ingame cus they cant see the config
Im in the config in game rn
is Factions on the plugins list?
Yes But No Config
If it's there your server support doesn't know what they're doing either. (Most likely, anyways).
Could u join im in game Plz It qwont work
You don't change the factions config in-game.
How did you put the Factions plugin in the server?
I Went To server file then secect it then upload
I Fix XD
👌
i have a question
ugh i dont know how i could sync mysql data
so i dont have updates everytime someone breaks block.
if anyone has idea let me know
Why would you update your db for every block
well i mean crops
i have custom crops
and i need to save data to db
but if someone breaks it i need to remove it from db
true
and save afterwards
i do that
ah right 😛
but how could i know which ones are in db and which ones arent
i do indeed setup custom UUID for each crop
thats table:
https://i.imgur.com/LlzTqpd.png
if you are using mysql you can use the update query. If it exists it will update it, if it doesn't exist it will create it.
i use sql and mysql
thats how i currently handle stuff
https://i.imgur.com/bHpCvL3.png
then i have sync function
but it doesnt work properly
but all you have to do really is just have a queue in the background on a separate thread that just updates your DB.
hmm
why do you need a uuid? wouldnt coordinates be enough to identify it?
Does anyone know if it's possible to make a one-off Spigot build but skip the remapping/versioning of NMS/CB packages? I'd really like to be able to set breakpoints in internal code when hunting for bugs.
adding a uuid only adds unecessary complexity @frigid ember
so just 1 question how would i know which ones i need to remove from db if i cache them into hashmap?
hey i am new here. so in eclipse you can add the spigot file from build path. how can i do this in intellij?
pls someone
@frigid ember Only add them to the HashMap if you know they need to be removed.
Then remove all of them and clear the HashMap
If you do it that way
you dont need it to be removed
i cache crops into hashmap couse i dont want to search sql everytime someone breaks crop on world.
you just add them to the hashmap and have something save stuff every few minutes or seconds
Who Can Tell me good Item Edit Plugins For 1.8 So i Can Get Like Unbreakin 5
use an array @frigid ember or setup a queue. Toss whatever into that array or queue that requires updating. Once processed remove it from the array or queue
but i want to remove ones that are broken in world.
So add them into the list when they break
but what if someone like places/breaks/places/breaks in same spot?
Who Can Tell me good Item Edit Plugins For 1.8 So i Can Get Like Unbreakin 5
If they place it remove it from the list, if they break it, add it to the list
use enchantplus @pale plaza
@fossil jetty https://dev.bukkit.org/projects/enchantplus That
the only other thing I would probably recommend you adding, is a thread that checks your DB for inconsistencies.
a utility that runs not so often, but essentially just checks your DB to ensure the coords you are tracking are still ones you want to track as well as checking to make sure none of your rows have invalid data, which can happen if you are updating a row and your server crashes for instance.
so sql UPDATE statement inserts if it doesnt find something to edit?
@pale plaza yea
yes
if i knew that before....
storing locations of crops that are frequently broken/placed might not be a good use case for sql
what should i use then?
@fossil jetty Ok Thanks
so sql UPDATE statement inserts if it doesnt find something to edit?
@frigid ember That is not the case unless using something like "on duplicate key update"
@pale plaza np
i could use this right:
update test set name='john' where id=3012
IF @@ROWCOUNT=0
insert into test(name) values('john');
sorry it wasn't update, it was the replace command that updates the row if it exists otherwise it inserts a new row
would json be better?
what ip of the server
with hashtag
no go there to check for ipš
oke
@frigid ember how do you need to be able to access your data?
no
or do you just need to look up by block position
i need to get if specific block player broken is crop
just if it is a crop?
well mostly yes
or more information
well i need its id and if its crop
Bro
its id?
well from id then i get drops from different file
Ip whats the ip broo
alcyy STOP
@frigid ember do you need access to crop information on other servers or something like that?
nop just 1 server
so how about:
- instead of a database, just use a HashMap<Location, CropId>
- load on enable, save on disable
where should i save it?
need the data base to save
i do that
no you don't
you can save it periodically if you want
well but i would need to clear database right? and then save new data?
yeah
you are not storing custom data of the crop?
Location is configurationserializable
you can just dump it in your config file
or any yml file
i just store who placed it and its id and location
don't need the id
i do
just player and location
i do need it...
for what?
i think their id actually means crop type
i cant get custom drops if i dont know crops id..
^
i think the best solution here would be if Chunk supported persistent data containers
well, you are better off then saving your data as binary and making use of NIO and using memory mapped file
but they don't and i cba to write a PR at the moment
dw the spigot api doesn't support it yet anyway
if you need to have an idea of how fast memory mapped files can be, if you do it right you can load 10million blocks of information in 3-6 seconds and save it in 3 seconds.
well it doesnt help me if i dont know how to use it :3
the nice advantage of memory mapped files is that they will gracefully save if the server crashes
i dont know how to use them
I wouldn't recommend that. YML isn't meant to be used for large storage
use java serialisation
serializing isn't going to improve it that much
base64
but then we are back to just saving it as binary like I suggested
i'll look into NIO
there is a lot in the Java NIO package
so there isn't just memory mapped files there, there is other packages in there that your plugin could make use of
ye but i dont know them.
Well, looks like its a good time to broaden your Java knowledge then 😉
and you have a perfect use case in learning it as well
so it should make it easier in applying some concepts lol
ah for now i'll stick to hashmap and sql, im not into learning so much. i still have plenty of time.
how do I get the nbt for a block?
Ah yes hashmap storage is the best
Depends
Can you internally delete a plugin?
e.g /plugin delete Vault
And then it deletes the Vault.jar
Lmao no
yes
Yeah possible
There is no really command for it as far as I know.
system commands can be called in java
Just get plugins datafolder, then move one directory up, get Vault.jar and delete it
system commands can be called in java
@keen compass That's true
however, this is what permissions are for. If you want to prevent such things you would set the perms to be able read but not modify the jars
on windows however sometimes you can't delete the jar other times you can. Just depends how windows feels lol as well as permissions are done differently
lol so tru
in linux though, the server has the same permissions as the user that launched it. So that means if you launched the server as root, then that means the plugin can do everything that the root user can do. Hence why you shouldn't run it as root or any privileged user 😉
just a note as to another reason to not use root
Root is best :/
^^^^
imagine having iptables and running root mauahahha
which event gets triggered when dispenser uses inside of it?
I mean I'd probably hash iptables
Is it possible to get a tile entity without reflection?
Hmm there exist methods like getTileEntities in spigot when I searched in the docs but they seem to be missleading. I am not sure.
Thats inside the Chunk class, gets all tiles of a chunk
spigot gives you TileState extends BlockState
with which you can do what the API deems you worthy of
mhm Ill take a look at the docs thanks
Who know Any Infinate Cobble Stone Wall Genarators
Not really what this channel is for Lewis
Lewis I think you can google that by yourself.
How can I put a block with its data in a location?
Yes
I have this:
l.getWorld().getBlockAt(l).setData((byte)data);
l.getWorld().getBlockAt(l).setType(material);
but not found
ah time to make flat square util for custom 3x3 and so on hoes
?
(and for the love of God, update to post-1.13. if you have already, don't use setData())
RE: iTz
it actually does not make a difference to get the object once
its only a reference
oh wait it is not
Oh boy I hate when people say that lol
you don't have to if it did not had the parameter
@Override
public Block getBlockAt(int x, int y, int z) {
return CraftBlock.at(world, new BlockPosition(x, y, z));
}```
Cache it
Don't fetch it twice
sıkıntıma bakacak varmı
