Skip to content

Instantly share code, notes, and snippets.

@jamietech
jamietech / letters.java
Created May 31, 2017
Add reactions to JDA messages with letters
View letters.java
package emoji;
import net.dv8tion.jda.core.entities.Message;
public class letters {
private final String[] letters = new String[] { "\uD83C\uDDE6", "\uD83C\uDDE7", "\uD83C\uDDE8", "\uD83C\uDDE9", "\uD83C\uDDEA", "\uD83C\uDDEB", "\uD83C\uDDEC", "\uD83C\uDDED", "\uD83C\uDDEE", "\uD83C\uDDEF", "\uD83C\uDDF0", "\uD83C\uDDF1", "\uD83C\uDDF2", "\uD83C\uDDF3", "\uD83C\uDDF4", "\uD83C\uDDF5", "\uD83C\uDDF6", "\uD83C\uDDF7", "\uD83C\uDDF8", "\uD83C\uDDF9", "\uD83C\uDDFA", "\uD83C\uDDFB", "\uD83C\uDDFC", "\uD83C\uDDFD", "\uD83C\uDDFE", "\uD83C\uDDFF" };
public void react(Message message, String reaction) {
for (final char c : reaction.toUpperCase().toCharArray()) {
@jamietech
jamietech / Discord-webhook.gs
Created Apr 12, 2017
Sends Google form payload to Discord webhook
View Discord-webhook.gs
function onFormSubmit(e) {
var fields = [];
for (i = 0; i < e.response.getItemResponses().length; i++) {
var response = e.response.getItemResponses()[i];
fields.push({
"name": response.getItem().getTitle(),
"value": response.getResponse(),
"inline": false
});
View keybase.md

Keybase proof

I hereby claim:

  • I am jamietech on github.
  • I am jamietech (https://keybase.io/jamietech) on keybase.
  • I have a public key whose fingerprint is F234 E54C 5A67 4292 EA06 A55D E9F9 C9DE 82CD DB1E

To claim this, I am signing this object:

View Entity Types
DROPPED_ITEM
EXPERIENCE_ORB
PAINTING
ARROW
SNOWBALL
FIREBALL
SMALL_FIREBALL
ENDER_PEARL
ENDER_SIGNAL
THROWN_EXP_BOTTLE
@jamietech
jamietech / LICENSE.md
Created Jun 12, 2013
PlayerVanish is a plugin requested by 'braedentraut24' on the Bukkit forums. It allows the console and other players to vanish and unvanish other players easily.
View LICENSE.md

Copyright 2013 jamietech

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

@jamietech
jamietech / LICENSE.md
Last active Dec 16, 2015
QuietJoin is a plugin requested by 'ebear' on the Bukkit forums. It mutes the user and blocks incoming chat to them until they say '/showchat'.
View LICENSE.md

Copyright 2013 jamietech

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

@jamietech
jamietech / group.yml
Last active Dec 12, 2015
NameTags permissions
View group.yml
groups:
Default:
default: true
permissions:
- '*'
- -nametags.*
- nametags.color.gold
inheritance: []
info:
prefix: '&e'
@jamietech
jamietech / SelectiveDeathDropsConfig.java
Last active Oct 12, 2015
Selective Death Drops default configuration
View SelectiveDeathDropsConfig.java
package tk.nekotech.generate;
import org.bukkit.Material;
public class SelectiveDeathDropsConfig {
public static void main(final String args[]) {
new SelectiveDeathDropsConfig().run();
}
private String prettyName(final Material m) {
@jamietech
jamietech / MinecraftServerPing.java
Created Sep 24, 2012
Ping Minecraft Servers easily in Java.
View MinecraftServerPing.java
https://github.com/jamietech/MinecraftServerPing