Skip to content

Instantly share code, notes, and snippets.

View Ragnok123's full-sized avatar
💭
Currently inactive... Owner, manager @NovaPlayPE

Ragnok123 Ragnok123

💭
Currently inactive... Owner, manager @NovaPlayPE
  • Czech republic
View GitHub Profile
language.name=Čeština
language.region=CZ
language.code=cz_CZ
gui.ok=Ok
gui.done=Done
gui.cancel=Cancel
gui.back=Back
@Ragnok123
Ragnok123 / en_US.lang
Created December 15, 2015 16:34
Ajina
language.name=English
language.region=US
language.code=en_US
gui.ok=Ok
gui.done=Done
gui.cancel=Cancel
gui.back=Back
import java.util.*;
import java.lang.*;
import java.io.*;
class Main{
public static double PI = 3; //it is aproximally value
public static void main (String[] args) throws java.lang.Exception{
int n = 2;
for (int i = 0; i < 500; i++) {
PI += (i % 2 == 0 ? 1 : -1) * 4.0 / (n * (n + 1) * (n + 2));
n += 2;
package net.novaplay.bedwars.arena.voting;
import net.novaplay.bedwars.arena.Arena;
import cn.nukkit.Player;
import java.util.*;
public class VotingManager {
import lombok.Getter;
public class Chance {
@Getter
private Object object;
@Getter
private int chance;
public Chance(Object obj, int chance) {
@Ragnok123
Ragnok123 / FriendManager
Created January 30, 2021 00:37
Some friend system trash
private static void sendRequestInfo(Player p, String requester) {
NPlayer d = NovaCore.getPlayer(p.getName());
FriendManager mgr = d.getFriendManager();
SimpleFormMenu menu = new SimpleFormMenu(TextFormat.GOLD + requester, Lang.send(p, new String[] {
"Do you want to add this player as a friend?",
"Ты действительно хочешь добавить данного игрока в друзья?"
}));
menu.addButton(TextFormat.GREEN + Lang.send(p, new String[] {"YES", "ДА"}), new ButtonResponse() {
public void onResponse(Player p, Button button) {