I hereby claim:
- I am lucko on github.
- I am luck (https://keybase.io/luck) on keybase.
- I have a public key ASAH5CNWnXC6nvyISaX2JQOymOFzDmwsR9FpUSJTrw-5vQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Run:
brew install gnupg pinentry-mac
git config --global user.signingkey <key>
git config --global commit.gpgsign true
git config --global gpg.program gpg
Then add the following line to ~/.gnupg/gpg-agent.conf
:
pinentry-program /usr/local/bin/pinentry-mac
MetadataKey<AtomicInteger> AFK_TIME_KEY = MetadataKey.create("afk", AtomicInteger.class); | |
MetadataKey<Direction> AFK_DIRECTION_KEY = MetadataKey.create("afk-direction", Direction.class); | |
Scheduler.runTaskRepeatingSync(() -> { | |
for (Player player : Bukkit.getOnlinePlayers()) { | |
MetadataMap metadata = Metadata.provideForPlayer(player); | |
Direction prev = metadata.getOrNull(AFK_DIRECTION_KEY); | |
Direction now = Direction.from(player.getLocation()); | |
/* | |
* This file is part of factions-relation-tab, licensed under the MIT License. | |
* | |
* Copyright (c) lucko (Luck) <[email protected]> | |
* Copyright (c) contributors | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
<scheme name="luck-theme" version="142" parent_scheme="Default"> | |
<option name="FONT_SCALE" value="1.0" /> | |
<metaInfo> | |
<property name="ide">idea</property> | |
<property name="ideVersion">2025.1.3.0.0</property> | |
<property name="originalScheme">luck-theme</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="EDITOR_FONT_NAME" value="JetBrains Mono" /> |
Before you can create a stack dump, you need to know (or find out) the process id of the application.
You can use the jps
command (or any other approach) to find the process for all running Java programs on the system.
e.g.
➜ jps