#help-development
1 messages · Page 93 of 1
also bullshit
the best OS is the one you are familiar with, and that get shte job done
linux is neat, but really depends on your workflow and what you actually do
For graphics designers I'd advice not to use linux
I mean, yeah, it completely depends on workflow
but most people here are developers, and linux just makes everything so much more convenient
Fuck apple
Temple OS > everything else is just an esoteric useless OS
For java programmers linux is semi-neat, though for C/C++ windows might be nicer
but obviously for anything media related mac is better, gaming is the only reason i dual boot
Linux is cool bc Linus Torvalds was Finnish :catnod:
Wanna be creative? Mac -> Windows -> Linux
Wanna calculate Pi to the 1241573th digit? Linux -> Mac -> Windows
Wanna play "Harry Potter Part 1"? Windows -> Linux -> Mac
Wanna play "The Sims"? Windows -> Mac -> Linux
Some mac book models have a flaw that can kill your sdd
I can't use emojis from other servers here sadge
It’s a feature
is Linux good for Programming?
By sending too much power in to it
Yes
That makes all data unrecoverable
never heard of it, but that obviously sucks. However that doesnt mean that macOS sucks in general
If you program games, no
I agree
Mainly Minecraft
I mean how many broken keyboards arethere in "normal" laptops?
For java related things linux is very good
But solaris takes the crown 😉
I'd argue that linux is way more desirable for a c developer than a java devloper
This answer cant be answered objectively. Ive worked on all 3 systems and im honestly more productive on windows > mac > linux
I program games with Unity
I'm also waiting for Jailbreak to drops on iOS 15 and then start to also program Tweaks on iPhones and I'm thinking on which OS to do it
Linux isn't bad for programming games tho windows might be a bit better
The issue is debugging
I use windows 💀
Noone will care if you do not debug on linux, but if you do not debug on windows your head is off
In server space it is a bit different tho
Linux is horrible for certain game engines. Almost unusable.
same but sometimes I use my Mac (Hackintosh) when I'm making Music and Editing videos
I really hate that people just compare stuff like this:
- My cheap laptop has 4.5 GHz with 6 cores and 16 GB of RAM
- The macbook only has 3.2 GHz with 4 cores and only 8 GB of RAM
But they completely ignore that - the macbook has an asio soundcard with only 2ms latency
- etc etc etc
numbers are numbers
I mean
Ew I hate apple
-.-
How many people need a asio soundcard with 2ms latency ?
people who buy a mac
mac pro maybe
Fair
not people that buy a mac
but yeah
No one
If you buy an apple product for personal use then im instantly assuming that you have
little knowledge about hardware components and only want an easy to use, colorfull ui with round symbols.
I don't hate them but I hate how they are restricting everything on the iPhones like bro I bought this phone and I wanna be able to do whatever I want to do on it but I can't without a Jailbreak
and that's where I strongly disagree
I guess tbf the average computer user is using netflix, outlook, and microsoft office
Yes that's why I hate apple
So they probably don;t need 16gb of RAM either
??? Apple restricts everything
I literally setup a tiny audio interface setup only to do what my tiny macbook already has builtin
And the nerds unlock everything
Razer Blade > Macbook Pro
erm no? you have full root access bro
Weak point imo
only reason why I'm considering buying an apple laptop is because apple has decent standards on everything
apple IS EXPENSIVE, not gonna deny that. but it also offers that you normally do not get in any other consumer hardware
There is nothing to agree on. You are paying a huge premium for the brand and apple
heavily aims on pulling more money out of your pocket with their customized IO
Not to any of the software locks. That prevents you from repairing your device
I bought a crappy windows laptop like a year ago for 600$ and the screen is dogshit
battery is also kinda crappy
true, their "repair" policy sucks ass, and not in the good way
Apple isn't decent in anything
yeah I got lucky that my iPhone shipped with iOS 15.1 because this version is vulnerable to some exploits and right now there is some drama in the Jailbreak comunnity and so on but I hope we are gonna receive a Jailbreak to the end of the year
cooling was dogshit as well and the cooler's screws were stripped from the factory
in pre-m1 times, yes
since m1, not so much anymore
their screens actually have decent colors
that haven't been washed out 25 times
their iOS when Jailbroken is very good for hacking apps and that kind of stuff also doing tweaks and more you can customize it whatever you want
I also only use my laptop for work
I totally agree that apple stuff is very expensive. but. here's the thing: try to get a laptop with a 4k resolution that lasts for 8 hours and has ASIO support. Good luck in finding ANY.
But at least on my desktop I can look at intellij and say it has more than 1 shade of gray
Apple is only good when it's jailbroken
you will not find any
I cant take a company seriously that wants thousands for a monitor stand. Absolute clown company.
Only reason why I haven't bought an m1 laptop is because MacOS is janky
proceeds to build one from scratch. MUHAHAHA
you don't understand the target audience
as said, let me know please
yeah this is at some point true I still don't use my iPhone as my main phone I'm gonna start using when I Jailbreak it
the target audience is people that have money and want something that works minimally decently
yeah no, I wont do that
I have next to no knowledge about hardware
Sure it's locked down and overpriced and all but most macbook users actually get work done with their laptops
show me a monitor with a comparable resolution for a cheaper price, and we can talk again
For me a 4K monitor is just as good as a 720p monitor
but not everyone is you, I guess
Apple stuff is overpriced
no, it doesnt
true
you get a full featured UNIX os with root permissions
The thing with apple is that they do one thing very good
for iOS it's true
Our ancestors were completely fine with much less powerful hardware, so I really don't see why we can't live with similar stuff these days
For iphones, the camera quality is great
not in iOS
in iOS you get root only when you're Jailbroken
For macbooks, you get a decent screen, decent cpu performance and decent battery life
MacOS it's not that restricted
but I thought we walkted about mac and not iphone
Only good thing in iphones
They block half of apps
I think we are talking mainly Apple
seems like people run out of arguments why macs are shitty so they go onto bashing iOS instead now
I have minimal respect for macs
apple does suc
I fucking hate this company
iphones are for wannabe rich kids and camera addicts
App Store has dumb policies
The XPS series probably has one
I feel like there's so much choice for windows and android
not only that they block customization like Animated Wallpapers, Many many themes, custom sounds like Ringtones and Notifications 3rd party app installing and many more things
that going with apple ensures a consistent experience
show me, only one, with an ASIO capable soundcard, I am quite sure that you wont find any
Same I fucking hate apple
No one has mentioned that Apple stores user info in a datacenter owned by the chinese goverment. (Only chinese data as far as I'm aware) And then proceed to talk about privacy.
help has turned into general lolz
- who the fuck uses animated wallpapers
- who the fuck uses ringtones nowadays
hahaha xD
yeah but I still wanna be able to customize my iPhone like how I want and install some 3rd party apps from Internet without the need of Sideloading and being limited to 3 apps only
I meant third party app installing with blocking half of apps
one thing.... money!
you can install only 3 apps without Dev account and be able to use them only for 7 days after that time you need to refresh them
I don't use animated wallpapers, or ringtones
innovation is key!!!!!!
neither do I install custom apps on my android phone because I simply don't need to
?
???
I have so many third party apps
i bought a framework so it cost me a fair bit, but the monitor has been really nice - but yeah different price bracket
you can install only 3 3rd party apps on iPhones with Sideloading and being able to use them only for 7 days after that you need to refresh them if you don't then they will just not gonna work
I literally just use my phone for like 3 things:
- playing clash of clans
- checking discord
- calling my friends to threaten their life
COC!!
I don't think I need third-party apps for that
and, I still stand my ground: you cannot just compare those two things:
- 8 cores, 3.6 GHz, 16 Gb RAM
- 8 cores, 2.9 GHz, 8 Gb RAM
But guess what? Number two has ASIO support, a superior operating system that won't drain your battery within 4 hours, and has 4 USB-C ports builtin instead of legacy connectors, etc etc
same I have Rooted Android and it's full with 3rd party apps and things
what town hall
I just run random third party stuff on bluestacks
#1012313792488681492 anyone has an idea?
got to th11 a couple weeks ago
but I'm maxing everything
Same but I play clash royale instead of clash of clans
people who just compare "ghz" and "ram" are kinda short minded imho
W games bc they're Finnish :troll:
MacOS in theory uses less ram so 8gb is fine enough
unless they really only care about pure RAM and GHz stuff but tbh
change the operating system?
my windows laptop has 12gb ram but 2gb is dedicated to the gpu
owned by tencent
Discord feels weird without emojis from other servers
the stuff u mentioned dont really look like disadvantages
yes, installing ubuntu will definitily grant you a working sound system /lmao
theyre negligible
Wait they are 👀
I hate all Chinese companies
well install something else?
when i was younger i used to rush town hall so i have spent the last year on and off levelling up
in th 9 now
sure, if you're deaf, then audio is neglibible
And the Chinese government :troll:
Apple are in USA right?
They do
I actually have a good explanation
Yes
Mac vs "normal PC" is like Merceces vs Toyota
Supercell hq is in Helsinki
Toyota Supra is faster than most of the Mercedes cars
why do u need a fast car
both are cars. Both can drive. But the Merceces is 3x as expensive. However it comes with a seat heating system, double triplle airbag system, and stuff. While the Toyota also has an engine and 4 seats, but that's it
idk but when you're comparing a car you mainly compare them by how fast are them
so ur telling me on my to work or school
Dont you dare compare Mercedes to Apple
ill have to drive on 400 km/h?
imho it's a good comparison
yeah Mercedes is exotic
that sounds like a very weird comparison
No
Mercedes is overpriced
speed is really useless on cars imo, the ones intended for use that is
I drive a mercedes and I got 3 macboos so I think I'm egligable to compare them 😄
Here, I said it
Apple is overpriced and has a shitty os
I don't think it's useless when you're driving in Germany highways
Fuck macos and fuck ios
yeah, you are one of those persons who ignores all the arguments anyone ever made
Some people just like burning their money for a brand 🤷
MacOS is good OS and iOS too but when Jailbroken
Fuck Obsku. He's not smart and just writes something
Yes
Are you really going to drive 120+ kmph even on a german highway?
But who tf jailbreaks
ughm
is this a joke
because even old grandmas go way faster than 120
If you drive 120 on the slowest lane then you will get tail gated in germany
If I'm experienced driver yes xD
you can literally get stopped by police if you go SLOWER than 130 kmh
The fastest you can get on a german highway is 80 kmph without breaking traffic laws
Speed limit in Finland is 120 :sadge:
Highways are 100 here
oh yeah ok
Most go 120 tho
in germany 130 is basically the "minimum limit"
As in going over 130 makes you immune against that?
They're 120 here
no in Germany highway you can drive as fast as you can it doesn't have speed limit
complete bullshit
of course not
tbh
Wth
just use a tiguan
*In some parts
I've never been in Germany
same
I want to visit Deutschland tho
go drive 100 on the A43 for hours. if police sees you doing that, they'll stop you to check if you're drunk.
tbh, sometimes I go up to Germany to travel in the south, cause it's way faster to go 250kph than going straight at 130 😉
tiguans here cost like $60,000
I have two parents that are very aware of traffic laws, never got stopped despite going 90 kmph (+ the car would disintegrate when going over 120 kmph)
I didnt say that it's "illegal" to drive extremely slow
all I said is that police would think you're "sus" if you drive that slow
But ive been in the car with my dad (who liked to drive a bit on the faster side) on one of the faster roads at 240 kph and
we literally had an AUDI coming from behind, driving quite a bit faster, flashing us.
My dad got a fine for driving like 74kmh when the speed limit was 70 in Estonia 💀
i want a police officer to call me sus at least once in my life time
I don't really know why they would think that
or amogus, that would enlighten me
MacOS is not gonna make you a better Progammer
"Sir do you know why I pulled you over"
But I haven't recieved proper police training
"I saw you vent"
There is a 5 kph buffer for speed limits because of measurement uncertainties
LMAO
dricing anything below 130 kmh on the autobahn is indeed sus. idk, i usually also dont drive much faster, but if i'd see someone going only 100kmh on the autobahn, I'd instantly think "damn that dude smoked a bit too much weed lol"
Is there a minimum
60 it is
well even trucks drive 80 (legally) or 90 ( in real life)
Could just be that I am acustomed to parts that have speed limits, idk
You just have to drive fast enough to not disrupt the flow of traffic.
and you're gonna get uncountable times overtaken
the limit of 60 kmh I just mentioned is a bit weird
it doesnt mean that you actually have to drive at least 60+
And even then it is kindof hard to find a route where you can go over 90 due to all the road/bridge maintainances here in germany
it just means that your car / vehilce must be able to drive at least 60kmh
but in theory, you could also just drive 20 kmh on the autbobahn
e.g. if it's very snowy or sth
yeah 80-90 is on the highways I know this from ETS2 xD
Why they shut off half the lanes for 10 kilometers just to maintain a single bridge is beyond me, but whatever
but you can do 10+ without getting any fine
Btw why are we chatting in #help-development
idk
Many people have asked that we share raw footage from the GoPro from inside the car during the Top Speed test and so we did. We hope you enjoy the ride, this time from a different perspective.
It is July 2021, and it's been six years since our last trip to the Autobahn near Wittenberg, Germany. We have been to this city a few times, to remind ...
here's a tiny video about the german autobahn
that dude is going > 400 kmh and it's totalyl legal
I like how we first was arguing about Apple and then we started arguing about Autobahns
haha yeah
that's how it works here
what was that
nothing
._.
anyways #1012313792488681492 please!
Haha yes
Doing that can be illegal for other reasons however
how so? it's perfectly legal
you are probably referring to insurance stuff, I guess
I.e. the act of going 400 kmph might be fine, but there are limitations with what you can do while doing it
nope
Autobahns doesn't have speed limit if you have an alien car which can drive up to 1000 Km/h you can drive it there without problems xD
the same rules apply to people who go 50kmh as the rules for people who go 400lmh
Id play doodle jump on my phone
you ight be talking about the "Richtgeschwindigkeit" of 130kmh
depends
MOST autobahn parts do have a speed limit
Exactly, but those rules are absolutely "stricter" when going 400 kmph
IIRC only like 40% or so of german autobahn are actually "go how fast you want"
nope, they are not
so on that 40% I can bring my rocket sled
you know geol, it always depends on the situation
Pretty sure there have been plentry of people getting in trouble for posting such videos
for example, just imagine the following situation: you go 400kmh on the A43 where there simply is no speed limit
now someone just right in front of your car
and obv you kill them
not your fault, in this case
Uh it is
No matter the speed
They even could be at a standstill
Unless you prove that it was malicious or whatever
another example: you go 400kmh overtaking other cars, and someone switches lanes. it's now "kinda" your fault because you are expected to know that people cannot "judge" your speed
no...
no
I don't think there are many pedestrians on the autobahn
there is the "generelle Betriebsgefahr" that your car has, but you dont gotta prove that by just driving on the autobahn
Anyways here is a way to rename the inventory of a chest (Or any container really):
public void renameBlockContainer(BlockState holder, Component title) {
Preconditions.checkArgument(holder instanceof BlockInventoryHolder);
Block block = holder.getBlock();
BlockPos pos = new BlockPos(block.getX(), block.getY(), block.getZ());
CraftBlockState craftBlockState = (CraftBlockState)((BlockInventoryHolder) holder).getBlock().getState();
LevelAccessor levelAccessor = craftBlockState.getWorldHandle();
BaseContainerBlockEntity blockEntity = (BaseContainerBlockEntity) levelAccessor.getBlockEntity(pos);
Preconditions.checkArgument(blockEntity != null);
blockEntity.name = PaperAdventure.asVanilla(title); // Replace this with some nms Component from Spigot
}
Its actually just a field so not sure why this isnt exposed in the API
because e.g. it's expected that for example, "fußgänger" are expected to kjnow that they shouldnt just walk around on the autobahn
All these insurance scams work due to such laws, and as such I am pretty sure that that is the case
Really? I did search for this quite a while...
what scam?
Lemme grab it
Stopping right infront of another car
declaration: package: org.bukkit, interface: Nameable
if you hit another car because the other car just hit the brakes, then obviously you didnt held the "security distance" / "Sicherheitsabstand", because otherwise it couldnt have happened o0
Paper also has one
Why have i never seen this?
For components
Yes, and with 400 kmph that is the same case
of course you have to take of those things, yes
Gn I'll sleep 💀
So you can't just drive into the back of another car when going 400 kmph and be fine with that
if you go that high speeds, the requirements between "Fahrlässigkeit" and "on purpose" are different, that's obvious, for sure
does someone know why my ProtocolLib is spamming me some errors in the console
What are the errors?
Your plib version might be outdated
The new snapshots are rad
lets move to #general
some error for intercepting packets
Im already using it. Quite nice.
I got it from Spigot
What spigot version are you on?
then it is outdated
1.19
unless you are on an older spigot ver that is
Then its outdated
What does it offer
thanks I didn't saw that
Hey does anyone know a way to halt code for a few seconds without having to put it inside of a bukkit runnable?
Event-specific, so no thread.sleep
Version?
and in older version below 1.18 some of the names in the NBTTagCompound weren't obfuscated but right now all of them are obfuscated
Correct
1.17-1.19.X
Use remapped
"halting" the code on the main thread will simply freeze the entire server and crash it
Conveniently remapped is avalible for 1.17+
maybe have a look in ScheduledExecutorService
I'm just looking for an alternative to bukkit schedulers
Why
but doesn't that mean I still need to use the obfuscated names in the Reflection executing code
Yes
But if you are using remapped why use reflection
Just have an implementation per supported version
Because CraftBukkit ItemStack and that stuff?
I'm doing all in one
Ew
also it have support for 1.16.X
?paste
I'm using Reflection for NBT
any version https://paste.md-5.net/cicutadilo.java
yep I'm doing it like that but with Reflection I have one where it calls all the methods and that stuff and other one which is a Wrapper
Is that for use with remapped?
private final Timer timer = new Timer();
@EventHandler
public void onClose(InventoryCloseEvent event) {
HumanEntity player = event.getPlayer();
timer.schedule(new TimerTask() {
@Override
public void run() {
player.sendMessage("Hi");
}
}, Duration.ofSeconds(3).toMillis());
}
There is really no reason to not just use the BukkitScheduler but ok
#1012313792488681492 for anyone that has the time ig
I'm adding right now support for the newer Minecraft Version 1.16 and up
I assume it is since you only handle cb stuff, not NMS
I'm working on a tool to convert a custom block-based coding language from a server I play into spigot code (so that you can take your games off the server and onto your own). When generating the code, I store it as a bunch of nested arrays first, then format into text using a recursive function (this is in JS). The purpose of storing it in arrays is so that every code statement that extends into curly brackets will be easier to format (no awkward string manipulation). Example: https://pastebin.com/Tf58ttgq
So [parent, children] and children can be arrays if you're nesting those kinds of statements (sorry if this is confusing, but it's not directly related to my issue anyway so dw)
There is a particular scenario where I'd need to nest bukkit runnables, but since they have a dot notation at the end of the closing curly bracket (}.runTaskLater() as an example), it won't work with my current system and changing it on the JS side would be a little annoying to do so I'm just trying to look for an alternative
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
NBTTagCompound is NMS so yeah
you can view the source code for this on the website in my bio (not obf), however I really don't need to explain all this
The one I posted works with remapped or not. it doesn;t care, it just returns an Object which you cast
I'm just looking for an alternative, but you asked for an explanation so 🤷
Buti imagine it allows a single impl with remapped
You keep all your NMS code in yoru class with its own imports, no CB stuff needed
since only cb is versioned now
yeah
it's good that I have the obfuscated method names from a site
} catch (NoSuchMethodException | SecurityException | ClassNotFoundException e) {
e.printStackTrace();
}
ReflectiveOperationException :p
just use Exception xD
Catching generic exception is smelly
no
Your ide will tab complete it anyway
Why does it matter
Eclipse can tab complete variables just fine
the .runTaskLater() can go on another line?
having it on the same line itself is not the problem
actually
I will say this method doesn't look ideal
it is
Machine generated code is always ugly
it's just not made for what I'm trying to expand upon atm
I have no idea why you dont just use one String and compile your java code using javac
it does become one string
you're supposed to compile it yourself though
internally it's stored and manipulated as a bunch of arrays
the output is a string
although I'm pretty sure I just solved my problem
so it's fine
what's the problem with internally storing it as a single string?
I would have to manually indent everything based on context that can change as I generate the code
not only that but as it goes through the code thread (the one that it's trying to convert into spigot code), I'd have to insert stuff into a string
way harder and more awkward than a simple .push
why does indentation matter? is this intended to be read?
yes
the generated code is readable enough to where you can sort of modify it yourself
it's more of a design thing
it has been a priority ever since the beginning
Just create a one liner and use a beautifier
^^
I've been working on this for months and I can't tell you anything but I'm fine with how it is
you think it's a hassle to make it into arrays but I don't think that's so
🤷♂️ whatever works
even with a one-liner inserting code in between brackets is a lot more complicated than pushing it to an array
just hope it doesn't cause problems down the line
I would much rather use a tokenized approach...
Well this is just the system that all the code blocks are generated upon and it's caused the least of my issues
in fact none at all
https://pastebin.com/qwHjgJew (CODE)
https://pastebin.com/CTK0JanK (MAIN)
So... I really am new to programming so don't make fun of me, 😄
I'm trying to make a fly command and if you enter /fly ingame, you fly (epic) but if you type a arg 1 and that arg 1 is a player, you fly that player. It's kinda simple and kind of not
I'm using intelligi.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I'm going to need a nerd to help me out 🙂
the first 3 can be fixed
with intellij quick fix
and the last 2 same thing
the 4th one is because
when args.length == 0, that means the user simply ran the command
no other arguments
so like
if args.length is 0
it means the player ran
ohhhhh
Player target = Bukkit.getServer().getPlayer(args[0])
How come this is arg 1 than^?
What?
Indexes start at 0
I have that exact same function for my teleport command and it works.
It does not
🤦🏻
and why do this?
if (target.getAllowFlight()) {
target.setAllowFlight(false);
target.sendMessage(ChatColor.BOLD + "Flight is now " + ChatColor.RED + ChatColor.BOLD + "Disabled " + ChatColor.YELLOW + ChatColor.BOLD + "For " + args[0] + ".");
return true;
} else {
target.setAllowFlight(true);
target.sendMessage(ChatColor.YELLOW + "" + ChatColor.BOLD + "Flight is now" + ChatColor.GREEN + ChatColor.BOLD + " Enabled. " + ChatColor.YELLOW + ChatColor.BOLD + "For " + args[0] + ".");
return true;
}
just do this:
target.setAllowFlight(!target.getAllowFlight());
target.sendMessage(ChatColor.BOLD + "Flight is now " + ChatColor.BOLD + (target.getAllowFlight() ? ChatColor.GREEN + "Enabled " : ChatColor.RED + "Disabled ") + ChatColor.YELLOW + ChatColor.BOLD + "For " + args[0] + ".");
return true;
```
@wary topaz
you use "!" to reverse booleans
so if its "true" itll become "false" and vice versa
and you use
the ternary operator
to shorten if statement that require return value
e.g
https://pastebin.com/PGUx50jD
I'd rather not touch anything now without exact directions, i might fuck it up again
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
public boolean isSteak(String food) {
return food.equalsIgnoreCase("Steak") ? true : false;
}
though in this case u dont need it, since equalsIgnoreCase returns a boolean anyways
oh u added an extra }
Look, this might be alot to ask for but can you fix the whole thing for me, I feel i'm going to mess it up again
I understand if you cant.
alright done
your package shouldnt have capital letters btw
and it should have a domain behind it
e.g
my website is dqmino.tk and my project is CuteSkins and the package is commands, ill have to do:
package tk.dqmino.cuteskins.commands;
if u dont have a website just do
me.<username>.<projectname>.<package>;
they should all be snake case
package Commands;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class Fly implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String [] args) {
if (!(sender instanceof Player)) {
sender.sendMessage("Only players can execute this command!");
return true;
}
Player player = (Player) sender;
Player target = player;
String userName = target.getDisplayName();
if (args.length == 1) {
target = Bukkit.getServer().getPlayer(args[0]);
userName = args[0];
if (target == null) {
player.sendMessage(ChatColor.BOLD + "" + ChatColor.RED + "Invalid Username, please check your spelling.");
return true;
}
}
target.setAllowFlight(!target.getAllowFlight());
target.sendMessage(ChatColor.BOLD + "Flight is now " + (target.getAllowFlight() ? ChatColor.GREEN + "Enabled " : ChatColor.RED + "Disabled ") + ChatColor.YELLOW + "For " + userName + ".");
return true;
}
}
what the heck it keeps fucking up
ok i fixed it
Yeah formatting do be like that
mhm this is a lot shorter and cleaner now
no problem
though you should learn more java when you finish ur plugin
would help you solve some issues too
if u misspell the username
That error happend on my teleport function and I dont know how to fix that
Even looked it up and found nothing
between the ChatColors
its when u have two chatcolors in front of each other
so u have to add + "" +
between them
mhm
send the error in console
did u use what i sent u
i edited it a few times
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Yep.
(Just updated that pastebin
@NotNull
private final IMappingProvider @NotNull[] children; // Line 154
Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.6.4:descriptor failed: syntax error @[154,36] in file:/home/Geolykt/applications/mods/sane-crab/gmt-maven-plugin/src/main/java/de/geolykt/gmt/deobf/remapping/MultiMappingProvider.java
I hate javac. I hate javac. I hate javac!
aha fixed
quite possible in how its doing it that could be causing issues
Oh wait shit wrong file
wait error
it sometimes bugs out plugins
which is?
dw about that
IJ moment
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
its not intellij fault tbh
oh alr
spigot fault if anything
when I import the plugin I dont do it right to the folder
Eclipse doesn’t warn me about stuff like that
Could consider that a good thing or a bad thing
a bad thing
How would you do it differently? Service providers?
I do it to a seperate folder and do this:
(start.bat)
:start
copy "C:\Users\ethga\IdeaProjects\BetterCommands\out\artifacts\BetterCommands_jar\BetterCommands.jar" "./plugins"
java -Xmx4096M -Xms4096M -jar paper.jar nogui
GOTO start```
i see
btw why is ur server having 4gb
wtf
"Class X is unused" is usually an unneeded warning
Why not
u dont need to use 4gb
If you have the ram
even 1gb is enough
its a test server
Note that there are many people these days that have 32+ Gb
Mhm
ahhh when ur rich and have nothing else to spend money on:
A Gb here or a Gb there isn't really the end of teh world
gg
tysm !!!
I myself don't do much outside of being on the computer. So that is a logical solution
It is pretty costly no matter the ram from what I find
btw i wanna ask something
Much better than other PC parts though
is having 2x 16gbs better than 4x 8gbs?
its like a usb, 4 is worse than 2
4x 16gbs
depends on the workloads ig
theres something like dual thing
No, it doesn’t make any noticeable difference for normal use
i see
its going to be slower for 4 times
but yeah, it is rarely going to make a difference
If you already have 2x8, buy another 2x8
Basically what they are saying is, get 4x 16gbs snd@you’ll be ok :)
Yep 100%
lmao
2 vs 4 isn’t gonna make a big difference
i would be fine with just 16gb
You'd only notice something different if you push it to teh system to the limits, at which point I believe the CPU might have a harder time managing everything
But bigger single sticks tend to cost more
or 24
4x 16gbs is 64 Gb LOL
I got 32 because I wanted to run 3 instances of Minecraft, a server, chrome and IDEA lol
32 gb is very sufficent
alr ima try making the plugin do /gmc /gms etc 🙂
???
wish me luck
I have 64 gbs of memory so I can finally have 1 chrome tab open
bro spent that much on 32gb just to do that???
*3 modded instances
Tf
intellij +2
mc +4 +4 +4
a server +2
chrome +2
oh
I run fairly heavily modded rimworld with just 16
MC 4+4+4
Chrome is 90% of that
Swapfile
Then use firefox
Fuck chrome
Firefox > Chrome
why not
shut down chrome when ur testing
it takes 1 millisecond to start up anyways? and it runs on the background with less resources
Naaa I’m more of a internet explorer kind of guy 😎
or if ur testing a mod
use opera
use gradle plugins to test with ur ide
Use curl
The best way to lower ram usage is to shut the computer off
epic browsers
I was reading that
mic should I dm it to u
Na imm@be fine
alr
check it out here ya https://en.wikipedia.org/wiki/List_of_web_browsers
I use Netscape
The words?
I wanna see who’s been banned
Guys I got a question, like minecraft prefixes (&e) there are generators for easier use, is there generators for java development plugin prefixes?
microsoft does silly billy!!!
LOL
Yes I’ll email them for the list and probably get ignored
if you install the mcdev intellij plugin it helps with some of that
ty
but it’s normally only that chatcolours
i wonder if you could FOIA request it 🤔
first one
no i'm talking about a way to make it easier
yeah, it normally has a colour picker or something
but, use chatcolor not the special character
Those aren’t errors
They are warnings
First one is just how spigot be
Other 2 you can technically slap an Objects.requireNonNull on
But it doesn’t really matter
tf where do I put Objects.requireNonNull
Clicking the warning will probably let you auto do it
How hard would it be to create a world for a dungeon each time a player (for now a single player) runs a command that they will be teleported to?
is there a better way to do that?
shared world and offsets 🤔
and pasting schematics slowly
or building all the chunk data async and load a .mca file maybe
Mk, I'll look into that
How I can disable sound from jukebox?
how can I get the amount of mobs that are acting towards the spawn limit
I'm working on filtering player messages and I currently am using a AsyncPlayerChatEvent, is there a way (or another event) where I can set the message for each specific recipient?
Not that I know of
You just have to cancel it and send them individually
Or use a packet listener
Yeah this is what I figured
Thanks Coll
When I am using setItem for inventories(specifically a gui) will the index is that the item slot? and if so is it based on the top left slot being 0 or 1?
Top left is 0
ok thanks
How do I enable so when a player types in chat "&e EE" it replaces it with yellow, EE
Automatically*
In my plugin
Use the chat event and run it through ChatColor.translateAlternateColorCodes
.
wdym by acting towards the spawn limit?
persistent entities vs non persistent ones
like how you can do getMaxSpawnLimit for a world
is there a quick way to replace a mob's sounds or do i have to use packet listeners
wait i could just make it silent then listen to events
I mean the smarter thing to do at that point would just be to use ProtocolLib to change the sounds ;p
yeah
You could also force your players to experience auditory hallucinations
yeah this sounds most plausible
if were talking about efficiency, wouldnt making it silent + events be more efficient?
yeah thats true
can pack listeners be async?
yes
Yo anybody wanna help me with some code ;0?
oh ez then
whats your question
how do I overlay default commands like /gamemode
well tbh, my actual problem is silverfish arent properly spawning but im sort of avoiding the issue
commandpreprocess event iirc
Overlay?
/gamemode is a basic command, I want a new output
Override it with your own command
does it automatically do it?
Yes
for vanilla commands, yes
And Bukkit commands
Afaik
Whatever is registered last gets priority, and plugins are obviously registering after vanilla and Bukkit
okay second question, i dont have any money so I can pay with the last of my robux from 2016 after I quit (500 I think), I need someone to make a QUICK code thing for me
?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/
not here
Aight
A thread probably will not be approved there if your payment is robux lol
What if he makes his own country and the currency is robux
didnt think of they choco, hey
lmao I agree
every custom UI i try to make ends up looking like OR :/
messaged ben about it but he ignores me now
yeah thats my aim
So of course they are gonna look similar
im using a vanilla colour scheme and general aesthetic
just gdont want to impede on any IP
This probably looks quite similar
Only so much room for innovation with the enchanting table UI
Chest
That does remind me, chests can be bigger than that
Idk what I could add with a bigger inv though
just more enchants ig
does your system add any extra functionality on top of vanilla enchanting?
Custom enchants
Now I'm curious what extra bars one would have
this is going to take so long to build the spigot jars
when i use TerminalConsoleAppender in a standalone project, and use color codes in log messages, i am getting extra weird character in logs + doesn't color in intellij (im sure it supports it since [INFO] is colored)
Does the hello message send?
I'm creating a moving gui, where the player can click an arrow to move it one slot to the left, and have a bigger grid not displayable that gets moved around, whats the best way to do it? the moving part and the creating of the inventory
id on't want players to be able to take items from the gui, like most plugins do
help
idk how to check entity moves
I want to use event
what can I do?
maybe you can use schedular
but I think it requires db
ty..?
is it event?
k
how can i use protocollibpackets to check movement
yes but how exactly would i check if server shutdown etc
Anyone knows how to make a config file without having to previously save it in my jar?
I kinda followed https://www.spigotmc.org/wiki/config-files/#using-custom-configurations but it doesn't work if I don't create the file before
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
just use a config or db with uuid : last time opened
then check it
Yeah, config must be created first inside the resource folder
yeah, that's what I want to avoid xd
no?
you can create a file without it being in the jar
and it will be directly saved to my plugin's folder just like the config normally does?
any hints for that? I don't usually work with files lol
Why avoid creation though, is it a big file
you mean avoid creation in source?
plugin.getDataFolder
ty ❤️
In the resource folder
any version after 1.17 doesn't use mojang remaps?
because it is a logs file, which will be linked to current date and I don't want to create a file for each day in time lol
I'd do a db for that
maybe making it easier for users to read
I don't want to have my admins downloading something to read those logs + having to download the db each time to see it xd
imagine reading 1000 lines of logs in a command
Pagination, etc
yeah but I also want it linked with discord and it is way easier to make logs for each day and send that file to discord instead of all the command hassle xd
Is it a yaml?
yeah it will be handled like a config
yeah no, it is for admin only hehe
Maaaaaaybe https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#getLocale() but not sure tbh
declaration: package: org.bukkit.entity, interface: Player
It was just quick research
idk, test it out i guess
The vanilla Minecraft client will use lowercase language / country pairs separated by an underscore but lowercase for all or only language
why tho xd
Cannot cast object '{jedis_version=4.2.3, plugin_version=2.0.2, plugin_archive=husksync, javaVersion=16, snappy_version=1.1.8.4, grgit=null, org.gradle.daemon=true, mysql_driver_version=8.0.30, org.gradle.jvmargs='-Dfile.encoding=UTF-8', version=2.0.2+unknown}' with class 'java.util.HashMap' to class 'java.util.Hashtable' due to: java.lang.NullPointerException
anyone know what happened?
I mean, either way they can just make it lowercase and whatever xd
when i was going to compile the plugin
NPE, something is null in your code
Npe
oh makes sense
actually I might also need that xD
Trying to execute something with null values
thats not my plugin though
Or empty collection
so its the plugins problem?
then #help-server i guess
should be
thx
Report it to the developer
Execution failed for task ':common:processResources'.
Could not copy file '/Users/fwfweff/Desktop/HuskSync-master/common/src/main/resources/database/mysql_schema.sql' to '/Users/dwedwedwe/Desktop/HuskSync-master/common/build/resources/main/database/mysql_schema.sql'.
Error - Invalid filter specification for org.apache.tools.ant.filters.ReplaceTokens
is this also the error of author?
casue he told me i got a wrong version of java
which version you got
and if you're not the author of the plugin #help-server would be more fitting
moved to there
getPotionEffect then .getAmplifier
if result of getPotionEffect is null they don't have that effect
yes
add a null check for getPotionEffect as well
since it will return null if player doesn't have effect
getAmplifier will get the amplifier of the effect
you compare it to an int
yes because you're just telling it to get an amplifier
that will return an int
of course
also what do you mean by "detect"
do you want to use the level of the effect somewhere else
or do you want to see if the level of the effect is equal to something
PotionEffect potionEffect = player.getPotionEffect();
if (potionEffect != null) {
int amplifier = potionEffect.getAmplifier();
// amplifier = level of effect
} else {
// no effect
}
also amplifier to a totem?
what do you mean
oh
PotionEffect potionEffect = player.getPotionEffect();
if (potionEffect != null) {
int amplifier = potionEffect.getAmplifier();
player.setCooldown(Material.TOTEM_OF_UNDYING, 200 * (amplifier + 1));
}
hey i was wondering if there is any way of placing something like an image in the datafolder?
player.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, player.getLocation(), 1);``` am i doing smth wrong? cause i see no particles
are your particles off
lol
just do it
If this does not resolve your issue then please pastebin the entire BuildTools.log.txt file when seeking support.
java.lang.RuntimeException: Error running command, return status !=0: [sh, /home/.local/share/Trash/files/BuildTools/apache-maven-3.6.0/bin/mvn, -Dbt.name=3553, -P, remapped, clean, install]
at org.spigotmc.builder.Builder.runProcess0(Builder.java:973)
at org.spigotmc.builder.Builder.runProcess(Builder.java:904)
at org.spigotmc.builder.Builder.runMaven(Builder.java:873)
at org.spigotmc.builder.Builder.main(Builder.java:709)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)```I've been building all the spigot versions but when I got to 1.19 I got this error
java -jar BuildTools.jar --rev 1.19 --remapped```
just says return code is not 0
not exactly helpful
Please check the wiki for FAQs. If this does not resolve your issue then please pastebin the entire BuildTools.log.txt file when seeking support.
are bitwise operators good practise to use for a same line option
I don't like how many mutual discord servers we got
if i set persistantData on a player, will it ever be deleted?
its called persistent for a reason
otherwise it would be called volatile data
no but i mean if they change their name
such advanced word.
Well I'm not sure about a name change, I would assume its linked to the UUID and not the username
It's saved to the player's NBT, which is saved to their playerdata file
So no, a name change would not affect it. If their UUID changed (for whatever reason... offline mode or something), then their data would be lost. But so would everything else like their inventory, position, among other things
A db though is if u want to store more info
is there event that can check entity move?
not in spigot
I believe paper has something
Usually a bukkit runnable will suffice
than how can I check it?
.
I want to make armor stand move and on ground, I want to spawn tnt
You can create a class that extends runnable, then instantiate
The params are up to you
There is no specific event
I began making plugin 3days ago
anyone know how to get the key of a word for version v1_15_R1
Key of a word?
