Skip to content

Instantly share code, notes, and snippets.

View MrPowerGamerBR's full-sized avatar
:shipit:
We facepalm, we shrug and we hack around it and never look back.

MrPowerGamerBR MrPowerGamerBR

:shipit:
We facepalm, we shrug and we hack around it and never look back.
View GitHub Profile
@MrPowerGamerBR
MrPowerGamerBR / gist:5771cfea01f4eed3442e
Created December 16, 2015 23:00
SimCity 2000 printing image output to a complete city image.
package me.mrpowergamerbr.powersc2kjoiner;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class SC2KJoiner {
package me.mrpowergamerbr.sparklysparky.modules;
import java.util.ArrayList;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerLoginEvent.Result;
ao conectar:
if item na mão do player is diamond sword:
anunciar "olha o %player% ostentando"
ao conectar:
anunciar "%player% entrou no Servidor!"
commands:
tutorial:
description: Meu primeiro comando!
usage: /<command>
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
return false;
}
name: Nome do Plugin
main: Package e Classe do Plugin
version: 1.0
# Códigozinho criado por MrPowerGamerBR
#
# Tópico: http://gamersboard.com.br/topic/7324-skript-help/
#
# MrPowerGamerBR Blog: http://mrpowergamerbr.blogspot.com.br
# SparklyPower: http://sparklypower.net
on command:
if command is "sethome":
if "%region at player%" does not contain "%player's name%_":
cancel event
on legendchat chat:
if {PowerAntiDuplicata.Players::%player%} is legendchat message:
cancel event
send "&aVocê não pode escrever a mesma mensagem!"
stop
set {PowerAntiDuplicata.Players::%player%} to legendchat message
on death of player:
if player has permission "PowerInsurance.VIP":
loop items in player's inventory:
add loop-item to {PowerInsurance.Inventarios::%player%::*}
set {PowerInsurance.InventariosArmaduras::%player%.h} to player's helmet
set {PowerInsurance.InventariosArmaduras::%player%.c} to player's chestplate
set {PowerInsurance.InventariosArmaduras::%player%.l} to player's leggings
set {PowerInsurance.InventariosArmaduras::%player%.b} to player's boots
clear drops