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
//Add additional text boxes | |
$(document).ready(function() { | |
//Set popovers | |
$('[data-toggle="tooltip"]').tooltip(); | |
//Additional field code | |
var max_fields = 10; //maximum input boxes allowed | |
var wrapper = $(".modal-body"); //Fields wrapper | |
var add_button = $("#addNewProduct"); //Add button ID | |
var x = 1; //initlal text box count |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.button{ | |
background: #FFF; | |
border: 2px solid black; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
div{font-size:150%} | |
#underline{ | |
border-top: 5px solid black; |
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
it works |
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
JPanel panel_1 = new JPanel(); | |
panel_1.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Student Ranks", TitledBorder.LEADING, TitledBorder.TOP, null, null)); | |
panel_1.setBounds(6, 0, 534, 421); | |
frame.getContentPane().add(panel_1); | |
panel_1.setLayout(null); | |
String[] columnNames = {"Names","Level"}; | |
Object[][] data = utils.populateTable(); | |
JScrollPane scrollPane = new JScrollPane(); | |
scrollPane.setBounds(6, 18, 522, 396); | |
panel_1.add(scrollPane); |
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
public String format(List<String> list){ | |
boolean isFirst = true; | |
StringBuilder sb = new StringBuilder(); | |
for(String entry : list) { | |
if (isFirst) { | |
isFirst = false; | |
} else { | |
sb.append(","); | |
} |
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
lastHit.put(victim.getName(), attacker.getName()); | |
final Player vic = victim.getPlayer(); | |
final BukkitScheduler scheduler = Bukkit.getScheduler(); | |
if (lastHitId.containsKey(vic.getName())) { | |
int taskId = lastHitId.get(vic.getName()); | |
if (scheduler.isCurrentlyRunning(taskId)) { | |
scheduler.cancelTask(taskId); | |
} | |
} | |
BukkitTask task = scheduler.runTaskLater(plugin, new BukkitRunnable() { |
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
package me.ceramictitan.aurimine; | |
import java.util.logging.Level; | |
import net.milkbowl.vault.economy.Economy; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Effect; | |
import org.bukkit.Material; |
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
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable(){ | |
@Override | |
public void run() { | |
for(Player p : Bukkit.getOnlinePlayers()){//Gets all the online platers | |
if(p.getInventory().getArmorContents() != null){ | |
for(ItemStack armour : p.getInventory().getArmorContents()){ | |
armour.setDurability((short)0);//Keeping durability at a constant durability | |
} | |
} |
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
1) Not use complete sentences. | |
2) Use the enter button as a period. | |
3) Use txt spch. | |
4) Use away messages (especially auto-away). | |
5) Ping people who don't need your attention. | |
6) Make 'your mom' jokes. | |
7) spammmmmmmmmmmm |
NewerOlder