Skip to content

Instantly share code, notes, and snippets.

package net.brcdev.gangs.event;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PlayerAllyChatEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
package net.brcdev.gangs.event;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PlayerGangChatEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
@brcdev
brcdev / jira-centos7.md
Last active August 16, 2019 20:46 — forked from ryanvin/jira-centos7.md
Install Jira on CentOS 7

Install MySQL

Visit https://dev.mysql.com/downloads/repo/yum, get right version. eg: mysql57-community-release-el7-11.noarch.rpm

  • wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
  • sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm
  • sudo yum install mysql-server
    • sudo systemctl start mysqld
    • sudo systemctl status mysqld
  • sudo grep 'temporary password' /var/log/mysqld.log get default root password
  • sudo mysql_secure_installation use default password and change password
  • >Enter a new 12-character password that contains uppercase letter, lowercase letter, number and special character.
package com.example.spawnerprovider;
import net.brcdev.shopgui.provider.spawner.SpawnerProvider;
import net.brcdev.shopgui.provider.spawner.YourSpawnerProvider;
import org.bukkit.plugin.java.JavaPlugin;
public class YourPlugin extends JavaPlugin {
@Override
public void onEnable() {
package com.example.spawnerprovider;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.Plugin;
public class YourSpawnerProvider extends SpawnerProvider {
private Plugin plugin; // your plugin's main class instance
@Override
package net.brcdev.shopgui.provider.economy;
import org.bukkit.entity.Player;
public abstract class EconomyProvider {
/**
* Gets the money balance of specified player
*
* @param player Player to check balance
@brcdev
brcdev / .bashrc
Created July 23, 2018 09:57
Add git branch to bash with default Linux Mint color scheme (bold lime & cyan)
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\e[1m\e[92m\u@\h \[\e[34m\]\w\[\e[93m\]\$(parse_git_branch)\[\e[34m\] $ \e[0m"
package net.brcdev.shopgui.api.exception;
import org.bukkit.entity.Player;
public class PlayerDataNotLoadedException extends Exception {
public PlayerDataNotLoadedException(Player player) {
super(String.format("%s's player data wasn't loaded from the database yet", player.getName()));
}
}
package net.brcdev.shopgui.api.event;
import net.brcdev.shopgui.api.ShopTransactionResult;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ShopPostTransactionEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final ShopTransactionResult result;
package net.brcdev.shopgui.api.event;
import net.brcdev.shopgui.shop.ShopItem;
import net.brcdev.shopgui.shop.ShopManager.ShopAction;
import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ShopPreTransactionEvent extends Event implements Cancellable {