#help-development
1 messages · Page 2207 of 1
If only it was a float
is this better?
yes
Its Null (only funny for my German pals)
myes
yes
https://paste.md-5.net/qacutabice.java check out my awesome number adder
early returns where
i meant dis
https://github.com/FalseCodee/Numbers4J my friend made this i think you'll like it
that is also very useful!
it's missing an "isOdd" field
ill make a PR right now
I dont need fancy Math Libraries, i just send any equation to my webserver and any of my code waits for me to solve them in my head 🙃
lol u dont need that
ok now that my code is good can anyone help me resolve my issue
!isEven()
why is it not sending me the name of wooden hoe?
Because the if statement is false
Fact that you said this unironically is funny
how? I am right clicking the hoe
I have this in RaidTriggerEvent plugin.getConfig().set(loc, amplifier);
and I have this in RaidFinishEvent PotionEffect effect = new PotionEffect(PotionEffectType.HERO_OF_THE_VILLAGE, 120000, plugin.getConfig().getInt(event.getRaid().getLocation().toString()));
for some reason when the raid is finished the amplifier is always 0. any ideas?
Let me check, i dont want to say anything !true
its beautiful
im going to use it in my plugins
do calculus with it
and I checked that the amplifier is set correctly.
Nevermind its right. Did you register your listener in your Main Class?
Yes I have
a funny thing is it cant add more than 5
might have lost it i dunno
are you saving it?
oh you're right
Can you check with a System.out.print("Rightclicked Air with Hoe"); if you get past your if statement?
you can
oh yeah fr so then you can get even by doing !isOdd and odd with !isEven
I think you dont get into the body
but then it won't use my awesome caching for EXTREMELY FAST ADDING
thats really efficient and stuff
I get inside the if statement
because the rest of it works
I go flying when i right click as i should
but it doesnt tell me the name
recurison
indeed, 1 to 2 cpu cycles are too long
md_17 should host a worst plugin competition
who is md_17
md_5 on heroin
walmart md_5
a person with big tits
md_5 * 3 + 2
evidence?
3(md_5) + 2
factorisation
3md + 17
md_20?
yes
bump
event.getMaterial().getAsString() should give you "Wodden Hoe"
wodden
public class ExtremelyFastAdder {
private static final Map<Map.Entry<Integer,Integer>,Integer> CACHE = new HashMap<>();
static {
long start = System.nanoTime();
for (int i = 0; i < 2000; i++) {
for (int j = 0; j < 20000; j++) {
int result = i + j;
CACHE.put(new AbstractMap.SimpleEntry<>(i,j),result);
}
}
System.out.println("Building the extremely fast number adding cache took only " + TimeUnit.HOURS.convert(System.nanoTime() - start,TimeUnit.NANOSECONDS) + " hours.");
}
public static int addExtremelyFast(int num1, int num2) {
return CACHE.computeIfAbsent(new AbstractMap.SimpleEntry<>(num1, num2),__ -> num1 + num2);
}
public static void main(String[] args) {
System.out.println("3 + 50 = " + addExtremelyFast(3,50));
System.out.println("10382 + 1 = " + addExtremelyFast(10382, 1));
}
}
I always use Diamond Hoes
map in a map
u gotta make the load factor 0.25
should I saveDefaultConfig() or saveConfig()?
for faster lookups
saveDefaultConfig
because it makes so much sense anyway right lol
only call saveDefault when enabling the plugin
ok
I'm setting Game States. how can i remove properties of another state while in another state
setGameState has to be a method that does all of it
I did but Its same When I change GameState Properties keeps being
if u wanna set state to lobby, make sure you stop the game and clean up everything and then set state to lobby
Btw Is there a shortcode to Remove Multiple Blocks. I'm setting block's coordinate and removing. And Its being really long code
what's wrong with that?
?paste
bot is dead
can someone explain to me what the void means when creating a method
no return value
returns nothing
RIP
So I wouldn't want to get information from lets say a player and send it to the mainclass and have the method be a void?
what
i will rephrase
yes please
If i wanted to get information from a method, I would not write void
as it returns no information
yes
correct
it's possible to create a Void object in java 8
in java 17 it's not possible anymore :<
static Void returnNothing() {
try {
Constructor<Void> constructor = Void.class.getDeclaredConstructor();
constructor.setAccessible(true);
return constructor.newInstance();
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
e.printStackTrace();
}
return null;
}
so useful
you have to love reflection
i just like the way python does it. So like you have a function that doesn’t return anything, so you can just
return func()
yes I'm a reflection-phile
ugh
ew
so in java terms i wish a void method could do:
return otherVoidFunc()
why?
lets go
how would that be useful
but like
it wouldnt really change anything
for one liners
wont that
so if you did a null check or something you could call a procedure and return in one line
actually nvm
like instead of
if (a) {
invokeSomeVoidMethod();
return;
}
u do
if (a) {
return invokeSomeVoidMethod();
}
better discord, report this user 📸📸
:)
exactly
kotlin too
well it's not exactly any shorter than
someFunction();return;
but seen as python has literally no type enforcing that makes sense
one word:
ew
return oneFunction() 😍
dont u have an entire listener class in like 5 lines?
yes
oh i remember this
the rule was "maximum 3 ; per line"
that's actually cool ngl
so ur not allowed to decide what is and is not a valid one liner
Wowww
its too dark
how did you do that
if you ask me, it's too light lol
living in the void 🥺
wtf my discord theme changed
that could be me
me everyday basically
owh noo
Hey guys, anyone knows any substitute for the http://mrgarretto.com/armorstand/ to create armor stand positions? the mrgarretto' website are offline for me
NOOO
drink a liter of coffee
my coffee machine broke
why do we exist
and i'm broke as well
that makes 2 of u
netcup once sent me a battery powered to go coffee machine
they sent it to the top 10 forums persons last year or the year before that
don't remember
i want that too :(
I have never used it lol
imagine... you stole it from me, and then you don't even use it
I stole it?! I bet you're not even registered on the netcup forum lol
:(
how'd you know
make it also read an icon.png from the resources and use that instead of the warning symbol
i'm liking this weird theme @tardy delta
omg lol
ok
haselkrn
I think one can just turn a BufferedImage into an Icon
and get the BufferedImage from ImageIO
thats positioner is single
thats actually awesome
how do you make one of these I'm curious
what the actual fuck
this gives me a headache
please just disallow german as a language worldwide
hpow do i disable it
am trapped
clear it go back up to his message and click clear lol
ye I'd say I'm roughly 70% done with the main features
right click your settings icon and click disable
at least for me
yep done
clear build override
i just pressed on it again
that works as well lol
how many lines of code is that?
idk, but currently I'm at 82 classes
actually, is there a way in intellij to count your whole project's lines?
you have to code them i guess
hmmm I wanna figure this shit out
looks super cool can probably layer teh back without as much hastle as making new css files for the entirety of the platform
statistics plugin
A repository containing the build overrides server for Discord.Net and any activly worked on overrides - GitHub - discord-net/Discord.Net.BuildOverrides: A repository containing the build overrides...
hi guys
so I am not a Java developer
butI found myself in the code of a plugin trying to fix something
I dont have any idea how to compile
and there is no guide on the github
can somone help me?
does that plugin have a pom.xml file?
most of the time, just run the build task from either gradle or maven
yes
open it in INtelliJ -> right side "maven" -> "lifecycle" -> double click on "package"
for both maven and gradle. thats what i personally use
which tab?
Far right side. The M tab
click on configure
then choose a jdk
probably you need either java 8+ or java 17+
oh build just uess the clean package nvm
when it's done, run package again
ask @rough drift to fix his repositories in pom.xml
or download "smp-core" too, and do the same thing except that you double click "install" instead of "package"
smh
wait why did you replace the "How to install spigot" link?
😂
that was leading to a spigot wiki article
OHH
i thought it lead to the spigot page for the plugin
i'm dumb
it's easy to change
i'll leave that hardcoded then
where to put it? like do it in another project?
smh
i left my youtube running. for like 5 hours in the background on my laptop
wtf am i watchig
yes. File -> New Project from Version Control -> enter github link
get from vcs?
when u load intellij
idk
feel that. when i go to sleep i watch yt on my tv and when i wake up, i am always in some ramdom yt livestreams lol
it's called "Project from Version Control" for me
when you load intellij i mean
stuff that i'd never watch
idk when I open intelliJ it always opens my last 28751 projects
lmaooo
why so many projects
it's more like 10 or so
imagine having a tv
well my intelliJ doesn't waste tons of RAM because I have this stupid minecraft dev plugin disabled lol
i have a tv just for playing controller games when my butt hurts too much to sit on my chair
i love it when intellij uses half my pc's resources trying to index my files
very efficietnt
i remember using eclipse
which loaded like all of my projects
office chairs > any other kind of gaming chair
or chair for that matter
yeah it uses those annoying "workspaces"
i have some old ass office chair
I just have a big screen
which is fucking broken
prolly still comfy as
even if its got no legs
macos background smh
I love my Eclipse Workspace 😦
never
mine too D:
my chair hurts af
bad chari
same as my headset, hurts after like 3hours in
i have ear covering headsets
imagine using headsets
which choice?
it literally says
at least that
and not some razer headset xd
i'd never use studio headphones, because i use them for gaming as well, and those would probably be a bit weird
razer makes bad headsets ngl
no which? create?
nah u just don't know stuff
bruh
that could also be true
but apparnetly not all of them
sure, there are some exceptions
^^^
where is that option?
and i personally dont want to pay more than 100€ on a headset, as i don't play that much competitive stuff except cod
on your screen?????
would be kinda useless to me
creaet
understandable
bruh what do you actually want to do
i got a keyboard for 160€ and a mouse for 140€ lol
I call the repo from a link or from my pc?
monitors for 100€ for my two side ones, and 200€ for my main one
and headset was like 80-90€
I got me a pair of 1k€ studio monitors.. who needs headphones now xd
lmfao
but hey, my mouse is wireless at least
now i only roll with my chair over my headset cable lmfao
nothing better than that
god those reactions make me feel weird ngl
who is emoji spamming
idk
im just like
hover over it and U'll see it
everyone apparnetly
@humble tulip you will be banned
reacting with whatever
@sacred mountain you too
i have
wait that's against the rules?
whats wrong bruh
¯_(ツ)_/¯
sigh
there we go it's gone
where to enter github link??
bruh
idt it's against the rules?
you all can't believe how much time I wasted digging through the DefaultREpositorySystem class to find out why the repository is always null. fuck the DefaultServiceLocator!
way
wait you were that person on the server that helped me day before yesterday?
i cant remember what i had for breakfast
with whom are you talking lol
you
idk what did I help you with?
yes that's my server but I can't remember
np 🙂
.. I still cant find it :/
bro
there are two fields
one is called URL
lmao
and the other is called Directory
why r u creating a repo
try to do something else. for example what I said
dude
here is version control
create a project
which is File -> new Project from CVS
oh I see it now heh sry
o?
my screen is massive tho
dont really need the sidebar that compact
is there a plugin for it tho?
after installing do I do package on the main one?
no idea, it's in settings -> appeareance
yes I love it
yes
well actually one should of course avoid that
but if those files are the same, it doesn' tmatter
yeah but i cba
ok thanks
don't you love it when a developer provides you with an api thats obfuscated
I can never remember how I can go to the location of the file
like when I have class X open
I want to click on X and click "go to package" or sth
What are the slot numbers for armor in 1.8?
that is long forgotten knowledge i guess
the first one right? 😅
yes
ok
unshaded
oh right
btw this is probably the BEST setting in intelliJ ever
😮
i find it annoying sometimes because like
it satisfies me to remove all the imports from a large class
and then just import them one by one
and watch all the highlights go nfghbdfgjhbsdjbsr
it only imports stuff if there is only one matching class anyway
and if they just appear, then its no fun
like how annoying is it to always click on "import map" and then "import hashmap"
of course with HashMap I mean java.util.HashMap
yeah but now you don't have to do anything
true
I only found out about this 5 minutes ago
why is the version in 'quotes'
i didnt change that
only if you enable filtering
if you set resource filtering yes
how
huh
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
my Bungeecord server is stuck at Starting
so where is it defined
Did you ever figure this one out? I notice you did some stuff with CustomEntities after this so hopefully you did
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
wrong channel
come there
then troubleshoot
if you have plugins, take them all out and see if it starts
and then add them back
i did
5 at a time or something
i reinstalled
yes
yes, I have it
server host
did you check their uptime and daemon?
and you've ocmpletely reset and it doesnt run?
awesome r u able to show me how u resolved that? i'm trying to just test a quick thing with a custom "monster" but can't get past this with anything
they arent on the same machine you know
it dont
your first message today here was 3 minutes ago
like
LOL
its stuck on Starting
well then get support from their team instead of asking help development
pls don't spam this channel with your "my bungee is stuck" questions
use the proper channel
he said it's the wrong channel
im deleting and sending same again and again
💀
so people can notice
if your server host provides support make a ticket
thats probably the fastest way you'll get direct support because we don't have access to your panel
you see
smp core is not on maven yet
so the plugin just uses the local repo
i right clicked a class and ran it now i am unable to run the main class
wdym? show a screenshot pls
nice one
?
boo
😔
thats usually me tbh i ask a question and fix it 15 seconds later
yah but that was a dumb qustion
is there a easier way to put items in your offhand in bedrock while using geyser?
Maybe just a button? or something to not type a command everytime
yeah with the command /geyser offhand. But i feel there must be an easier way
how do you do that in gradle
last time i tried it errored with some pattern error or smth
maybe because i had $ symbols in the code for big text
but i feel like that shouldnt error
just check if theres a { after it
Yes
idk
I wonder if this is an extremely good or an extremely bad idea
completablefutures 😍
@DoNotRename?
that's just for allatori
what do they do?
commands:
summonhorse:
description: "Spawns a custom horse"
usage: "§cUsage: /<command>"
permission: "superiorsteed.admin.summonhorse"
horsestats:
description: "Displays the stats of the horse you are currently riding or looking at."
usage: "§cUsage: /<command>"
permission: "superiorsteed.horsestats"
# temporary debug commands
horsecache:
description: "DEBUG. Displays the cache of all horses in the server."
usage: "§cUsage: /<command>"
permissions:
superiorsteed.admin:
description: "Allows the user to use the plugin's admin commands."
default: op
superiorsteed.admin.summonhorse:
description: "Allows the user to summon in a custom horse."
default: op
superiorsteed.horsestats:
description: "Allows the user to see the stats of the horse they are looking at."
default: true
How do I make it so that if a player has superiorsteed.admin permissions enabled, they also have all sub-permissions such as superiorsteed.admin.summonhorse enabled?
in all other permissions, set "parent: superiorsteed.admin"
or was it the other way around?
lemme try that
other way round
wdym
and one had to use children: ?
superiorsteed.admin:
description: "Allows the user to use the plugin's admin commands."
default: op
children:
superiorsteed.admin.summonhorse: true
```?
no
Is there a way of resetting the hasBeenPreviouslyKilled method of a world for the ender dragon ?
permissions:
superiorsteed.admini:
description: "blah"
default: op
children:
permission.here: true```
yeah
If you are a beginner or a single dev use Maven to start
thats correct lol
wait what is permission.here though
literally just put your child permissions there
superiorsteed.admin:
description: "Allows the user to use the plugin's admin commands."
default: op
children:
superiorsteed.summonhorse: true
so like this?
it's not an actual permission
or
yep
thats weird
return a future, which is a promise that something will execute but we dunno when
has some useful methods like #thenRun, #whenComplete
commands:
summonhorse:
description: "Spawns a custom horse"
usage: "§cUsage: /<command>"
permission: "superiorsteed.admin.summonhorse"
horsestats:
description: "Displays the stats of the horse you are currently riding or looking at."
usage: "§cUsage: /<command>"
permission: "superiorsteed.horsestats"
horsecache:
description: "DEBUG. Displays the cache of all horses in the server."
usage: "§cUsage: /<command>"
permissions:
superiorsteed.admin:
description: "Allows the user to use the plugin's admin commands."
default: op
children:
superiorsteed.admin.summonhorse: true
superiorsteed.admin.summonhorse:
description: "Allows the user to summon in a custom horse."
default: op
superiorsteed.horsestats:
description: "Allows the user to see the stats of the horse they are looking at."
default: true
i keep gettin a duplicate recipe error, when i call the method, its always re-registering the recipe, is that the issue?
yeah
oh so for instance connecting to a database?
lol you cant register a recipe twice
what are the use cases
horsestats is not an admin permission
but also
i just tried this, doesn't work
interesting
my alt can only use the summonhorse command only if it has the superiorsteed.admin.summonhorse permission
yes that would be java CompletableFuture<User> loadUser(UUID id) { return CompletableFuture.supplyAsync(() -> database.loadUserSync(id)); }
if it has superiorsteed.admin only then it wont work
@sacred mountain
does anyone know a better way to check if a class was properly relocated? Besides using char[] arrays?
aight. cool, might use when i get onto the userdata stuff
then you can for example do loadUser(id).thenRun(() -> logger.info("loading user succeeded"));
thats pretty neat
i wish java handles exceptions the way rust handles them
it is
o
also a lang tho
by returning a Result<T, E> where T is the type you expect and E is a type that it returns when an exception occurred
bump
children
Allows you to set children for the permission. Child nodes are permission names.
Each child node must be set to either true or false.
A child node of true inherits the parent permission.
A child node of false inherits the inverse parent permission.
Can also contain other permission nodes.```
from the spigot website
yeah i saw that
alright then im really not sure
something to do with your permission plugin maybe
because that yaml is valid
and correct
i mean im using luckperms
java: void something() throw IOException
rust: fn something() -> Result<(), io::Error>
you sure you spelled it correctly?
😍
mysql? or h2
uh wdym
storage type
you can open the lp editor and see if the player has the other permission set to false,
im not sure but luckperms may ignore the plugin.yml children
and only give the player that specific permission
also at the end are you sure
``` is correct
i forgot how the default thing works
yeah
the problem was that superiorsteed.admin.summonhorse was disabled, not unset
even though superiorsteed.admin was enabled
yeah
aight 👍
also how would i define a permission that allows a user to have access to every permission
i mean
giving them the '*'
permission in luckperms should automatically give the user every possible permission
basically a full operator
no like
if you're talking about within your own plugin you can make a permission named superiorsteed.* and give it every permission in the children section
in my plugin.yml
OK so last night I wrote a plugin & got all the functionality down. I'm trying to clean up the code a little. I'd like to move a PlayerEventListener to a different class. The problems is within that listener, I use Bukkit.getScheduler.scheduleSyncRepeatingTask(). Which needs a plugin as a parameter, is there a way to access the instance of my plugin class being used?
im not sure how luckperms manages wildcards but you may be able to do superiorsteed.* without defining it in the plugin yml
nah it doesnt work
yep
you know what aconstructor is?
getter
oh
i misread
the question
sarcasm or legit question? but yes i do
legit question
I'm actually gonna try a getter w pluginmanager
public class MyListener implements Listener {
private final YourPlugin plugin;
public MyListener(YourPlugin plugin) {
this.plugin = plugin;
}
@EventHandler
public void onSomething(Event e) {
plugin.whatever();
}
}
nah
constructor creates a diff instance tho
just pass your plugin instance like that ^^
oh
when you're registering the listener, you pass your plugin instance in the constructor
on a similar note, what's the problem with using a static plugin instance getter when there is only one instance of the plugin anyway:?
portability
wasn't this talked about like 10 times the last few days
general practice
cuz its ugly
how can i remove a recipe ive already registered? I have a recipe with the namespaced key holysword but when i update the recipe with that same namespaced key, the recipe doesnt get updated in game so i had to make a new namespaced key to register the updates. the issue is the old recipe is still registered
is it ok in util classes tho
dependency injection is an industry standard
util classes shouldnt have any state thus shouldnt use a plugins instance
well
singletons are frowned upon in java because they break the concept of OOP
but since your plugin is a singleton no matter what
depends on what kind of util
well
declaration: package: org.bukkit, class: Bukkit
@quaint mantle Can you let someone know @undone axle is mute
we know
learn the check the javadocs or google ur question first pls
we have to wait for md5 to fix it
k
i love google
who doesnt
just realized that discord helpers are basically mods
lol i come here for help when the stackoverflow code doesnt work
because of cool orange color
and theyre the highest discord related role
Me too
Me too
Me too
sometimes i realise that i'm just stupid, and other times i realise that i need to learn more java
its one of the two
Light happens the same to me
or i've made a typo in my config.yml
and spent the past 3 hours trying to figure it out
Lmao i writed me too one time but it get writted 3 times
writted
hablando espanol
^ es un gringo jaja
when i make a custom recipe, should i use NamespacedKey.minecraft or NamespacedKey()?
You know what I am Spanish?
ive been using .mc for some but im not sure which is ideal
make your own namespaced key
that's how it translates in my head after 5 years of spanish in school
the one taking a plugin instance in principle
heheheha
damn you took 5 years
NamespacedKey.minecraft("stone") would be minecraft:stone
i took 4 and wanted to die
Can someone help me with the BuyCraft API? The issue is that when I use it with Gradle, I get a version of the plugin that doesn’t have all the files needed. I got the gradle repository from (https://jitpack.io/p/BuycraftPlugin/BuycraftX) but following it doesn’t include the BuyCraftAPI object as well as others
Also, took spanish for 7 years xD
and is there a way to check if a recipe has already been registered by that namespaced key?
only one way to test
255 I think?
200 something
worked, but now the other listener that I ported over (onCommand) isn't picking up the command
copy/pasted i mean
try {
int i = 0;
while (true) {
player.sendMessage("s".repeat(i++));
}
} catch (Exception e) {
// max is i
}```lmao
i moved listeners from one class to another
to an onCommand class?
alright then
google time lol
I copied a listener method called onCommand() from my main plugin class to a custom enchantment class
you have to set the executor in the main class
erm
can you provide some code
in a paste
paste.md5.net or something the bot is broken
sure gimme a sec
does anyone have good experience with dedicated hosts?
im tryna figure out where to buy mine from
no lol
best bet is something like
is there a way to check if a recipe has already been registered by that namespaced key?
shi idk jus register it again
yeah i wanna avoid doing that in specific lmfao
its more worth it buying a non-rip-off plan from a company like amazon or google
ive looked at hosts like pebblehost and reliablesite
they will have processors capable of running minecraft
see that so
gcp has a free 3 months, you could host on them and switch every 3 months if you dont have a good budget
and the same card can be used multiple times
you can setup minecraft on a linux machine, just simply install java and download what you need
i saw this reddit post about processors and saying that I should get a processor with 4 cores
i think it's possible to do async things, but as i'm learning, it doesnt work very well
an eventhanlder
on your command
and why is there a command in the same class as your listener
yeah ik they were saying 1 core per server
go to #help-server
onCommand needs the annotation @Override not @fresh templetHandler
sorry to the person i pinged
lmfao
ok mb i've been copy/pasting
thats happened so much
but when its had the wrong @ label it still worked in my other class
you have an enchantment, listener, and command hanlder all in the same class
b/c theyre all related
i dont think thats good practise
@override gives an error
ok I can break it into classes
public class CreepersBane extends Enchantment implements Listener, CommandExecutor
if you really want to keep it together
but i wouldnt advise it
Presumably because you haven’t included the resource containing it
i dont even know if that works
It’ll work, but that doesn’t mean you should do it
The api doesn’t contain implementation
CraftPlayer and NMS are implementation
You’ll have to use buildtools to get it into your local maven repo
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
i thought olivo was the bot for a sec
?status
Same lol
Hmnn i think the bot is down
How to get a list of goals of a mob in nms the method i used is terrible
its not through intellij
Tf
when displaying command parameters what is the convention for a parameter with two words
/updatehorse stat <stat name> <value> or
/updatehorse stat <statName> <value>?
Hello, i'm trying to use
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>v5.0.0-alpha.12</version>
</dependency>
JDA as a dependency in my plugin but maven can't find it because it looks on the wrong repository (it looks for it in the spigot repo)
stat_name
alright thanks
put jitpack above spigot in the repos
That shouldn’t matter
ok i'll try
it happened once to me
Is it in your repos right now?
but i see ur issue
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.DV8FromTheWorld</groupId>
<artifactId>JDA</artifactId>
<version>v4.4.0</version>
<exclusions>
<exclusion>
<groupId>club.minnced</groupId>
<artifactId>opus-java</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
this works for me
It’s not supposed to include the v by standard so they may have fixed their versioning scheme
From their git ^
Where i can find a free redis host?
It's also on maven central so you don't need jitpack
i tried to use that and it didnt work
ohh cuz the one on maven doesnt use v
that makes sense
rack is right, check what he sent above
yep
I wouldn’t trust any free host of anything
^
entity.goalSelector.getAvailiableGoals
Just for testing pupoues
can't you host one on ur own pc?
I dont wanna host it just for testing
Why
get a vps and host it there ig
Who cares it's like running a local spigot server
Takes 10 seconds to spin a Redis instance up on a docker container
You’d be done by now
so i will be able to clear it up also?
u wanna clear all the goals?
yah i want to modify them from the base
just create a custom entity in that case
extend the entity that u wanna modify
and you have free control over eveerything
public class NewMob extends Zombie like this?
am I stupid or should this work fine?
@Override
public int compareTo(final @NotNull McVersion other) {
if(this.major > other.major) return 3;
if(other.major > this.major) return -3;
if(this.minor > other.minor) return 2;
if(other.minor > this.minor) return -2;
return Integer.compare(this.patch, other.patch);
}
?jd-s
yes like that
isn’t there redis cloud
might come with GitHub student pack
Bot is down VERANO
Yeah but i cannot find it
Oh i didnt notice, my bad
yah but still has the old ai of hitting players and i want to rebbot it and for that i need to get the list of his goals and clear it which i am unable to do it
You said it was down like 5m ago lol
shoulf work fine
override registergoals
Me?
i created a small method for it but it ruined my plugin lol
but i cant access the main mob file
He went to toilet and im sending random messages with his pc
?learnjava
you're asking basic questions but digging into nms
the file is read only
you dont have to access zombie.class
just extend the class
override method from zombie.class that u wanna change and u can write your own method
I broke it up into classes. much better. thank you for pointing that out!
bad boy
Are you trying to use nms?
Did you build 1.12.2 with BuildTools?
Guess the install jar failed
You run the install command while being in the folder
With this
Normally BuildTools should do that for you but I guess it didn't for some reason
First one
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
org.spigotmc
artifact is spigot and version is 1.12.2-R0.1-SNAPSHOT
jar
Should work
spigot jar
"string here "
whenever i override a method from nms in subclass it gives error and in the error it says no documentation found
Anyone has clue how Kelp age works
what I noticed it just throws random age number from 0 to 21
Can I get an entity before it gets unloaded in a chunk (Walking into it)
when you want a kelp it ages to random number from 0 to 24 and when it will grow the above kelp will increment by one
thats why you may find kelp of different ages
so what is fully grown kelp then
when the age reachest 25 ti stops
like I am looking for a way to detect
if kelp is placed by player
or naturally grown
there is a blockplace event you can get the block placer and what block he placed
is there a way for me to see when a specific thing got removed/added from/to the api? i.e. can i see in what version the TabCompleteEvent was added?
Why are you installing 1.8.8 jar in to version 1.12.2
lmao
string aren't you the person who also tried to install CrackShot as your GTA plugin?
hm
someone did mvn install:install-File ... input=CrackShot.jar output=TheirOwnPluginName
must have been someone else then
External libraries
How is player.displayName() used? (replaces .getDisplayName())
returns component, i actually only want to get the display name
What are you going to use the display name for
put it in the name of a bossbar
also that's Paper API so keep that in mind
yes
You should be using Components for the Bossbar too
So simply append the display name component on to the bossbar one
Did you get the install file to work?
Did it say success
Are you using Intellij?
In the maven tab on the right hit the reload icon
Have you configured Intellij to use another .m2 location
It's the maven local repository
try File -> Invalidate Caches -> Invalidate and Restart
sometimes that helps when intellij is stupid
is it bad practice to have a class like this which all my Test classes then extend?
public class UnitTest {
ServerMock server;
MockPlugin plugin;
@BeforeEach
void setup() throws IllegalAccessException {
server = MockBukkit.mock();
plugin = MockBukkit.load(MockPlugin.class);
JeffLib.setPluginMock(plugin);
}
@AfterEach
void destroy() {
MockBukkit.unmock();
}
}
run mvn clean package -X and send the full maven log