Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 23 2018 14:14
    109C edited #12
  • Aug 19 2017 14:57
    mhsjlw closed #3
  • Aug 19 2017 14:57
    mhsjlw commented #3
  • Aug 19 2017 14:57
    mhsjlw closed #6
  • Aug 19 2017 14:57
    mhsjlw commented #6
  • Aug 19 2017 14:57
    mhsjlw closed #5
  • Feb 26 2017 03:40
    maxim19116 commented #13
  • Feb 26 2017 03:06
    mhsjlw closed #13
  • Feb 26 2017 03:06
    mhsjlw commented #13
  • Feb 26 2017 03:02
    maxim19116 opened #13
  • May 14 2016 12:20
    Jenkins Netherrack success
  • May 14 2016 12:19

    mhsjlw on master

    start of bukkit support (compare)

  • May 14 2016 11:56
    Jenkins Netherrack success
  • May 14 2016 11:56

    mhsjlw on master

    configuration (compare)

  • May 02 2016 20:22
    Jenkins netherrack success
  • May 02 2016 20:21

    109C on master

    Fixed removing entity from world (compare)

  • May 01 2016 23:51
    Jenkins netherrack success
  • May 01 2016 23:51

    mhsjlw on master

    player movement and looking, ba… (compare)

  • May 01 2016 22:31
    Jenkins netherrack success
  • May 01 2016 22:31

    109C on master

    Fix entity.distanceSquaredTo (compare)

mhsjlw
@mhsjlw
so we can take a serious hit on performance if we use bukkit
109C
@109C
Doesn't bukkit have plugin loading built in?
mhsjlw
@mhsjlw
yeah it does
but you still need to implement it
you know what i mean ;)
im also going to improve logging
and make messages similar to the output of minecraft
and add some more commands and a command api too
public void loadPlugins() {
        pluginManager.registerInterface(JavaPluginLoader.class);

        File pluginFolder = (File) console.options.valueOf("plugins");

        if (pluginFolder.exists()) {
            Plugin[] plugins = pluginManager.loadPlugins(pluginFolder);
            for (Plugin plugin : plugins) {
                try {
                    String message = String.format("Loading %s", plugin.getDescription().getFullName());
                    plugin.getLogger().info(message);
                    plugin.onLoad();
                } catch (Throwable ex) {
                    Logger.getLogger(CraftServer.class.getName()).log(Level.SEVERE, ex.getMessage() + " initializing " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
                }
            }
        } else {
            pluginFolder.mkdir();
        }
    }
that's how bukkit does it
ez pz
then
public void enablePlugins(PluginLoadOrder type) {
        if (type == PluginLoadOrder.STARTUP) {
            helpMap.clear();
            helpMap.initializeGeneralTopics();
        }

        Plugin[] plugins = pluginManager.getPlugins();

        for (Plugin plugin : plugins) {
            if ((!plugin.isEnabled()) && (plugin.getDescription().getLoad() == type)) {
                loadPlugin(plugin);
            }
        }

        if (type == PluginLoadOrder.POSTWORLD) {
            commandMap.setFallbackCommands();
            setVanillaCommands();
            commandMap.registerServerAliases();
            loadCustomPermissions();
            DefaultPermissions.registerCorePermissions();
            CraftDefaultPermissions.registerCorePermissions();
            helpMap.initializeCommands();
        }
    }

    public void disablePlugins() {
        pluginManager.disablePlugins();
    }
Egoscio
@Egoscio
Ça avance alors?
109C
@109C
@Egoscio Extremely quickly, like duke nukem forever.
Egoscio
@Egoscio
woah
so it's gunna take 10 years+ ?
mhsjlw
@mhsjlw
@Egoscio are you interested in helping out?
ah, maybe I'll do configuration and plugin loading and some basic events today...
mhsjlw
@mhsjlw
ayyyyy wazzap
imma do some work on netherrack
(opens spigot's source code) lmao
no ideaz howz config werkz
mhsjlw
@mhsjlw
and that my friends
is how it's done
configuration is complete
netherrack/netherrack@ebd2e58
it's super easy to get and set props
i did it like this:
NetherServer.config.getProperty("lmao");
;; => "ayy"

NetherServer.config.setProperty("lmao", "ayy");
ez pz
ah i forgot we don't support mc 1.9.4 yet
mhsjlw
@mhsjlw
')
;)
netherrack/netherrack@7147504
:D
mhsjlw
@mhsjlw
@109C, not sure if you're around but I was thinking of stealing this: https://github.com/Nukkit/Nukkit/tree/master/src/main/java/cn/nukkit/level/generator
Obviously, we'd have some licensing issues ...
but it would be some coolio generation
109C
@109C
@mhsjlw It's GPL, so it should be ok.
mhsjlw
@mhsjlw
--- project = dead ---
i'll leave it for historical significants
we had fun, guys ;)
Egoscio
@Egoscio
lmao
mhsjlw
@mhsjlw
lol
Egoscio
@Egoscio
u guys should try out swift
mhsjlw
@mhsjlw
I did
on Linux it comes without foundation
Egoscio
@Egoscio
wtf