Skip to content

Instantly share code, notes, and snippets.

---
# HereAuth configuration file
# Default settings for each account (players can change them if they have the permission)
DefaultSettings:
# Enable these methods for automatic authentication
AutoAuth:
# Automatically authenticate if the client secret is same as the last login
# "Client secret" is a password automatically sent by the client, and is different for every
# server (so other servers can't steal it) and changes with device.
Where is my It is here
flying car slime blocks
moon colony existed long time ago with mods
self-driving car minecarts
floating sky city that's out-fashioned now, people now love underground bases
hoverboard you can ride on an arrow without mods if your server sends such packet

|

<?php
/**
* @name ServerKiller
* @author PEMapModder
* @version 2.0.0
* @api 2.0.0
* @main ServerKiller\ServerKiller
*/
@PEMapModder
PEMapModder / plugin.yml
Last active December 12, 2015 14:38
SkinKick - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
---
name: SkinKick
author: PEMapModder
version: "1.0"
api:
- 1.13.0
main: PEMapModder\SkinKick\Main
commands:
newskin:
usage: /ns
@PEMapModder
PEMapModder / dot.php
Last active November 18, 2015 14:44
<?php
/**
* @param number $x the X coordinate of the center of the circle
* @param number $y the Y coordinate to place particles at
* @param number $z the Z coordinate of the center of the circle
* @param number $radius the distance for each dot from the center
* @param number $step the angle per step, in degrees
* @param callable $callback the function to call for each dot, with parameters $x, $y, $z representing the coordinates of the dot
*/
//class elementalLaserSubclass extends ElementsPE{ // incorrect usage
ModPE.setItem(511,12,5,"Elemental Laser Gun");//did i misplace x and y? but pleas. i am terrible at arts
ModPE.setItem(510,13,5,"Elemental Laser Gun Batteries");
ModPE.setItem(509,14,5,"Elemental Explosive Laser Gun");
ModPE.setItem(508,15,5,"Elemental Explosive Laser Gun Batteries");
function useItem(a,b,c,d) /*extends ElementsPE.useItem(double,double,double,int,int,int)*/{
if(d==511/*laser gun*/&&getInventoryItemCount(510,0,false)>0){
shootLaser(getPlayerX(),getPlayerY(),getPlayerZ(),getYaw(),getPitch()*-1,readData(Level.getWorldDir()+"preference.accuracy.laser"),readData(Level.getWorldDir()+"preference.laser.type"));
}
}
So far I made something like this: (I just started half an hour ago, so this is my efficiency)
<?php
/*
__PocketMine Plugin__
author=PEMapModder
name=SpleefPlugin
version=alpha.0.0
apiversion=11
class=SpleefPluginLoadable
*/
diff --git a/LegionPE-Core/src/legionpe/MysqlConnection.php b/LegionPE-Core/src/legionpe/MysqlConnection.php
index 8955058..67eb3e5 100644
--- a/LegionPE-Core/src/legionpe/MysqlConnection.php
+++ b/LegionPE-Core/src/legionpe/MysqlConnection.php
@@ -2,7 +2,10 @@
namespace legionpe;
-class MysqlConnection {
+class MysqlConnection{
public void run(){
List<Release> releases = new ArrayList<>();
try{
URL url = new URL("https://api.github.com/repos/PocketMine/PocketMine-MP/releases");
try{
String jsonString = IOUtils.toString(url);
try{
JSONArray releasesArray = new JSONArray(jsonString);
for(Object object : releasesArray){
if(object instanceof JSONObject){
$ php -r '$files = [];
foreach(new RecursiveITeratorIterator(new RecursiveDirectoryIterator(".")) as $file){ if(is_file($file) and filesize($file) <= 4096) $files[basename($file)] = filesize($file) / 1024; }
arsort($files);
print_r($files);'
Array
(
[PharPluginLoader.php] => 3.9365234375
[SendUsageTask.php] => 3.9208984375
[FormattedCommandAlias.php] => 3.89453125
[QueryHandler.php] => 3.8857421875