This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- src/lib/components/utils/LocalizedRelativeTime.svelte --> | |
<script lang="ts"> | |
import { toRelativeLocalDate, toRelativeLocalDateWithUnit } from "$lib/intl/relative-time"; | |
import { onMount } from "svelte"; | |
export let date: Date; | |
export let language: string; | |
let { value, unitValue } = toRelativeLocalDateWithUnit(date, language); | |
let update: NodeJS.Timeout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"adjectives": [ | |
"ablaze", | |
"abrupt", | |
"accomplished", | |
"active", | |
"adored", | |
"adulated", | |
"adventurous", | |
"affectionate", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Global Vars | |
private HashMap<ProxiedPlayer, List<List<String>>> previosMessageList = new HashMap<>(); | |
private HashMap<ProxiedPlayer, Integer> anitSpamWarnings = new HashMap<>(); | |
// START BAD WORD FILTER | |
int filteredWords = 0; | |
String editedMessage = e.getMessage().replaceAll("[ !.,\\-_?/&%$§\"'()\\[\\]{}=*#+~:;<>|²³`´]", "").replace("0", "o") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// These two lines should be outside the npc spawn function for caching | |
HashMap<String, String> skins = new HashMap<>(); | |
HashMap<String, String> signatures = new HashMap<>(); | |
// This code was written inside an command, thats why (Player) commandSender | |
Player player = (Player) commandSender; | |
MinecraftServer server = ((CraftServer) Bukkit.getServer()).getServer(); | |
WorldServer world = ((CraftWorld) player.getWorld()).getHandle(); | |
Location loc = player.getLocation(); | |
for (int x = loc.getBlockX() - 16; x < loc.getBlockX() + 16; x++) { |