#help-development
1 messages · Page 760 of 1
fucking hell just check for getType().isAir() then
I cant, it is mcp
if i can i dont know how to
or LIGHT ig
ok i didnt know that existed
mb
doesnt work idk
?
well how does it not work
are you just trying to check if there's a block right under the player
isAir is returning true when it shouldnt
yes
i recommend picking a smaller distance then
like checking 0.1 blocks under the player instead of 1
alr
ur doing the wrong calc
?
You could also ray trace straight downwards
use subtract not add
but negative no?
Well. He is adding -1
that doesnt matter
wont they reverse it and add 1 instead of subtract or am i not remembering correctly
nah it works with negative numbers too
honestly i dont even know why there's a need for both add and subtract since you can just add negative numbers
??
i did -0.5 and it does not work
it depends on the context ingame
would need to see the rest of your code
like when does this bit run
@Override
public void run() {
if (Main.cooldownHandler.isOnCooldown(jayUUID.toString())) {
return;
}
if (jay != null) {
if (jay.isSneaking()) {
final Block block = jay.getLocation().getBlock().getLocation().add(0, -0.5, 0).getBlock();
if (block.getType().isAir()) {
block.setType(Material.PACKED_ICE);
new BukkitRunnable() {
@Override
public void run() {
if (!block.getType().equals(Material.PACKED_ICE)) {
cancel();
}
final boolean notOnSameBlock = !jay.getLocation().getBlock().getLocation().add(0, -1, 0).equals(block.getLocation());
if (notOnSameBlock && block.getType().equals(Material.PACKED_ICE)) {
block.setType(Material.AIR);
cancel();
}
}
}.runTaskTimer(Main.plugin, 40L, 10L);
}
}
}
}
hey does anyone know a plugin that turns the whole world (its not a default world, its only 7by7k) into a map that players can look at?
Dynmap?
i guess
so you're sneaking and then jumping or something?
what are you wanting to do here
Yeah doubt something like that exists
and what is dynmap?
okay
What is this supposed to do?
What action is called in InventoryClickEvent whenever I place a block on the same block in an inventory
place ice under him if he crouches and there is no block under
and removes 4 sec later or whatever
did you check if this code is running at all
You will have a ton of problems if you just throw this into a single method like that
it is, the problem was, it was placing ice when there are non-solid blocks under
normal blocks it didnt place ice
then what should I do
how can i apply the patches of spigot to bukkit
thats what you want though, right?
have it place ice with no solid blocks under?
air?
i opnly want to make it place ice when there is air
nothing else
not even a moss
or ladder
or anything
and it detects things like moss as air for some reaosn
and its still replacing those blocks?
someone tell me
yea
run buildtools
i am doing it
but when i did it on my old laptop it just gave me a folder full of .patch files
honestly i have no idea, should definitely only be working on air
you sure you got nothing else running that might affect that
or are building the jar at all
i am sure
no i want to make a custom server software supporting proxies
i am building
so you want to make a fork
at first I thought it would be because moss hitbloxes are kinda weird
yeah
but it doesnt work on shroomlights too
you make patches then, same way paper does
yeah
?stash
Read the Readme files of spigot and craftbukkit
no
i want to modify the bukkit files
then i want to apply the spigot patches so i get a custom software that supports bungeecord
item rarities, item abilities... basically hypixel skyblock wish.com edition
You don't need to patch thr server to do any of that
that way it would be hard
It'd be just as easy
You're going about things the wrong way if it's harder
Maybe you should re-examine your design
you think hypixel are adding their stuff inside the server? no they use plugins
trying to add all of that inside the server is way more work and just wrong to do
Well hypixel is weird so you never know
they arent that weird
But I'd assume they mostly use plugins with custom api
well yeah, they probably have custom api stuff but they deffo arent adding the entire system to the server
Ofc not
Pattern urlPattern = Pattern.compile("https?://\\S+");
Matcher matcher = urlPattern.matcher(message);
StringBuilder builder = new StringBuilder(message);
while(matcher.find()) {
builder.replace(matcher.start(), matcher.end(), "<hover:show_text:'<gray>Klicke hier um den Link zu öffnen'>"
+ "<click:open_url:'" + matcher.group() + "'>" + matcher.group() + "</hover>");
}
return builder.toString();
}```
Does somebody know how I can change the StringBuilder's input to the changed message after 1 cycle of the loop, so that more than 1 link can be properly replaced?
no
they have a way of loading servers based on the id assigned to them
like theres no skyblock-hub-deepcaverns1, its M12ab, their servers support any type of gamemode so that M12ab could be a housing server in another time
Either way If you refuse to examine your design read the Readme in stash for spigot
Sounds like you need a proxy plugin more than anything
they use plugins
each server has every plugin type
they just dont enable them all
in that case they have a custom server software handling plugin loading
@echo basalt explain how hypixel stuff works
Lol
They have server templates ye
All their minigames are on a single project because the minigamelib they use is just plain simple
I'm not home rn
i think im aiming too far
Pattern urlPattern = Pattern.compile("https?://\\S+");
Matcher matcher = urlPattern.matcher(message);
StringBuilder builder = new StringBuilder(message);
while(matcher.find()) {
builder.replace(matcher.start(), matcher.end(), "<hover:show_text:'<gray>Klicke hier um den Link zu öffnen'>"
+ "<click:open_url:'" + matcher.group() + "'>" + matcher.group() + "</hover>");
}
return builder.toString();
}```
Does somebody know how I can change the StringBuilder's input to the changed message after 1 cycle of the loop, so that more than 1 link can be properly replaced?
what
message contains link
link need replace
so link click
link doesnt click with code because after 1 cycle old values get used
IntelliJ is feeling depressed today
Perhaps it should seek some help
Stop forcing me.
Im sowwy fwow abwoosing my pwiviwedge uwu
🤗
my roman empire is this theme
Gets me back to Eclipse
Nah, just like it.
gives me motivation
As such, yes. It takes me back to the days when I used Eclipse.
when creating a plugin for registering on the server can use the player's ip instead of nickname?
or i not can get his ip
dont let him login if his ip not match
Authorization with active sessions. - what this mean
just use uuids
Residential routers often have dynamic ips
So the average player will not be on the same ip forever
i used to set the ip to always be the same on the given mac
MAC randomization :clueless:
thank you, very insightful
i didn't had that happen, i always had the same mac
you can pick whether you want your MAC randomized or use the device's MAC when you connect to a network on android, windows or anywhere really
it's randomized by default on my pixel even
how do i pl;ay particles from a note block
for good def need use token but i think i not can do this in plugin
Just use a caffeine cache and map an IP to a UUID for 15 minutes or so.
The default intellij themes are so bad
Nice taste
public class PlayerSessionManager {
private final Cache<InetSocketAddress, UUID> cachedIps = Caffeine.newBuilder()
.expireAfterWrite(30, TimeUnit.MINUTES)
.build();
// Call this on PlayerQuitEvent
public void cacheSession(InetSocketAddress address, UUID playerId) {
Preconditions.checkNotNull(address);
Preconditions.checkNotNull(playerId);
cachedIps.put(address, playerId);
}
// Check this in AsyncPlayerPreLoginEvent
public boolean hasActiveSession(InetSocketAddress address, UUID playerId) {
Preconditions.checkNotNull(address);
Preconditions.checkNotNull(playerId);
return Objects.equals(playerId, cachedIps.asMap().get(address));
}
}
This at least prevents players from having to log in again if they logged out in the last 30 mins.
omg what Preconditions.checkNotNull is a thing
Yeah i like googles Preconditions a bit more than the Apache stuff
is that just like if (address == null) return;
Preconditions is meant for fail fast. It throws an exception.
Often used like this
public boolean hasActiveSession(InetSocketAddress address, UUID playerId) {
Preconditions.checkArgument(address != null, "Address cant be null");
...
}
It thows an IllegalArgumentException with this message if address would be null.
Spigot uses checkArgument a lot
whats the point in all these
Yeah checkNotNull is more for fast fail checks like this:
private void someMethod() {
String aValue = Preconditions.checkNotNull(someOtherMethod());
}
private String someOtherMethod() {
return "...";
}
is Cache like a hashmap?
Internally it uses hash tables. So its like a HashMap where you can define after which time objects get invalidated.
Could someone tell me how I can compile my plugin into a Jar file please?
clean package install maven
will it reset on restart?
no need for install in most cases
Which IDE are you using? And do you intend to use maven/gradle?
do you use intellij?
yes
Nop
Yeah ofc. Everything in a language 'resets' on restart unless you write it on a persistent medium.
gradle
Which IDE?
what is IDE
whats the best way to store like strings even on restart? i want to make like a more advanced msg plugin that like if a player is offline they get the msg when they go online. i was just gonna store it in like csv files is there anything better
integrated development environemnt
I missed a wagon lmao
where you write your code in simple terms
Tbh I'd suggest using a proper IDEA + maven tbh
Well on that department im out. Never seen VSCode+gradle.
In the terminal you can just run gradle build
I do not know any Java Dev that uses VSCode for java dev
oh okay
intellij ftw
IntelliJ custom theme + maven ftw.
realll
Files are fine. Databases as well. Doesnt really matter.
But those might help you:
https://www.spigotmc.org/threads/guide-to-async-io.623371/
https://www.spigotmc.org/threads/working-with-data.562421/
I try ty!
i made this silly little user info with csv for my art bot
I hope you have a good reason to manually glue those components together...
write a pattern that matches an http link 1 or more time (which you can do if you lookup regex classes)
what?
Ah i see what hes doing. Detecting links and auto wrapping them
how to build an app in IntellIJ with maven
You should learn regex groups and regex classes
i dont think the pattern is the problem
so it would have manifest.mf
its works perfectly with 1 link
It didn’t work with multiple links?
The maven shade plugin has a configuration for this if you use it already
what
do you know how i can fix it?
i don't
@inner mulch you’ve linked spigotmc main page like 5 times lol
i just code JavaFX app with SceneBuilder
Oh that’s what you’re matching against?
How do you provide JavaFX? Its no longer included in Java.
???
i have a method
i put input
i get output
easy
IntellIJ -> Create Project -> JavaFX
Show your pom then
Thats cool and all. Now pls show your pom.xml 🙂
My iphone wants to open that in zoom
Your pattern is the fault
why
how do i fix it?
run mvn jfx:jar to build an executable jar.
how do i do it
The jar will be placed in target/jfx/app
Either just write this in the terminal or go to the top right corner and click on the maven icon.
Then either under Lifecycle or under Plugins
Does anyone know why i get 309 project? it is ai mcp project? all my com.google, com.mojang,authlibm org.apache and org.lwjgl imports arent working
maybe it's javafx no
try it
Is it a maven or gradle project?
Just a regular project
screenshot all goals in the javafx plugin pls

