#help-archived
1 messages Β· Page 43 of 1
WHy you want to know ?
i mean 8
cause almost everything you say is in uppercase xD
welp this escalated quickly
ikr
looked away for 1 second
chill out lol
nah
whats your budget btw
is it md_5 that mostly maintains the spigot repo
switch statements are used quite often
i think so, arrows?
java 14
whats the newest?
i still use 8 π
is it md_5 that mostly maintains the spigot repo
Yes, though PRs are welcome
He maintains the Bukkit & CB repos as well
Scary CLA π
yeah i was looking over hte contribution section
It's not scary. It's preventing Bukkit 2.0 lol
oof
What would Bukkit 2.0 entail
Another DMCA because of an unhappy dev
regarding a load of legal stuff
i just cba to wait 24 hours
to make a pr
i want that equals impementation fixed tho
I have no issues filling out the form.. I just have nothing good to contribute to the repo π
its pissing me off
Yea but if you keep on CBA'd, it will take longer
It's still good to sign it because you can see and comment on existing PRs π
can you sign the CBA if you're under 18?
i'd be interested to see how legally enforcable it is
This one isn't an NDA though. A CLA is different π
if anyone goes and reports him they'll disable his account
oh yeah, of course
If in breach, SpigotMC has lawyers lol
just NDA is likely scarier
yeah but are the lawyers 15 though
no, i'd assume they're actual lawyers
I'd sure as hell hope not 
haha
As for
I just have nothing good to contribute to the repo
You're welcome to browse the JIRA and fix some bugs or implement some requested features
I just made a PR last night to fix a bug from the JIRA
ahh, it's unlikely i'd be able to help much
yeah ill check it out now
oh wait you can't see it lol
ive got that big dick knowledge
Can see that at least
i'm not making timings 3.0 anytime soon though
Agreement. You confirm that: (a) You have the legal authority to enter into this Agreement.
you would need to be 18 or more to sign the CLA isnt it?
I believe so, yes. Or have a parental guardian
This Agreement will be governed by and
construed in accordance with the laws of the
Australia```
Then again, I signed it back in like... 2016. I was 16 y/o
when I turn 18 in a few months would I need to sign it again?
I mean, legally probably (or probably not)
But if you don't plan to DMCA spigot, it also probably doesn't matter
No you'd be fine
You're fine to sign it if you're not 18
I did and haven't re-signed at all
ehhh whats the expiration on this contract
Not sure
mhm if someone signs and is under 18 wouldnt the cla be voided?
thats kind of sketch
pretty sure it wouldn't be voided
though i'm no lawyer
i don't think there is actually a legal age set for signing contracts, it's just whether court would respect the signing
of course i may also be entirely wrong so don't listen to me
mhm
If you don't want to include your legal name you can use your username as well
In case that's a concern
Yea but we accept usernames lol
it's the address field that is the most scary i think
Please note that the "real name" field on JIRA is public to all users. If you are not comfortable with this please set it to your username. All details in the CLA however must be correct.
that is the CLA document
also, what if you move - do you have to update the address?
I think I'll sign the cla today π
I haven't had to update it. Then again, not contacted md about it.
I probably should lol
lmao
Was going to say, when was the last time you contributed lol
It's not like I would dmca anyways so md doesn't need my address
yeah, it's a shame it's a measure that has to be taken
mhm why does Math#ceil return a double? doesnt it always return an integer?
I believe Bukkit has a util method
stack overflow!
π thanks
It's mostly used internally but it's available for you to use
who chose the name ? it's so long
Was probably to not conflict with NumberUtils that both Guava and Apache Commons both provide lol
mhm would it be a bad idea to use a bukkitrunnable as a sort of queue with a delay in between?
Running spigot in docket works just like any other java application
Make sure you use java 11+ tho
yeah, I'm having issues restarting the binary
Restart? Why would you restart? If the server crashes you restart the container
check PluginManager
You can reload but its not recommended
You restart the container
So what's the issue?
I thought you can just run/etc/init.d/minecraft_server restart or reload
but this seems not to work
Well I don't know how your image works, lol
hehe
My image just does java -jar paperclip.jar with some args
using nimmis/spigot
And if I want to restart, I just stop the container and start a new one
Our plugins are backed into the image anyways since it's easier to have repeatable deployements that way
Was probably to not conflict with NumberUtils that both Guava and Apache Commons both provide
there are so many naming conflictions
aaa
StringUtils is a common one
I wrote this in a pr yesterday:
Block dispenserBlock = event.getBlock().getRelative(BlockFace.DOWN);
Dispenser dispenser = (Dispenser) dispenserBlock.getState();
// Test dispenser content
if (!testDispenserContent(dispenser)) {
event.getPlayer().sendMessage(PREFIX + "Β§cInvalid dispenser contents for Quarry");
event.getPlayer().sendMessage(PREFIX + ChatColor.RED + "Invalid dispenser contents for Quarry");
return;
}
// Setting facing direction
org.bukkit.block.data.type.Dispenser dispenserData = (org.bukkit.block.data.type.Dispenser) dispenserBlock.getBlockData();
dispenserData.setFacing(BlockFace.DOWN);
dispenserBlock.setBlockData(dispenserData);
dispenserBlock.getState().update();
DAMN a legacy slipped through
π
even though chatcolor is legacy, but you know what i mean, a section symbol
wait, i'm even stupider
a- nevermiind
there is no 1.7.10 for spigot anymore?
No. It was DMCA'd
But the point of me posting that was to show the Dispenser naming conflict
There is a Dispenser state and a Dispenser block data π
Lol
Though I suppose I didn't even need to cast to Dispenser, but I chose to
For whatever reason the 2am version of me decided to!
wow
You can cast it to Directional if you wanted, yea
are there any good walkthroughs on seting up an adventure game world
I suppose I want to access this, seeming as it describes my in real life noticing the types have the same name π
is that the md_5s mixtape one
Yes 
yeah π
I'm always happy with Javadoc easter eggs. Reminds me of ass pressure
mhm If I want to keep track of entities (not players) should I also be using UUIDs instead of the entity instance?
it's often advised
Depends
Do you need those instances? Are you doing anything with them? If so, keep a reference
If not and it's just to check whether or not the entity is present, UUID will suffice. Basically, if you need to call methods on the entity, keep a reference to it
Just be sure to clean it up when you don't need it
right, I just need to keep track if they have died so I guess a set of uuids would suffice, thank you again π
yep π
Object2OpenHashSet tho :d
o.O whats that @tiny dagger
FastUtil class
part of the fastutil library spigot ships with
microsoft*
lmao, cool I'll check it out. Is it faster than the hashset?
A HashSet is fine. Don't depend on internal dependencies
^
right
i can't use it myself cuz of paper
π
also, I'm keeping an enum where I have the EntityType and the round when I want it to start appearing.
When I start a new round I loop over the enum values and check if its the correct round and spawn X entities of that type.
Using an enum here doesnt feel right. Is this a good design?
Ideally you'd hold a variable of your enum type
Can just change it as your rounds progress
i put the first part in a seperate class, i put the onenable part in the onenable part
and changed the link in the updater class with https://api.spigotmc.org/legacy/update.php?resource=77666
@subtle blade I'm not quite sure what you mean by that. do you mean just keeping maybe a Map and adding the entitytypes as needed?
that link gives me Beta 0.8
then, when i run it I get: Cannot look for updates: https://api.spigotmc.org/legacy/update.php?resource=7766612345
Spigot's API updates its cache every 4 hours
Works just fine for me
as said in the tutorial
Oh, yea the resource is probably poorly made
the new api also returns the current version now https://api.spigotmc.org/simple/0.1/index.php?action=getResource&id=2
new UpdateChecker(this, 12345).getVersion(version -> {
if (this.getDescription().getVersion().equalsIgnoreCase(version)) {
logger.info("There is not a new update available.");
} else {
logger.info("There is a new update available.");
}
});
oh ill check it
haha thats you lol
Also, the reason it appends 12345 is because that number you're passing to the constructor is your resource's ID
It should be 77666
Mine doesn't use a constructor. Has a static method. Similar concept though
The thread explains how to use it in detail
okay
hmm
how often does the link update
cause i had "beta" in my version name
and think that caused a problem
6 hours iirc
hi, does anyone know a worldgenerator for the end dimension that skips the 1000 block void?
You can account for that in the version schemes for my class, Rik
ah, i just got this one to work, is it really bad or can I just use this too https://www.spigotmc.org/wiki/creating-an-update-checker-that-checks-for-updates/
Hey, is anyone not recieving notifications from watched threads too?
This has been happening to me for a while
It probably works fine. Again, like I said, slightly biased. Mine uses the modern API as well after Glare generously updated it for me whereas that one uses the legacy API, but it most definitely will work
wait @subtle blade why would you rather store a reference to the UUID than the Entity object?
it's a reference either way
Correct but if you're holding a reference to that Entity, not using it and it's been unloaded, you're keeping a reference to something that should have been garbage collected
Thus, memory leaks occur
ah okay WeakReference
If you're not using that entity instance, you're better off holding its UUID
Sure, WeakReference works fine, though you then still get NPEs if not present
yeah I think spigot explicitly drops the player object so I've always been stupid about holding references
Really a bunch of needless workarounds when using its UUID is just fine
yeah true
Yep. CraftPlayers are discarded and invalidated on leave

π§
looks like crops is deprecated. Then i found Ageable but, All Known Subinterfaces: Bamboo, Cocoa, Fire
What it named to?
1.15.2
Well, I see Bamboo so I suppose latest, yea lol
want to get cropstate
but so, wheres other crops π
You can cast the result of Block#getBlockData() to Ageable for crops
Please help:
The server has stopped responding!
[20:16:41 ERROR]: Please report this to http://www.spigotmc.org/
[20:16:41 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[20:16:41 ERROR]: Spigot version: git-Spigot-47b1dff-f233e7d (MC: 1.8)
[20:16:41 ERROR]: ------------------------------
[20:16:41 ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!):
[20:16:41 ERROR]: ------------------------------
[20:16:41 ERROR]: Current Thread: Server thread
[20:16:41 ERROR]: PID: 28 | Suspended: false | Native: true | State: RUNNABLE
I shaved last night so my CropState is healthy
Only reason Bamboo, Cocoa and Fire extend Ageable is because they supply additional states
popa we need more than that
?paste the whole log
Actually, you're on 1.8. Update your server lol
honestly i'd be less mad if it was a code block
thanks choco
ok
at least use ```
ngl i thought that was an automated discord message for spigotcraft
No, please don't use code blocks. Use a paste website ;P Crash logs are huge
well i'm just saying it's a step up from that
"bungeelobby" is doing a stupid blocking operation on the main thread
Speak with the author of that plugin
jer3m01 it seems
Anyone know why players wouldnβt be able to use /server
You didnt give perms in the bungee files
However staff can
And what plugin should I use instead of BungeeLobby
Iβve check and they have it
Bungee.command.server
Hey, so this is for a spells plugin. A certain spell will cause the victim to look in random directions, changing their direction every few seconds. The spell will be cast at least 10 times per hour on average, but not sure.
Am I best having a hashmap with each victim's data and one scheduler to iterate through, or creating a scheduler for each victim? (I'm assuming sync will be best)
@frigid ember Do they have it via Bungee Perm handler or Spigot perm handler (e.g. when using luckperms: luckperms spigot or luckperms bungee)
@timid valley hey I'm trying to make my own fork of Paper Spigot for 1.8.8. How do I go about doing that, because the one on github is 1.15.2, and I can't find anywhere to get the 1.8.8 source
o
Corrupt world
If anyone knows whether it's best to create multiple schedulers or just one for the circumstances I described above ^^ https://discordapp.com/channels/690411863766466590/690470011382267904/703675128357060609 please drop me an @, tyty
They have it on the bungee built on permission
Can I use the BungeeHub 1.2 plugin? Because bungeecord.command.server is causing some problems on UHCRun
If you delete the world and regenerate it, it should be fine, yea.
Though we also advise updating
1.8 is unsupported
I don't care what it is lol
I... I still don't care
Viaversion
It should not
I think changing pvp was minecraft's worst mistake. Developers lives would be so much easier if they had just kept pvp the same π
what plugin do I have in place of Via Version?
hi, I'm sorry i don't know where anywhere else to ask if this is the inappropriate channel but i have a weird issue with the server im running.
1.15.2 would be used 5x as much if it used 1.8.9 combat
The issue is that sometimes other people cant join there server unless i disconnect and reconnect and only then people can join, and after a couple of minutes or so if somebody disconnects they cant join again and i have to disconnect and reconnect again for them to join.
Developers lives would be so much easier if they had just kept pvp the same
Developer's lives would be so much easier if they'd use supported API
It's their own fault for making it difficult
1.8 Combat is ass
That whole sentence hurt my head
π«
@subtle blade dms
No I knew what you said, it just hurt my head lol
how do you set this up on bungeecord?
you need via version on bungeecord and the servers
@rigid notch Check the console for errors.
@subtle blade i got yours to work, thank you
MOTHER OF PEARL
o/
what would be the simplest way to send a player a message onjoin if the plugin needs an update
if (theplugin.needsanupdate()) { event.getPlayer().sendMessage("it needs an update"); }
yea but i dont want to check for update every join...
i created a class for the join event
I think it's UpdateChecker.get().getLastResult()
If I recall correctly
UpdateResult then has requiresUpdate()
was reading up a bit, what do you mean by craft players are invalidated on player leave?
if I have a list of players it will still prevent from being GC'd right?
If you were to store a Player variable on join, then you left and joined back, that Player variable will not longer affect you
It's not the same Player
but it would still exist and cause leaks?
Correct because the garbage collector won't remove those references despite them not being used at all
Your plugin referencing it keeps it from being collected
does the same apply with entities? if you unload and reload in an entity
That applies to absolutely any instance of anything
i assumed so
(I believe there are exceptions - but for the most part, this is the case lol)
so technically if you handled everything correctly you could store player objects but its inadvisable
Can't you just solve that issue with correctly removing the player instance when they leave?
I assume it applies to most things since if it's going to get GCd that means spigot is done with it internally
Though at least with entities it's not that simple
because there is no leave i assume
are we talking about the infamous leaky metadata api?
There is a quit event...
mhm what would be the best way of keeping entities inside a certain area?
using a worldborder?
I thought about the PlayerMoveEvent but that seems a bad idea because I would be checking their position way too often
If you need to keep track of player objects, add to list on join, remove from list on quit.
Does it make much of a difference if you store player objects, and correctly remove them, rather then storing them another way? (Which I dunno what you would do anyways)
No matter how you store them, references are the same size.
I don't think so since you're only storing references
you should use a Set of uuids if you dont need a reference
It's just if you store a set of UUIDs you don't need to do anything on quit
you just need to check if the uuid is already present in your list on join
so you don't have duplicate uuid
which means you should just use a set
if so, you're better off storing your own Table<UUID, String, Object> and doing a once a second cleanup task that checks if the Bukkit.getEntity(uuid) is null.
Seems more complicated than just adding and removing player instances lol
whatever key you want to store meta on
If you need to do something with the player's info while they're offline, you can't use Player.
Well... I guess you still could?
OfflinePlayer
it wouldn't modify the player
meta.set(entity.getUniqueId(), "entitiesMother", mother.getUniqueId());
spigot has no way to reliably detect when an entity goes invalid, so you gotta clean it up manually
wouldn't that involve creating a new table every second though
to avoid concurrent exception
every second?
and doing a once a second cleanup task that checks if the Bukkit.getEntity(uuid) is null
there is this thing called iterators, and .remove() π
You check if a uuid is null every second, but you don't have to modify the table every second.
It wouldn't be too bad.
its literally how you solve concurrent modification
creating new collections is the way!
also note, bukkit metadata doesnt even work for entities changing worlds, solution i said would
well, you would need to do a 'is null for 2 passes' filter to avoid race condition on moved world in same tick as cleanup
i dont understand why spigot hasnt deprecated the meta api
there is literally never a good use for it
would using the PlayerMoveEvent be appropriate to check if a player is inside a certain zone?
seems a bit heavy given that its called everytime you move the head
yes but check if toX != fromX on the block level
Just make sure to check if they've moved a block or not
to avoid sub block movements
right π
Metadata was misused. Was for intermod communications afaik
Yeah
no and yes, the idea is fine, the implementation is wrong
but fixing the impl breaks api contract
I have my own temp meta api that works wonders, store a map on the entity object, it copies on world transfer, its completely bound to the entities lifespan
no chance of leaking
mhm if I also want to prevent other entities (other than players) from leaving a region, it would be best to use a worldborder right?
right
I guess that would be fun ahaha. I could also increase the range of zombies to detect villagers
they wouldnt be tempted to leave
xD
and crashes server because high velocities will load 4k chunks
that's part of the fun...
wat. no. Just a gentle tap
not sure how changing the range would affect server performance though
aikar, is that temp meta api public
$10 says its on the fork
sorta, not really usable for others. i was putting it in you know where before along with my perma meta api, but since spigot added a perm api, it kind of killed need
its currently in my personal fork

