Skip to content

Instantly share code, notes, and snippets.

View AyhamAl-Ali's full-sized avatar
๐Ÿš€
Shooting & breaking something

Ayham Al Ali AyhamAl-Ali

๐Ÿš€
Shooting & breaking something
View GitHub Profile
@AyhamAl-Ali
AyhamAl-Ali / CustomEnchants.sk
Last active October 15, 2021 15:36
Custom Prison Enchantments
# Author: Ayham Al-Ali (AyhamAlali#0001)
#
# Config not included
#
# Code is old, could probably be improved but I don't have the time for it
#
options:
cfile: "plugins/CustomPlugins/Enchants/custom.yml"
/* eslint-disable no-var,newline-before-return */
var removeDuplicates = true
/**
* This function should work for any instagram post.
* Use it by opening Chrome's javascript console and pasting all of this code. (see link below)
* https://developers.google.com/web/tools/chrome-devtools/console/
*
* All comments are not immediately visible. This will automatically click the "show more" button for you.
* It could take some time depending on how many comments there are.
[17:01:46 ERROR]: Error occurred while enabling Skript v2.6-beta2 (Is it up to date?)
java.lang.ExceptionInInitializerError: null
at ch.njol.skript.util.Version.<init>(Version.java:64) ~[?:?]
at ch.njol.skript.Skript.onEnable(Skript.java:349) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:395) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:344) ~[patched_1.12.2.jar:git-Paper-1618]
;Write the assembly code for the algorithm below.
;
;Algorithm:
; 1. Start
; 2. L1: Read character
; 3. if character is between 0 to 9 or A to F or a to f inclusive
; convert to decimal
; else
; go to L1
;4. print decimal equivalent
@AyhamAl-Ali
AyhamAl-Ali / gist:87075f14b81059d18560b46b92176217
Created April 17, 2021 21:18
org.black_ixx:PlayerPoints:2.1.3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Project properties. -->
<groupId>org.black_ixx</groupId>
<artifactId>PlayerPoints</artifactId>
<version>2.1.3</version>
<name>PlayerPoints</name>
<description>Player points system for Bukkit</description>
# Thanks to !!!!KingAlterIV ๐ŸŽƒ for this quick solution
function reversedList(list: objects) :: objects:
loop {_list::*}:
add 1 to {_len-list}
loop {_len-list} times:
set {_index} to {_len-list} - loop-number - 1
add {_list::%{_index}%} to {_ret::*}
return {_ret::*}
@AyhamAl-Ali
AyhamAl-Ali / 1
Created September 28, 2018 16:54
2
# AdvancedPlayerInfo (PlaceholderAPI) configuration file
# You can use any placeholder from CLIP's PlaceholderAPI.
# Make sure that you've downloaded all the expansions from 'ecloud' and reloaded PlaceholderAPI plugin before using the palceholders in AdvancedPlayerInfo
# Add as many placeholders as you like, it doesn't matter if you use % sign before and after the placeholder.. example: (%player_name% or player_name)
# By default you must download all these expansions (execute these commands) (this is the most used placeholders):
# - /papi ecloud download player
# - /papi ecloud download statistic
# - /papi ecloud download server
# - /papi reload
# GUI file
# Here you can edit everything in the GUI (name, slot, block/item(id), enchanted or not and the lore)
# There is some stuff that you need to know about:
# 1: Do not use " and " or ", " in the lore (this will mess the lines [skript syntax!]) (you can use || to split line but i recommend to use the list)
# 2: Do not change the items list names like "publicinfo:" and others
# 3: You can use "[rc]" without quotes to generate a random color like (&a or &3 or &9) without bold or italic etc. This variable can be used in item's name and lore, example: "[rc]&lAdvancedPlayerInfo [rc]&l&ois [rc]&l&namazing"
# 4: You can find item's ID and name in "plugins/skript/alaises-english.sk"
# GUI item example:
# NOTE: do not edit location or height or owner or oweneruuid by your self.
settings:
defaultheight: '6'
itemname: '&8[&c&lโ˜…&8] &a&lLive Player Info &8[&c&lโ˜…&8]'
holograms: {}