This file contains hidden or 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
| //Paste into browser console | |
| let subscriptions = document.querySelectorAll("ytd-channel-renderer.ytd-expanded-shelf-contents-renderer"), | |
| index = 0 | |
| changeNotification(subscriptions[index++]) | |
| function changeNotification(subscription){ | |
| if(!subscription) return | |
| let subName = subscription.querySelector(".style-scope.ytd-channel-name #text").textContent | |
| subscription.querySelector("ytd-subscription-notification-toggle-button-renderer-next button").click() |
This file contains hidden or 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
| package com.bimmr.classtracker.Database; | |
| import android.util.Log; | |
| import java.sql.*; | |
| import java.util.*; | |
| public class SQLManager { |
This file contains hidden or 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
| import java.util.HashMap; | |
| /** | |
| * | |
| * @author Randy | |
| * | |
| */ |
This file contains hidden or 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
| import org.apache.commons.lang.StringUtils; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.Location; | |
| import org.bukkit.World; | |
| /** | |
| * |
This file contains hidden or 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
| /** | |
| * | |
| * @author Randy | |
| * | |
| */ | |
| import java.lang.reflect.Field; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Map.Entry; |
This file contains hidden or 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
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.bukkit.potion.PotionEffect; | |
| import org.bukkit.potion.PotionEffectType; | |
| /** | |
| * | |
| * @author Randy |
This file contains hidden or 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
| import java.util.List; | |
| import java.util.Random; | |
| import org.apache.commons.lang.StringUtils; | |
| import org.bukkit.ChatColor; | |
| /** | |
| * | |
| * @author Randy | |
| * |
This file contains hidden or 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
| // Using the MySQL Library (https://forums.bukkit.org/threads/tutorial-using-mysql-in-your-plugins.132309/), I created a class that makes using the library easier | |
| package MySQL; | |
| import java.sql.Connection; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| import java.util.ArrayList; | |
| import java.util.UUID; |
This file contains hidden or 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
| package com.comphenix.example; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.bukkit.Server; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.event.EventHandler; | |
| import org.bukkit.event.EventPriority; | |
| import org.bukkit.event.Listener; |