the solution I provided above is close enough to same thing though
does it not get confusing contributing to so many forks
do you not forget what is in each
would increasing the PathfinderGoalTarget reach affect the server performance?
slightly, but probably not a lot
there are thousands of path finding goals running each second
Β―_(γ)_/Β―
no? I'm a project dev on the main fork lol. my personal fork is for testing new changes + stuff that only makes sense for my personal needs or is not "API Ready" for public use, like my meta api, was bare bones needs for our needs.
mhm, I guess I can try changing the reach and see how the timings look like π
I wouldnt need to increase it that much so it should be fine
@rigid notch Did your read your server log?
Because I'm reading the log you provided us, and the issue is blaringly obvious.
building an api for everyone to use requires a lot of thought and consideration. it's pretty much the hardest part of writing code. so when I need something that I don't have the time to thoroughly flush out, or want to maintain the ability to make API breaking changes, I keep it in my fork.
then when an idea is polished, it may lead to finalizing for public use
@rigid notch Look for [Server thread/ERROR] and see if you can find the problem.
Are you sure you see?
Hey Aikar, I'm looking to possibly contribute to timings, though I'm not the biggest fan IRC which is why I'm contacting you here, is it okay if I send you a friend request?
@rigid notch I'm really just trying to help you out. You can't run a server if you can't find out what's wrong without help.
I have my own discord and timings channel, it should be on github readme
Oh, sorry then
Samuel what's going on?
just go msg me over there
Yup!
You'll have to download a DEV version as the stable release does not support what you're trying to do.
It says that in the version chart as well.
.
@rigid notch There's a link to their "build server" on their Spigot page. Go there and download and install ViaVersion-DEV.
No problem.
Nevermind there are two readmes
lol
do you guys know how I can make a circle with sections and get them sections to change colors? (In an order to look like its rotating) PM ME
not this again
lmao
xD
ViaRewind development version for 1.16 ig
is it better to have a 1.8 server with 1.15 support or a 1.15 server with 1.8 support?
imo 1.8
whats imo?
in my opinion
yea
do you know if Method overloading is useful?
it is very useful
why?
what maths would I have to use for 12 sections and them to change colors in orders
ItemStack(Material material) {
this(material, 1);
}
ItemStack(Material material, int amount) {
this(material, amount, (short) 0);
}
ItemStack(Material material, int amount, short data) {
// you get the idea
}
in a circle/wheel
thats an example of method overloading
i see
Hey guys so you know the Spigot API extends the Bukkit API, say if I add something to the Bukkit module do I have to make the exact same change to the file under the Spigot API too? Or is there something I am missing, like a Maven goal or something? π
If spigot gets rebuild your changes will be there
smhh
Imagine caring about football
Is Liverpool where kloppo is trainer?
You a United fan? Lmao
That guy is cool
it is yea
Yeah Klopp is the manager π
they sent a referee to my school
football is shit imo
hi mr mini
and he showed an image of klop whispering into his ear
and everyone was saying on the media how nice of a manager he must be
but the referee said that he was actually trying to bribe him o.o
He's cool
i like the liverpool fan songs
I think he'd have been fired and banned by now if he was trying to bribe someone
this a function though?
@vast hinge no that's a class
but
lmao
you know it's a class because it says class
this is a class
classes are juicy tbh
I went to Uni in liverpool and live super close so I've been a fan since a kid π
@vast hinge you just now confused me ffs ; _ ;
@rotund fulcrum go into task manager and terminate everything called Java - it's probably another server instance running
But yeah what Maven goal do I run in the Spigot API to get the bukkit changes moved accross?
do you have 2 of the same server running at the same time
try and see if you can connect to your localhost
on minecraft
connect?
is another command prompt open?
i asked already
yes
wait
how did you start it?
the server
ok
so
is the port in server.properties 25565?
first
does it work on localhost
what website is that?
ummm
so
im not that good at port forwarding tbh
have you watched a video on how?
oh
i think i know why
where are you hosting this?
windows 10?
cause if its windows server i know why
?
what do you mean its a java server?
no i mean whats your operating system
it could be because of your firewall
it might not be
but i know how to fix it if it is
i was responding to you
pls help me how to crate server crack maincraft
i got kicked from Spigot
@hoary parcel hey so what Maven goal do I need to run do that the Bukkit changes get pulled across? Or is it the rebuildPatches.sh that I need to call?
@vast hinge just continue
pls help me how to crate server crack maincraft
thats it
next?
pls help me how to crate server crack maincraft
and it should work
@vast hinge nope
if not thats not the issue
didn't work
hmmm
wt
perhaps a server is running on that port
pls help me how to crate server crack maincraft'
take a screenshot of your task manager
?
mls give my mincraftπ
there isn't any Java or cmd instances
@echo karma quit asking
just use Aternos or sum
brb
your computer DEFINITELY cannot handle self-host
Sono ossessionato
so just use minehut/aternos
@crimson sandal check contributing.md
yes
I dont work with spigot anymore
how to crate server aternos
you want to make a cracked minecraft servver?
just use aternos.com or sum
because
you probably dont wanna spend money
you probably dont wanna spend time
you wanna host it yourself or do you want someone else to do it
you dont make a cracked minecraft server
you can
something something buy minecraft
online-mode=false
how to crate server aternos
Funny because you can quite literally copy/paste that exact same query into Google and get instant results
because thats a violation of mojangs eula, their usage guidelines and spigot rules
choco kinda spitting fax
oof
if it is a violation to Mojang's EULA then Aternos should've had the feature removed by now
π
well
because mojang enforce the eula
go read the eula then
you are not allowed to make money from your server if you allow ppl to join that didnt buy the game
offline mode servers are fine if used correctly
also it needs to be offline if its bungeecord
im just trying to figure this poopoo stuff out
"EULA? I never agreed to that!"
- probably somebody who has agreed to the EULA
C0nn0r
bungee offline mode is totally different
how you tried restarting your computer
yes
as it will still prevent ppl who havent brought the game from joining
overwatch crak when
did you provide the server.properties with an ip?
No. Don't do that
wat
It should be left blank
^^^
then what would the ip be
blank
0.0.0.0
Look up 2 messages
Sono povero, qualcuno puΓ² darmi nitro
or if you use bungee on the same host, localhost
its fine
would they put in 0.0.0.0
just pretend it doesn't exist and it'll be fine
no
forward
yes
what do i put
remove the ip from the server properties
my router website wanted to be a LITTLE-
right ip*
so people can connect
try and start the server
ok
Dose anyone know the WorldGuard API?
does it work?
ok, so, i put the server-ip= as server-ip= (there is nothing here)
and i am trying to connect to my public IP like u said
but it won't work
try localhost
i think it is being hosted off of localhost
right now
it isn't public
it's private
yep
ok lemme try
stupid router website
i hate my router
i wish i had a better one
this one's website is a stupid meanie...
never lets me connect
it stops letting me connect at the worst possible times
rip
plus uh i am trying to use WorldEdit & WorldGuard but they dont work as plugins
i got them from Bukkit's site
because that was the only place i could find them
what do you mean they dont work?
they just dont
like
yeah i have op
try /pl
ok it says my plugins but no worldguard/worldedit
hmmm
spigot 1.8.8 but i am playing on 1.8.9
now see if it works
no.
/pl?
i dont have a functioning version of worldedit
it doesn't show up there
worldguard doesn't show up
nor does worldedit
screenshot of your plugins folder
Remember that the latest version doesn't support 1.8
You want WE 6.1.9
k
works
ok good
np
now 2 get more plugins
How to create a Nether_Star and put the kits on it so when someone click on the kit will get it and then pvp, Like iAppreciate Server.
lol
you dont remember
nvm
XD
what?
Nah, you don't know anything about skript.
drAmA
that sure shut them up xD
dab
But you know so much, what could you possibly need help with?
what do you need help with about classes
Hello, everytime I cancel an runnable it continues?
then whats this
that is a java file
the contents of a java file likely contains one class
named the same as the file
i see
Anyone can give me some edge case where quaternion is needed?
Can someone link to an example or tell the correct way to create Inventory GUI's without using the InventoryHolder?
Hello, everytime I cancel an runnable it continues?
@silver pewter Using bukkit's scheduler?
Can someone link to an example or tell the correct way to create Inventory GUI's without using the InventoryHolder?
@late tangle Just put all the items into a regular inventory i guess
guys where can i find a free mccmo plugin
You can compile it yourself pretty easily
Just put all the items into a regular inventory i guess
@limpid thistle So eh. I want to create Inventory GUI's. I'm currently using an interface to hold the Inventory Holder. To my understanding this is not the intended way, and shouldn't be used. I'm just asking for the correct way to create GUI's.
How would I pass events to that inventory class then?
it's definetly not the way to do it
Like inventory click etc
it has no value, you can make yourself an inventoryholder and it would be the same thing
Is not just having your class implement inventory holder intended?
It seems like a pretty smart solution to me
As opposed to relying on the title
you can hold them in an object with other inventories and that object hold in a map with a player uuid key for access π€
Haven't he planned to do that for ages?
You'd literally juse use a map
@silver pewter Using bukkit's scheduler?
@limpid thistle I'm using BukkitTask to do it?
InventoryHolder doesn't magically deal with event handling, etc, you still gotta implement that stuff
Just, you'd pull the data class from a map instead of from the inventory
@silver pewter BukkitRunnables implement a runnable if im not mistaking
So when ever you schedule something, it returns a taskid
And then you can cancel the task with this id
@limpid thistle Yes, I'm trying to get the task id so I can cancel that one task
when I try to put the taskid in the int should I do inside the runnable or the outside?
just use a BukkitRunnable?
I'm doing a runTaskTimer
It deals with all the canceling BS for you, especially if you wanna cancel it from inside the runnable, you gotta deal with actually getting the id in there
Yea
is it possible to have different formats go to different people for a single message in AsyncPlayerChatEvent
well it has a single format and a single set of recipients
I see plugins that cancel the event and just do "player.sendMessage()" for whatever audience they want
but that doesn't seem quite right
yeah
Sending the messages individually like you just said seems to be an easy solution π€ .
the task id is keep coming back 0
i need help port forwarding this IP-less server
the task id is keep coming back 0
@silver pewter What do you want to achieve? Just a task that repeats in a certain frequency?
'ip-less' well tell that to the people who told me to do it
they told me to have no server-ip
and that i could have people connect
uhm?
they are wrong
which i didn't believe one bit
I want to canncel the runnable when the player moves out of a region
not here
and still don't
ipless in the server
well my public IP doesn't work
What does the runnable do?
in port forward you need the ipv4 from ipconfig /all
you cannot connect to a server over the internet without a public IP address
type ipconfig /all in cmd
assuming windows lol
Makes the time go down
then you should know yourself
this one?
ok
that one
if youre connected thru it that is
wdym
yup
The bukkitrunnable one is deprecated btw
you're thru wireless right?
yes
ok good
Is it?
Yea