heyo guys, how to change mojang auth server url to my own?
run and jlink
Well... delete it then? And do something else.
It is imported from eclipse
What do you mean?
Idk... try adding this to your build plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>path.to.your.main.class</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
And then run mvn clean package
@inner mulch because you use .group() for all of the iterations
You probably wanna declare explicit groups and then you can index them as well
What is his problem
.
ig i should install JFX from somewhere no?
who knows what events in bukkit api to cancel to prohibit interaction with everything in minecraft. Example: setting fire with flint, working with bone meal, trading with a villager
JavaFX is so weird
PlayerInteractEvent
if you want it to work and you're shading it with maven you need to have a second main class
a Main and ApplicationLauncher
and you must launch it from your main which only launches your ApplicatoinLauncher
wtf bruh
what does this mean?
so be warey
i not can cancel interacting with fire, setting fire, and growing with bone meal
can you explain
well, you also block ignite, bonemeal stuff and waterplacement
I don't evne get why it works if you do that
hsa sometihng to do with how JavaFX modules work though
JFX is rubbish
JFX itself is great imho whatever it has to do with those modules is the real rubbish
compile with mvn:package (make sure you shade javafx) then set the launch to the new main class (which simply launches your application)
your second main class should look like
public class Main {
public static void main(String[] args){
Application.launch(ApplicationLauncher.class)
}
}```
or something along those lines
Anyone?
what build system are u using
None
gl ig lol
IT is just a regular project
My thought as well
I dont even know what that means. What is an eclipse file?
Mcp is for eclipse but you can add it to intellij but only if it is a "normal" project, else it wont work
Seems like a user issue
Yes ofc. You cant just load a loose project with maven.
You will most likely have to go into your project and manually add every dependency.
@inner mulch do something like (https?://\\S+)
I would simply just delete the project and look for something else
then u can take the group with Matcher#group(index)
Do you know how i can fix it?
not to be rude but did you even look at the code
yea
i use the exact thing
Probably, but I am way too lazy to look into it
Yeah i have tried but it isnt working still
no u should wrap it in paranthesis @inner mulch
Oh okay fair
because regex in java captures everything thats inside parenthesis
with the group functionality as its so called
what is parenthesis
()
if I have the following regex
(\\S+)
and I match it against Hello Java !
Matcher#group(1) gives Hello
Matcher#group(2) gives Java
Matcher#group(3) gives !
yea, but you capture every link as a group
and then you just wrap it with the hover and the other click stuff
Anyone?
can i make os using only C/C++?
Sure
no, you need a linker script and some minimal assembly targeted for the architecture you're writing the code for
i tried make os on assembler, but nothing not working
for bootstrapping
I mean he can probably find some minimal bases that he can just copy
sure, but at that point it isn't only c/c++ anymore
There is no architecture out there that isnt covered by some standard lib
???
you still need to bootstrap into the kernel
give it a fixed address, set up stack sizes etc etc
what do I need to write a kernel?
time and pain tolerance
A proper suicidal avoidance plan
I know how to make a simple 64-bit program that works when loaded from a flash drive, but I don’t know how to combine C++ and assembler
Isnt that... the task of the bootloader?
why not just use Matcher#replaceAll(Function<MatchResult, String>) ?
literally just matcher.replaceAll(match -> "whatever " + match.group())
There is not much to combine. You simply read/write into memory addresses. Some are designated flags or IO ports and some
cause interrupt service routines to fire.
wait does it replace different links as well?
jshell> var pattern = Pattern.compile("https?://\\S+")
pattern ==> https?://\S+
jshell> pattern.matcher("hello https://www.google.com/ world https://youtube.com/").replaceAll(matchResult -> "(cool link " + matchResult.group() + ')')
$4 ==> "hello (cool link https://www.google.com/) world (cool link https://youtube.com/)"
which is part of the OS
I thought the bootloader loads any OS into memory. Was it part of the OS itself?
it loads a kernel
os is the greater picture, kernel + bootloader + maybe device drivers etc etc
Dont remember. Really didnt care when i learned this...
i can sympathise lmao
How much will performance drop if my OS only has one driver?
uh that isn't really an answerable question
But sounds like this is right. So BIOS loads bootloader, bootloader loads OS kernerl, then kernel takes over
yeaaa, its for java 9+
what does this tell me?
That you are using some old ass java version to compile
Project is set to 8
^, prob wna fix the language level
File > ProjectStructure > Language level
Make sure source and target of your maven project are set to 21 as well
Can someone help me?
guys
how?
i'm using nasm
all my os code:
default rel```
lol
i'm serious
who can really help me with this project?..
what are you even trying to do
i mean, if you're expecting someone to hold your hand through it, it's unlikely you're gonna find anyone
if its super duper simple I might beable to help
but my knowledge of assembly is well very limited
loader for my OS in Assembler, which will load C++ files to create a graphical shell
there are tons of resources out there about this stuff, there was a uh an MIT project that was like a very minimal OS, more so for showcasing and learning
oh yeah have fun lmao
I can pretty much only add numbers and print them :P
and take user input 
as for calling C code from assembly, in your assembly file you define an external symbol, something like start_, then in your C/C++ you define start_ as a function (in C++ you need to extern "C" it cuz name mangling goes brrr) and then you just uh call it and link it together with the linker
https://github.com/mit-pdos/xv6-riscv very neat
huh
everything initially boots in 16-bit by default for legacy compatibility, you have to change over to 32/64 bit mode with some additional instructions
although from what i hear 64 bit is a bit of a faff
than
dm me if you can help
i have no idea
My professor wants us to write an O(log n) method for checking if data is sorted in a ascending or descending order. How can I make my algorithm preform worse
public static int checkSortOrder(int[] arr) {
int left = 0;
int right = arr.length - 1;
int mid = (left + right) / 2;
System.out.printf("Left: %d Mid: %d Right: %d%n", left, mid, right);
if (arr[left] < arr[mid] || arr[mid] < arr[right]) {
return 1; // sorted in ascending
} else if (arr[left] > arr[mid] || arr[mid] > arr[right]) {
return 0; // sorted in descending
} else {
return -1; // all same number
}
}``` I don't know if there is any form of sorted data that could defeat this logic
I made about 3 runs through randomly generated arrays of varying orders with a statement which caused a failure of the code if this failed, however it didn't over around 100,000,000 trials.
I need to use a while loop ik that much but 🤔 eliminate half the array over time seems unecessary for this tbh
well I'll just hope nothing like this is on the exam idk if I can think of a way to do it worse idk if that's for the better or worse
create a bios bootstrap first if you dont want to shoot yourself in the head
how come maven can overwrite a file allegedly open in the jvm but copy paste cant lol
maven doesn't give a shit™️
can i put that on my cursor
depends on your OS
windows so probably not
if you're using windows they baby you so you can't do stuff
im using windows cuz half of the games i play dont run on anything else
I play minecraft
I even got genshin working on linux when I played it a year back
i play pokemon goooo
That's like 90% of all games I play
ah f.... anyone know how to deal with this?
Caused by: java.lang.NoSuchMethodError: 'double io.github.moterius.Reach.PlayerHandler.getReach(org.bukkit.entity.Player)'
return ""+ io.github.moterius.Reach.Echo.getHandler().getReach(online);
The decompiler says the method exists
(this is in a PAPI extension btw, i ran 'install' on the plugin providing the method)
(yes the plugin is active on the server)
Do you need to check if its sorted in the first place?
bc if i hear "sorted" and "Olog(n)" then the first thing that comes to my mind is a binary search
ahh yeah it is binary search I figured out I actually read the question wrong however, my method still works in O(1) to perform whether or not the array is sorted or asscending or descenidng I simply had to then impliment a binary search for both of the two cases
fairly easy fix once I understood the question lol it was written quite strangely
Average uni question...
bleh i got nothing. the source + decompiled code says the method exists, so it wasnt optimized out. I also restarted my server, the error's still persisting
wtf java
are you sure that you're checking the right jar?
yes
its only that and PAPI there
wait tf
right i changed the denominator, ill fix that
brb
yup im just a idiot, didnt replace the old plugin, and it hit the wrong version
💀
see i thought i was smart naming it -dev to not get 10000 versions in the .m2 folder but i forgot i dont manually copy it so i had 2 versions and it loaded the old one 💀
haha thats creappy asf
why dont you directly auto export it to plugins folder? It dont let type of issues happen
thats exacly what im doing and why that happened mate
i dont change it from the default snapshot name until i run install
so it had the -snapshot name
and it put the -dev next to it
cuz i dont want a full .m2 folder
rm -r . --force 🤨
get out u linux user lol
haha linux >> 😂
You can just use git bash or smth on windows
Last time i deleted full OS without realizing using the rm -r 💀
There is protection for that? It should preserve root by default
i was working on a VM with fully perms
Should still preserve root
how can i save 2 values under 1 configurationsection in a yaml file?
chatData.getConfig().getConfigurationSection("support").createSection(player.getName()).set("seefiltered", false);```
but i always is the lower one?
Yeah because you create a new section both times
The second time it overwrites the first one
thx
Hey, I want to ask if the Custom Data Types section of this page is doable in Spigot as well.
https://docs.papermc.io/paper/dev/pdc
Yippe thanks
You can create custom persistent data types on your own, or use one of the many libraries available which have implemented those which match your needs. Learn about more persistent data types here: https://www.spigotmc.org/threads/more-persistent-data-types-collections-maps-and-arrays-for-pdc.520677/
Everyone loves more pdc but what about lesspdc
only string type
😭
byte[] can in theory store everything
yeah
1 byte can store something
ig if i put a lot of keys i can store entire itemstack with all nbt, pdc and enchantments
if i map each nbt tag to a byte number
and each enchantment
but that would require like 9999 keys ig
Ah yes use the keys for storage
yup
other way you can eat all 256 keys in your plugin
and it would be incompatible with other plugins
What? PDC keys are limited too?
Would it be wired to add some games like coinflip into a server core?
can i store tiktok videos
ofcourse!
why do you want to store tiktok videos?
its a joke lmao
Ah okay lol
Why? I have seen people reproducing twitch lives on their server using some sort of frames
store dn
And Images are loads of Pixels
Im not lying i seen a server reproducing live video from twitch inside minecraft server
dont ask me how they did that but thats amazing
Doesn’t seem that hard
Stream the frames to the server
Convert each pixel to a rgb color and apply it to a Unicode symbol that looks like a square
Slap them on a text display
video display when
can i store the entirety of quora and yahoo answers
yahoo, is that something eatable?
can i store Coll1234567
why?
it was sarcasm
oh i dont understand shockes sorry man
is there a way to disable autocomplete for commands players don't have permission to use?
ideally wanna hide what plugins I have on the server
If they don't have the perm they shouldn't be able to see the command at all
i've already managed to hide colon commands
Assuming you aren't on old.old
well worldedit, tebex, luckperms, placeholderapi all show in autocomplete
commands that don't have a permission will show up, since there is no permission to deny
^
They probably do a manual perm check in the code
Which spigot can't automagically detect
it really just depends
why not
Because the code would need to be turing complete and impossibly advanced lol
Sounds like excuses to me
recomemnds command apis please! If i can link to the site perfect if not just their names. thanks
Cloud is great, https://github.com/Incendo/cloud
i finally get tired of trying creating my own you were with the truth when i asked some weeks again
what? i could cach fr33
,
oh okay, that makes sense. sorry man
.
for this
just let the user disable commands in the config
and and event
not sure btw who started this conv
i just peaked randomly
oh okay, they can just check if the !Player#isOP(), if not returns the command completation
are there no nms mappings that cover functions
.
that also, but i assume he wants some to show
yeah thats true tho
So no option as you said rather than a disabling list
Im sure spigot already provides that, doesnt it?
yes
have worked before with recursive commands?
in what sense?
now that we talking about commands and completationms haha
a command has a root, and if we disable the root so does the whole tree will fall
/command subCommand-1 subCommand-2 [<aguments>]
well, you can have multi arg black list
no no i mean, how would be the logic for the tree
something like
- command test * *
im wondering to know how to design correctly the logical part for the tree
Let me translate to my lang if meakes sense what trying yo to say
Note that due to client changes, if the sender is a Player, this event will only begin to fire once command arguments are specified, not commands themselves. Plugins wishing to remove commands from tab completion are advised to ensure the client does not have permission for the relevant commands, or use PlayerCommandSendEvent.
Oh that screappý, microsoft is fucking up the game
oh
there goes the idea
so the list is sent on join
shouldn't there be another event for this?
PlayerCommandSendEvent
i think?
mhm
Can you give me recommendations when making a command system in tree format? Since I don't know how to handle correctly the parents of the parents, that is to say how to know which is the root of the tree (initial command), do you understand?
lmao my messages changes a lot using the translator they even make more sense to myself when re-reading
hmn
i have 2 classes the SingleCommand and ParentCommand, both of them contains a getParent() method which will returns their parent
The problem is that i get into an infinite loop of getParent() method 🤔
yeah well, don't link nodes between each other in circles
then you should reach null at a point
im talking about trees not binary trees. Because binary trees ends in a circle of things
If that what you mean
well, but there's one way you can get infinite loops
im getting an infinite loop causing a overflow exception
I just created this structure
in the stack trace
Binary tree should not end in loop lol
i know but an ending node of an ending, can point to the main starting
trees usually only grow in 1 direction
i don't know trees irl that loop on themselves
this binary tree
They can link any node from any node, to the tree start
but forgot about that, because im not doing that
Im just trying to fix my issue related to getting the parent of the command/argument or sub command
yeah just forgot
I have this structure fr33
SingleCommand -> they work as spigot one, they can/not contain explicit arguments
ParentCommand -> they act as an executor, where they can contain others ParentCommand or SingleCommand. Arguments here are implicit
faction - ParentCommand
faction list - SingleCommand
/faction points - ParentCommand
/faction points add <player> <amount> - SingleCommand
The problem is the next, how would i know in the ParentCommand parser if its a sub-command of a sub-command of a sub-command, creating an infinite loop
Because my idea is to show the help list in a progressive way, that is to say if the initial command is /faction, I would only show the names of the arguments associated to it, in this way:
/faction list
/faction points
pd: If you notice, nowhere I show the associations of the sub command points. Only in case of executing /faction points it would show all the names of the associated arguments. Do you understand?
i think there's a design issue here
right, can you mention it im free to listen
I just want to fix it hehe but ofc improvee my design
sorry if it sound rude
because you treat commands as parent and single command, instead you could think about it as:
/root node1 node2 arg1 arg2
you need 2 classes here
Right, do you have more recommendations
command node and a command executor
yeah what i did, where my SingleCommand was the normal executor
hmn
wait
My SingleCommand is just a normal command, which dont have any executor
But on the other hand, ParentCommand is an executor which can associate more executors or SingleCommand
Because SingleCommand means a single node applying to what you expalin me
i don't know, just look some of the command frameworks
oh, no man i cant understand them
They are too messy they contain thousens of classes
I take the design idea from Luckperms
is /summon not triggering an entityspawnevent for non living entities intended behaviour?
Doesn’t seem like it
What’s people working on I’m bored haha
I'm making empanadas
its food
I thought it was a panda equipped with an EMP weapon
Ah 😂😂
I'm writing an IRC daemon - or at least trying to. My mind wanders in all directions sadly
My mind dose that when I’m doing something ngl, I have to write things down to work on a certain thing with music blasting
There used to be a time when I used to be productive and have no music in the background... But that was only because I had like 8 hours of free time a day
Why does the browser just close as soon as it visits the web page if I change it to google.com it doesn't ```py
def sign_in():
chrome_driver_path = 'settings/chromedriver'
service = Service(chrome_driver_path)
driver = webdriver.Chrome(service=service)
driver.get('https://login.live.com/')
email_input = driver.find_element(By.NAME, 'loginfmt')
email_input.send_keys('test@test.com' + Keys.RETURN)
driver.quit()
Are you sure this is the right discord to ask this question?
Inb4 this is groovy or something
im sure someone knows python here
Some webpages take longer to load. Not sure if driver.get wait properly long for loginfmt to be present
You can change findelement
To try for like 5 seconds or whatever
It quits because it has determined you to be a bot. Google is not allowed to stop crawling bots hence google works since they can never be too sure on what bot you are employing
You need to set the headers appropriately if you want it to not be so obvious
So use the url they provide me on a normal browser?
Fairly certain selenium just uses his chrome browser
still does it
What happens if u remove driver.quit?
It does but it doesnt use all the settings from said browser and instead need to feed in the settings
Well i would need to go back and read documentation to be certain since it changes every so often
.
still closes
But i am pretty sure its microsofts anti bot stuff kicking in
Alright then probably ^
My work uses microsoft services lol
And its annoying even if you are not a bot
Almost got locked out of my work account because of it
If you are making an app to login
Why are you not using their api?
Bet the captcha is what is catching you lol
because what I'm wanting to do can't do it through requests
And what is it you are doing that makes that impossible?
adding a credit card to the account
You can do that with api access
Its no different then giving access to apps on some other sites. First you need to apply for a developer access
And then from the user account allow said app access
oh that's too much work
mfw
Well that is security for you lmao
how so
Wouwd wathew make a cwawing bot den deaw wif a simpwe API access fing
To prevent rogue apps from doing whatever they want
Well good luck then. The way you are going about it is almost impossible to do otherwise
Because that portion of the account is more secure then just getting profile information for example
Should the sleep time always be the same or does it not matter?
Hello folks, I'm working on a project that uses NMS code, and during the mapping, all versions from 1_8_R1 to 1_16_R3 worked perfectly. However, when I got to version 1_17_R1 and later, the code started giving a strange error. I've tried resolving it by invalidating caches, restarting IntelliJ, recompiling BuildTools, deleting obsolete versions in repositories, and various other methods, but none have worked. The error literally consists of a cannot access net.minecraft.EnumChatFormat when I try to compile the project using mvn package, and it's not just with the EnumChatFormat class; it happens with all NMS imports from the respective version. Could some kind soul help me with this? (It uses mapping module system)
I tried importing the class directly in the code as net.minecraft.EnumChatFormat, and it worked. However, as soon as I did this with all the necessary imports, the error returned.
i'm not using <classifier>remapped-mojang</classifier>
Well if they were in byte, not a string, then they could have been limited
you can't just use the built jar directly now, that's just a bootstrapper, the actual server jar is inside the built jar, you really should use the specialsource-maven-plugin + remapped-mojang
?nms
I really hope this solves it because I've been having this error all day xD
Thank you from the bottom of my heart regardless of whether it works or not ❤️
So for some reason its unable to find ```
next_button = browser.find_element(By.CLASS_NAME, 'primary--DXmYtnzQ')
next_button.click()
Its probably a javascript
?bootstrap
Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.
Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163
so I should look for the js script then
Does that id change every time or smth?
no
Not only that you may need a js engine to have it load
Do note there is the potential of you getting banned too
Not sure why you need a bot for this but it seems nefarious
Anyone know what is this sound called?
https://www.youtube.com/watch?v=Jxwg708kAzI
In this video I provide you with Minecraft Rare Achievement Sound Effect. So, if you want to use Minecraft Rare Achievement SFX, then this video is for you (these sounds are the ones currently being used in Java, Bedrock and Pocket edition in Minecraft).
If you found this useful, then make sure you leave a like and comment! Also, don't forget ...
why? It aint a bot its me
tbh idk where the js is being loaded
wait
its an iframe i think
nvm its a modal
its so weird
it hovers over the button just can't click it
You are making a program to do something on your behalf. That is a bot. I cant think of a good reason why you need a program to add a credit card to your account unless you were doing something nefarious
So have fun i suppose lol
im doing nothing illegal
As far as you say and we know. But that reply right there indicates otherwise.
I mean your stating that I'm doing something "illegal" with the word nefarious
As i said, there is no good reason to need a program for adding a credit card to an account you have access to when you can just log in and add it. Not like its overly difficult to do such things.
Why wouldn't I defend myself when your accusing me of something?
Nefarious doesnt mean illegal. It is another way of saying bad or up to no good
it also means criminal
No it doesnt
I never said that you did. But it wouldnt surprise me if you were.
To be fair the alternative definition of nefarious is wicked or criminal. But it really just means another way of saying bad and not necessarily criminal lol
Just in terms of context easier to apply criminality to it i suppose
This just annoys me that it's just hovering over it
But as it stands i still cant think of a logical good reason you need a program to add a credit card to your account. What i think you might be doing in my opinion is devising a way to swap out credit cards as you come across them without needing to log into your account to do it. In other words to speed up efficiency on that end.
Not all of us here have a sainthood background you know lol. Something to be aware about. But i would love to here your good reason for needing such a thing.
So you know how xbox has a limit spending then they block your card from being used again
They have a limit on spending?
yes
What im doing is everytime my card gets blocked i swap it out with my other one so I can still buy stuff while other one is buying unblocked
Never heard of such things. I spent literal thousands with microsoft and they never said they didnt want my money
They put it under "suspicious activity" when you spend so much in certain amount of time
Are you not verified with them?
You can get verified with them?
Sure. You just call them up and may or may not need to send in ID
oh
Depends what they want. But this proves to them you do in fact own the account ie they can associate it with an actual person
And it should remove most if not all the limits lol
I think these days microsoft also requires 2fa
ah they have been blocking my cards for the past month
it takes about 48 hours for it to get unblocked
I encountered something similar years ago with sony until i verified who i was with them
Never had an issue since
Hence why Im making this
how much money do you have to spend at microsoft stuff
I spend a shit load on micro transactions
why
So I can buy stuff
I have a ps5 and 4 ps4's
nahh
Well i do feel better about your reasoning. Not as nefarious as i assumed lmao
🤷
The worst part is that it's the last part before adding the card then its completed
Well just know we do get people in here who try to get help in doing criminal stuff
Not that i was saying you were just wasnt entirely sure lol
your good
Not entirely sure if you can automate the process by just sinply loading the page
Might need to send it via headers or a get
Don't think its possible via headers
I've already to got it to enter the card details its just the add card button
Couls just make a macro for the mouse
How would that work with page loading?
So last step is activate macro for the mouse to move and click lmao
a lot of macro things allow to open webpage
Autohotkey is easy to use
hm
just watched someone get an awp to the face
Irl?
nah in cs
Kk
its on a iframe
Iframe then a new html tag
which is prob why it can't find it
Iframes can be a pain, but iframes i believe count as a new window an inline one
Oh nice, I've done till that. I've just gotten into the play stuff. You can join the server, but no chunks, no nothing. Just join server and fall down infinitely with a steve skin 😂
hm
What are you tryna do?
Not me
I was really was hopping this would work but didn't ```py
main_window = browser.current_window_handle
for window_handle in browser.window_handles:
if window_handle != main_window:
browser.switch_to.window(window_handle)
next_button = browser.find_element(By.CLASS_NAME, 'primary--DXmYtnzQ')
next_button.click()
browser.switch_to.window(main_window)
huh
is that pythonn
no python
you can't put : in js
Ahahaha
Also I put $250 on Mav winning and they ain't 😭 Spurs are winning rn by 5 points
I DID IT
OMG
NO way
something tells me bro was trying to grab leaked cards and add them to his microsoft acc
Meh
why would I use leaked cards?
credit card fraud innit
and why automate that
Why would you want to steal cards when you can just steal the accounts?
Think bigger
REAL
<troll emoji>
Well their response seems to indicate otherwise
Why steal just buy the millions of already hacked accs
Frostalf an accomplish in credit card fraud totally
Jkjk
Just hack the bank and generate money
or you can just like
They have two cc's they switch between because microsofts anti theft system kicks in for them and locks one card temporarily so they switch to their other until then
wut
I used to have a cc generator way back when that worked like 90% of the time
Seems like smth you shouldn’t mention ahaha
👉 👈 could I please borrow 4 of them?
I only got debit cards
for in definitive time
I have like 2 debit cards I think
No i need to buy stuff in games
But debit cards, you can only use for the money you have, no?
correct
Credit cards can put you in debt but you can spend money
but if you're using the money you don't have like
I probably gotta graduate before they’ll approve credit cards here
wtf are you doing
Its fine it was mostly for research purposes when i was learning about generators such as these and key gens
Think of a credit card as unlimited money glitch
I need my hourly vbucks supply, you don't understand!!
Totally in the US
Except you need to pay it back 💀
Says who
Just get a debt for 100 years
No one is stopping you
I cleared out $30k of debt without paying
Didnt take no 100 years either
💀
Perks of being Muslim: No interest
$10k was from an old car loan that the bank seemed to think i still owed for whatever reason. And the rest were credit cards and some other things. Over half the debt couldnt be paid anyways because some of the businesses no longer existed
And then after 4 years of having the debt i cleared it out in 30 days and its like it never existed 
ayo
I only have 100$
I can't even go into debt
I don't have to pay for anything cause I'm a child
So cool
Gj
In texas and cali credit card companies have 5 years to collect on debt. If they failed to collect after this time they cant get a judgement but they can still put it on your credit report. Loans and mortgages have 7 years.
Isn’t the statue of limitations on crimes 5 years too?
Heard that somewhere
Bankrobberies go hard if u get the right stuff
Depends on the crime. Typically your misdemeanor crimes will have this
However the more serious crimes like murder do not
Also while statue of limitations do exist it only means you cant be punished. Doesnt mean you cant still be charged for it and get a judgement
Judgement is basically just the judge declaring what you did was in fact wrong or illegal and it is public information. It also counts as a conviction since the law doesnt say convictions must include punishment
The exception to that is federal court as convictions have mandatory minimums
think I have a lil less
mailchimp charged my ass 50$ and my gym payment bounced because of that :(
Lol
Did you not sign up for it?
Did you in fact owe it?
Just remember that just because you are signed up for a service doesnt mean the service can take payments out when they feel like it. It is still considered fraud if they do it too early or too late
We use it at work at it was tied to my bank acc
bossman will reimburse me
like tomorrow
They are also not allowed to double the charge the following month either if they forgot lol
Ah thats good you are getting reimbursed for it
money will be ever so slightly tight next week though as I gotta pay for the hotel
for the tech conference
Just tell them to put it on your tab 😉
so first they give me free tickets and then they give me free accomodation lmao no
Lol yeah they would think you were insane
Question, I have a core class that defines what my admin features do, do I need to create another class to handle commands for said admin features or can i code them all in the same class?
Oh my goodness, what on earth is this utterly non-dev related discussion doing in this channel?! 🚫🕵️♂️ This is the CHANNEL POLICE speaking 📣🚔, everyone, kindly redirect your attention to the #general area! 🏞️🚀
Jkjk
If you were to, would it still maintain single responsibility?
janathon tuckuth has joined the pink gang
Lol
You're discord profile is too bright it hurts my eyes
Aren't you a developer or something
And the colors when you click on it
ur just bad
Meow
Yeah, it would