Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Owner, manager @NovaPlayPE

Ragnok123 Ragnok123

💭
Owner, manager @NovaPlayPE
View GitHub Profile
@Ragnok123
Ragnok123 / FriendManager
Created Jan 30, 2021
Some friend system trash
View FriendManager
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) {
View Chance.java
import lombok.Getter;
public class Chance {
@Getter
private Object object;
@Getter
private int chance;
public Chance(Object obj, int chance) {
View VotingManager.java
package net.novaplay.bedwars.arena.voting;
import net.novaplay.bedwars.arena.Arena;
import cn.nukkit.Player;
import java.util.*;
public class VotingManager {
View Main.java
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;
View en_US.lang
language.name=English
language.region=US
language.code=en_US
gui.ok=Ok
gui.done=Done
gui.cancel=Cancel
gui.back=Back
View cz_CZ.lang
language.name=Čeština
language.region=CZ
language.code=cz_CZ
gui.ok=Ok
gui.done=Done
gui.cancel=Cancel
gui.back=Back